Skip to content

Commit

Permalink
Merge pull request #2119 from Alizter/ps/rr/rename_istrunc_inhabited_…
Browse files Browse the repository at this point in the history
…istrunc

rename istrunc_inhabited_istrunc
  • Loading branch information
Alizter authored Oct 10, 2024
2 parents f1b91d3 + 44ac5e1 commit 84fdfb2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions theories/Basics/Trunc.v
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,9 @@ Proof.
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.
Definition istrunc_inhabited_istrunc {n : trunc_index}
{A : Type} (H : A -> IsTrunc n.+1 A)
: IsTrunc n.+1 A
:= istrunc_S _ (fun a b => H a a b).

(** 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 84fdfb2

Please sign in to comment.