2014-10-02 23:20:52 +00:00
|
|
|
constant N : Type.{1}
|
|
|
|
constant f : N → N → N → N
|
|
|
|
constant g : N → N → N
|
|
|
|
constant h : N → N → N → N
|
|
|
|
constant s : N → N → N → N → N
|
2014-07-04 00:23:29 +00:00
|
|
|
|
|
|
|
precedence `*`:75
|
|
|
|
precedence `|`:75
|
|
|
|
|
|
|
|
notation a * b:prev | c:prev := f a b c
|
|
|
|
notation a * b := g a b
|
|
|
|
notation a * b * c:prev := h a b c
|
|
|
|
notation a * b | c * d:prev := s a b c d
|
|
|
|
|
2014-10-02 23:20:52 +00:00
|
|
|
constants a b c d e : N
|
2014-07-04 00:23:29 +00:00
|
|
|
|
|
|
|
check a * b
|
|
|
|
check a * b | d
|
|
|
|
check a * b * c
|
|
|
|
check a * b | d * e
|