lean2/tests/lean/run/example1.lean
Leonardo de Moura 1e6f7cdbb4 chore(frontends/lean/decl_cmds): add 'example' command
It is like a theorem, but it is discarded after checking
2014-11-01 11:37:39 -07:00

14 lines
303 B
Text

import logic
inductive day :=
monday, tuesday, wednesday, thursday, friday, saturday, sunday
namespace day
definition next_weekday d :=
rec_on d tuesday wednesday thursday friday monday monday monday
example test_next_weekday : next_weekday (next_weekday saturday) = tuesday :=
rfl
end day