Skip to content

Commit eac7ac6

Browse files
committed
Fix universe problem due to (stronger) minimization heursitic
1 parent 30d7b72 commit eac7ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

safechecker/theories/PCUICSafeChecker.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,7 +2808,7 @@ Section CheckEnv.
28082808
End PositivityCheck.
28092809

28102810
Section MonadAllAll.
2811-
Context {T} {M : Monad T} {A} {P : A -> Type} {Q} (f : forall x, ∥ Q x ∥ -> T (∥ P x ∥)).
2811+
Context {T : Type -> Type} {M : Monad T} {A} {P : A -> Type} {Q} (f : forall x, ∥ Q x ∥ -> T (∥ P x ∥)).
28122812
Program Fixpoint monad_All_All l : ∥ All Q l ∥ -> T (∥ All P l ∥) :=
28132813
match l returnAll Q l ∥ -> T (∥ All P l ∥) with
28142814
| [] => fun _ => ret (sq All_nil)
@@ -3217,7 +3217,7 @@ Section CheckEnv.
32173217

32183218
'(cs; Hcs) <- constructor_shapes Σ (string_of_kername id) mdecl wfar wfpars (S n) idecl.(ind_ctors) ;;
32193219
posc <- wrap_error Σ (string_of_kername id)
3220-
(monad_All_All (fun x px => @check_positive_cstr Σ (wf_env_ext_sq_wf Σ) mdecl n (arities_context mdecl.(ind_bodies)) x.1.2 _ [])
3220+
(monad_All_All (T:=typing_result) (M:=typing_monad) (fun x px => @check_positive_cstr Σ (wf_env_ext_sq_wf Σ) mdecl n (arities_context mdecl.(ind_bodies)) x.1.2 _ [])
32213221
idecl.(ind_ctors) (wt_cstrs Hcs)) ;;
32223222
var <- monad_All_All (fun cs px => check_cstr_variance Σ0 mdecl id indices mdeclvar cs _ _) cs
32233223
(get_wt_indices wfar wfpars n idecl indices hnth heq Hcs) ;;

0 commit comments

Comments
 (0)