chore: upstream eq_iff_true_of_subsingleton (#4689)

This commit is contained in:
Kim Morrison 2024-07-09 07:09:33 +10:00 committed by GitHub
parent cb0755bac0
commit 9124426c55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View file

@ -1362,6 +1362,9 @@ theorem iff_false_right (ha : ¬a) : (b ↔ a) ↔ ¬b := Iff.comm.trans (iff_fa
theorem of_iff_true (h : a ↔ True) : a := h.mpr trivial
theorem iff_true_intro (h : a) : a ↔ True := iff_of_true h trivial
theorem eq_iff_true_of_subsingleton [Subsingleton α] (x y : α) : x = y ↔ True :=
iff_true_intro (Subsingleton.elim ..)
theorem not_of_iff_false : (p ↔ False) → ¬p := Iff.mp
theorem iff_false_intro (h : ¬a) : a ↔ False := iff_of_false h id

View file

@ -1,9 +1,6 @@
@[simp] theorem liftOn_mk (a : α) (f : αγ) (h : ∀ a₁ a₂, r a₁ a₂ → f a₁ = f a₂) :
Quot.liftOn (Quot.mk r a) f h = f a := rfl
theorem eq_iff_true_of_subsingleton [Subsingleton α] (x y : α) : x = y ↔ True :=
iff_true _ ▸ Subsingleton.elim ..
section attribute [simp] eq_iff_true_of_subsingleton end
@[simp] theorem PUnit.default_eq_unit : (default : PUnit) = PUnit.unit := rfl

View file

@ -1,6 +1,3 @@
theorem eq_iff_true_of_subsingleton [Subsingleton α] (x y : α) : x = y ↔ True :=
⟨fun _ => ⟨⟩, fun _ => (Subsingleton.elim ..)⟩
attribute [simp] eq_iff_true_of_subsingleton in
example : True := trivial