Skip to content

Commit f820715

Browse files
committed
Make All universe polymorphic
Without this, TypingWf has universe inconsistencies with Gallina quotation.
1 parent b96e757 commit f820715

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/theories/All_Forall.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Derive Signature for Forall Forall2.
88
(** Combinators *)
99

1010
(** Forall combinators in Type to allow building them by recursion *)
11-
Inductive All {A} (P : A -> Type) : list A -> Type :=
11+
Polymorphic Cumulative Inductive All {A} (P : A -> Type) : list A -> Type :=
1212
All_nil : All P []
1313
| All_cons : forall (x : A) (l : list A),
1414
P x -> All P l -> All P (x :: l).
@@ -3563,6 +3563,7 @@ Proof.
35633563
all: now apply In_All; constructor => //.
35643564
Qed.
35653565

3566+
Local Set Universe Polymorphism.
35663567
Lemma All_eta3 {A B C P} ls
35673568
: @All (A * B * C)%type (fun '(a, b, c) => P a b c) ls <~> All (fun abc => P abc.1.1 abc.1.2 abc.2) ls.
35683569
Proof.

0 commit comments

Comments
 (0)