2014-07-15 00:19:47 +00:00
|
|
|
import standard
|
|
|
|
using num
|
|
|
|
|
|
|
|
namespace foo
|
2014-07-22 16:43:18 +00:00
|
|
|
variable le : num → num → Prop
|
2014-07-15 00:19:47 +00:00
|
|
|
axiom le_trans {a b c : num} : le a b → le b c → le a c
|
|
|
|
calc_trans le_trans
|
|
|
|
infix `≤`:50 := le
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|
2014-07-15 00:19:47 +00:00
|
|
|
|
|
|
|
namespace foo
|
|
|
|
theorem T {a b c d : num} : a ≤ b → b ≤ c → c ≤ d → a ≤ d
|
|
|
|
:= assume H1 H2 H3,
|
|
|
|
calc a ≤ b : H1
|
|
|
|
... ≤ c : H2
|
|
|
|
... ≤ d : H3
|
2014-08-07 23:59:08 +00:00
|
|
|
end foo
|