Compare commits

...

3 Commits

Author SHA1 Message Date
Scott Morrison
8e53de7939 make the attributes earlier 2024-03-26 21:56:50 +11:00
Scott Morrison
657b8662c8 cleanup test 2024-03-26 21:38:44 +11:00
Scott Morrison
b9cf28f884 chore: add refl attribute to Eq.refl 2024-03-26 21:37:37 +11:00
2 changed files with 3 additions and 3 deletions

View File

@@ -278,6 +278,8 @@ inductive Eq : αα → Prop where
equality type. See also `rfl`, which is usually used instead. -/
| refl (a : α) : Eq a a
attribute [refl] Eq.refl
/-- Non-dependent recursor for the equality type. -/
@[simp] abbrev Eq.ndrec.{u1, u2} {α : Sort u2} {a : α} {motive : α Sort u1} (m : motive a) {b : α} (h : Eq a b) : motive b :=
h.rec m
@@ -320,7 +322,7 @@ Because this is in the `Eq` namespace, if you have a variable `h : a = b`,
For more information: [Equality](https://lean-lang.org/theorem_proving_in_lean4/quantifiers_and_equality.html#equality)
-/
theorem Eq.symm {α : Sort u} {a b : α} (h : Eq a b) : Eq b a :=
@[symm] theorem Eq.symm {α : Sort u} {a b : α} (h : Eq a b) : Eq b a :=
h rfl
/--

View File

@@ -1,5 +1,3 @@
attribute [refl] Eq.refl
private axiom test_sorry : {α}, α
-- To see the (sorted) list of lemmas that `rw?` will try rewriting by, use: