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
22 lines
310 B
Text
22 lines
310 B
Text
open tactic
|
|
|
|
attribute [instance]
|
|
definition expr_to_app : has_coe_to_fun expr :=
|
|
has_coe_to_fun.mk (expr → expr) (λ e, expr.app e)
|
|
|
|
constants f a b : expr
|
|
|
|
check f a
|
|
|
|
check f a b
|
|
|
|
check f a b a
|
|
|
|
set_option pp.coercions false
|
|
|
|
check f a b a
|
|
|
|
set_option pp.all true
|
|
set_option pp.coercions true
|
|
|
|
check f a b
|