chore: further cleanup from shaking Init (#10658)
This commit is contained in:
parent
5c707d936c
commit
288b7d2023
3 changed files with 2 additions and 3 deletions
|
|
@ -65,7 +65,6 @@ public theorem compare_eq_gt {α : Type u} [Ord α] [LT α] [LE α] [LawfulOrder
|
|||
|
||||
public theorem compare_eq_eq {α : Type u} [Ord α] [BEq α] [LE α] [LawfulOrderOrd α] [LawfulOrderBEq α]
|
||||
{a b : α} : compare a b = .eq ↔ a == b := by
|
||||
open Classical.Order in
|
||||
rw [LawfulOrderBEq.beq_iff_le_and_ge, ← isLE_compare, ← isGE_compare]
|
||||
cases compare a b <;> simp
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ end Lean
|
|||
attribute [ext] Prod PProd Sigma PSigma
|
||||
attribute [ext] funext propext Subtype.eq Array.ext
|
||||
|
||||
attribute [grind ext] Array.ext
|
||||
attribute [grind ext] funext Array.ext
|
||||
|
||||
@[ext] protected theorem PUnit.ext (x y : PUnit) : x = y := rfl
|
||||
protected theorem Unit.ext (x y : Unit) : x = y := rfl
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ public import Init.Grind.Tactics
|
|||
|
||||
public section
|
||||
|
||||
attribute [grind ext] funext Prod Subtype Sigma PSigma
|
||||
attribute [grind ext] Prod Subtype Sigma PSigma
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue