Skip to content

Commit f0d5996

Browse files
committed
Overlay for PR#21164
1 parent 0025f6c commit f0d5996

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

theories/Basics/Trunc.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ Arguments trunctype_istrunc [_] _.
420420

421421
Coercion trunctype_type : TruncType >-> Sortclass.
422422

423+
(* This hint is required to be able to use cumulativity of inductive types together with first-order approximation for polymorphic hints. *)
424+
Hint Extern 100 (IsTrunc_internal (trunctype_type ?A) _)
425+
=> (exact (trunctype_istrunc A)) : typeclass_instances.
426+
423427
Notation "n -Type" := (TruncType n) : type_scope.
424428
Notation HProp := (-1)-Type.
425429
Notation HSet := 0-Type.

theories/Homotopy/InjectiveTypes/InjectiveTypes.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ Proof.
368368
assert (embId : IsEmbedding (fun a : A => a)) by rapply istruncmap_mapinO_tr.
369369
pose proof (mD := Di (X * A) (Y * A) (functor_prod j equiv_idmap)
370370
(istruncmap_functor_prod@{u v t t ut vt uvt uvt uv t} _ _ _) (uncurry f)).
371-
revert mD.
372-
rapply Trunc_rec@{utvw utvw}.
371+
pose proof (HP := _ : IsHProp (merely@{utvw} {f' : Y -> A -> D & (fun x : X => f' (j x)) == f})).
372+
rapply (Trunc_rec@{utvw utvw} (IsTrunc0 := HP) _ mD).
373373
intros [g e].
374374
apply tr.
375375
refine (fun y a => g (y, a); _).

theories/Modalities/Meet.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Section LexMeet.
296296
apply mapinO_compose.
297297
2:rapply mapinO_isequiv.
298298
apply IHn.
299-
- rapply mapinO_diagonal.
299+
- apply mapinO_diagonal.
300300
pose (O_eq_Tr n.+1).
301301
rapply (mapinO_O_leq _ (Sep (Tr n.+1))).
302302
- apply plusconnmap_diagonal; assumption.

0 commit comments

Comments
 (0)