Skip to content

Commit d958267

Browse files
committed
1 parent 235f6f2 commit d958267

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Producer.v

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Import ListNotations.
3131
(* Rename? *)
3232
Class Producer (G : Type -> Type) :=
3333
{
34-
super :> Monad G;
34+
super : Monad G;
3535

3636
sample : forall {A}, G A -> list A;
3737

@@ -57,6 +57,7 @@ Class Producer (G : Type -> Type) :=
5757
(forall (a : A), (a \in semProd g) -> G B) -> G B;
5858

5959
}.
60+
#[global] Existing Instance super.
6061

6162
Lemma semProdOpt_equiv {A} {G} `{PG: Producer G}
6263
(g : G (option A)) :
@@ -128,14 +129,19 @@ Class SizedAntimonotonicNone {A} {G} `{Producer G}
128129
(** FP + SizeMon *)
129130
Class SizeMonotonicOptFP {A} {G} {H : Producer G}
130131
(g : G (option A)) :=
131-
{ IsMon :> @SizeMonotonicOpt _ _ H g;
132-
IsFP :> @SizeFP _ _ H g }.
132+
{ IsMon : @SizeMonotonicOpt _ _ H g;
133+
IsFP : @SizeFP _ _ H g }.
134+
#[global] Existing Instance IsMon.
135+
#[global] Existing Instance IsFP.
133136

134137
Class SizedMonotonicOptFP {A} {G} {H : Producer G}
135138
(g : nat -> G (option A)) :=
136-
{ IsMonSized :> @SizedMonotonicOpt _ _ H g;
137-
IsFPSized :> @SizedFP _ _ H g;
138-
IsAntimon :> @SizedAntimonotonicNone _ _ _ g }.
139+
{ IsMonSized : @SizedMonotonicOpt _ _ H g;
140+
IsFPSized : @SizedFP _ _ H g;
141+
IsAntimon : @SizedAntimonotonicNone _ _ _ g }.
142+
#[global] Existing Instance IsMonSized.
143+
#[global] Existing Instance IsFPSized.
144+
#[global] Existing Instance IsAntimon.
139145

140146
#[global] Instance SizeMonotonicOptFP_FP {A} {G}
141147
(g : G (option A))

0 commit comments

Comments
 (0)