sed -Ei 's/^(\s*)((private |protected )?(noncomputable )?(abbreviation|definition|meta_definition|theorem|lemma|proposition|corollary)\s+\S+\s*)((\s*\[(\S+(\s+[0-9]+)*|priority.*)\])+)\s*/\1attribute \6\n\1\2/' library/**/*.lean tests/**/*.lean sed -Ei 's/\s+$//' library/**/*.lean # remove trailing whitespace
11 lines
296 B
Text
11 lines
296 B
Text
constants (A : Type.{1}) (f : A → A → A) (x y z : A) (g : A → A)
|
|
attribute [simp]
|
|
lemma foo : f x y = y := sorry
|
|
attribute [simp]
|
|
lemma bar : g y = z := sorry
|
|
|
|
open tactic
|
|
|
|
set_option trace.simplifier.failure true
|
|
example : g (f x y) = z := by simp
|
|
example : g (f x (f x y)) = z := by simp
|