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
7 lines
126 B
Text
7 lines
126 B
Text
constant Sum : (nat → nat) → nat → nat
|
|
|
|
attribute [forward]
|
|
lemma l1 (f : nat → nat) : Sum f 0 = 0 :=
|
|
sorry
|
|
|
|
print l1
|