Skip to content

Commit

Permalink
added istrunc_self_implies_istrunc
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomatoTomato committed Oct 9, 2024
1 parent 9ed2b66 commit 30fd00a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions theories/Basics/Trunc.v
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,13 @@ Proof.
exact (equiv_iff_hprop_uncurried (iff_contr_hprop A)).
Defined.

(** If a type [A] implies that it is [n.+1]-truncated, then it is [n.+1]-truncated. **)
Definition istrunc_self_implies_istrunc {n : trunc_index} {A : Type} (H : A -> IsTrunc n.+1 A)
: IsTrunc n.+1 A.
Proof.
apply istrunc_S.
intros a b.
exact (H a a b).
Defined.

(** If you are looking for a theorem about truncation, you may want to read the note "Finding Theorems" in "STYLE.md". *)

0 comments on commit 30fd00a

Please sign in to comment.