2014-09-17 21:39:05 +00:00
|
|
|
definition Prop : Type.{1} := Type.{0}
|
2014-10-02 23:20:52 +00:00
|
|
|
constant eq : forall {A : Type}, A → A → Prop
|
|
|
|
constant N : Type.{1}
|
|
|
|
constants a b c : N
|
2014-07-01 23:55:41 +00:00
|
|
|
infix `=`:50 := eq
|
2014-06-25 15:30:09 +00:00
|
|
|
check a = b
|
|
|
|
|
2014-10-02 23:20:52 +00:00
|
|
|
constant f : Prop → N → N
|
|
|
|
constant g : N → N → N
|
2014-06-25 15:30:09 +00:00
|
|
|
precedence `+`:50
|
|
|
|
infixl + := f
|
|
|
|
infixl + := g
|
|
|
|
check a + b + c
|
2014-10-02 23:20:52 +00:00
|
|
|
constant p : Prop
|
2014-06-25 15:30:09 +00:00
|
|
|
check p + a + b + c
|