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
14 lines
301 B
Text
14 lines
301 B
Text
open tactic
|
|
|
|
constants (A : Type.{1}) (x y : A)
|
|
|
|
definition f (z : A) : A := z
|
|
attribute [defeq]
|
|
definition f.def (z:A) : f z = z := rfl
|
|
|
|
definition foo (z₁ z₂ : A) : f z₁ = f z₂ → z₁ = z₂ :=
|
|
by do H ← intro `H,
|
|
trace_state,
|
|
dsimp_at H,
|
|
trace_state,
|
|
assumption
|