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
175 B
Text
7 lines
175 B
Text
import data.nat.basic
|
|
open nonempty inhabited nat classical
|
|
|
|
attribute [instance]
|
|
theorem int_inhabited : inhabited nat := inhabited.mk zero
|
|
|
|
check epsilon (λ x : nat, true)
|