feat(library/init/logic): mark ne reducible
This commit is contained in:
parent
9e8627380a
commit
0dc31227f8
3 changed files with 5 additions and 2 deletions
|
@ -311,7 +311,7 @@ section linear_ordered_field
|
|||
|
||||
theorem add_self_div_two (a : A) : (a + a) / 2 = a :=
|
||||
symm (iff.mpr (!eq_div_iff_mul_eq (ne_of_gt (add_pos zero_lt_one zero_lt_one)))
|
||||
(by rewrite [left_distrib, *mul_one]))
|
||||
(by krewrite [left_distrib, *mul_one]))
|
||||
|
||||
theorem two_ge_one : (2:A) ≥ 1 :=
|
||||
calc (2:A) = 1+1 : one_add_one_eq_two
|
||||
|
|
|
@ -124,7 +124,7 @@ attribute eq.symm [symm]
|
|||
|
||||
/- ne -/
|
||||
|
||||
definition ne {A : Type} (a b : A) := ¬(a = b)
|
||||
definition ne [reducible] {A : Type} (a b : A) := ¬(a = b)
|
||||
notation a ≠ b := ne a b
|
||||
|
||||
namespace ne
|
||||
|
|
|
@ -9,3 +9,6 @@ by blast
|
|||
|
||||
example (A : Type) (p : Prop) (a b c : A) : a = b → ¬ b = a → p :=
|
||||
by blast
|
||||
|
||||
example (A : Type) (p : Prop) (a b c : A) : a = b → b ≠ a → p :=
|
||||
by blast
|
||||
|
|
Loading…
Reference in a new issue