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 |
||
|---|---|---|
| .. | ||
| basic.lean | ||
| card.lean | ||
| classical_inverse.lean | ||
| comm_semiring.lean | ||
| default.lean | ||
| equinumerosity.lean | ||
| filter.lean | ||
| finite.lean | ||
| function.lean | ||
| map.lean | ||
| set.md | ||