2014-06-20 18:27:30 +00:00
|
|
|
definition Bool [inline] : Type.{1} := Type.{0}
|
2014-06-18 16:14:50 +00:00
|
|
|
variable N : Type.{1}
|
|
|
|
variable and : Bool → Bool → Bool
|
2014-07-01 23:55:41 +00:00
|
|
|
infixr `∧`:35 := and
|
2014-06-18 16:14:50 +00:00
|
|
|
variable le : N → N → Bool
|
|
|
|
variable lt : N → N → Bool
|
|
|
|
precedence `≤`:50
|
|
|
|
precedence `<`:50
|
|
|
|
infixl ≤ := le
|
|
|
|
infixl < := lt
|
|
|
|
notation A ≤ B ≤ C := A ≤ B ∧ B ≤ C
|
|
|
|
notation A ≤ B < C := A ≤ B ∧ B < C
|
|
|
|
notation A < B ≤ C := A < B ∧ B ≤ C
|
|
|
|
variables a b c d e : N
|
|
|
|
check a ≤ b ≤ c
|
|
|
|
check a ≤ d
|
|
|
|
check a < b ≤ c
|
|
|
|
check a ≤ b < c
|
|
|
|
check a < b
|