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
295 B
Text
11 lines
295 B
Text
structure Group :=
|
|
(carrier : Type) (mul : carrier → carrier → carrier) (one : carrier)
|
|
|
|
attribute [instance]
|
|
definition Group_to_Type : has_coe_to_sort Group :=
|
|
has_coe_to_sort.mk Type Group.carrier
|
|
|
|
constant g : Group.{1}
|
|
set_option pp.binder_types true
|
|
|
|
check λ a b : g, Group.mul g a b
|