2015-02-11 02:28:48 +00:00
|
|
|
open nat
|
|
|
|
|
|
|
|
abbreviation foo : Π (A : Type), nat := λ a, 2 + 3
|
|
|
|
|
|
|
|
definition tst := foo nat
|
|
|
|
|
|
|
|
set_option pp.abbreviations false
|
|
|
|
|
|
|
|
print definition tst
|
|
|
|
|
|
|
|
set_option pp.abbreviations true
|
|
|
|
|
|
|
|
print definition tst
|
|
|
|
|
2015-10-13 23:28:11 +00:00
|
|
|
abbreviation id [parsing_only] {A : Type} (a : A) := a
|
2015-02-11 02:28:48 +00:00
|
|
|
|
2015-10-13 23:28:11 +00:00
|
|
|
definition tst1 :nat := id 10
|
2015-02-11 02:28:48 +00:00
|
|
|
|
|
|
|
print definition tst1
|