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
215 B
Text
11 lines
215 B
Text
notation 1 := eq
|
|
|
|
postfix `x`:(max+1) := eq
|
|
|
|
postfix [priority 1] `y`:max := eq
|
|
|
|
attribute [instance] [priority 1]
|
|
definition foo : inhabited nat := inhabited.mk nat.zero
|
|
|
|
attribute [unfold 1]
|
|
definition bar := @eq
|