a35cce38b3
closes #426
14 lines
289 B
Text
14 lines
289 B
Text
import logic
|
|
|
|
inductive day :=
|
|
monday, tuesday, wednesday, thursday, friday, saturday, sunday
|
|
|
|
namespace day
|
|
|
|
definition next_weekday d :=
|
|
day.rec_on d tuesday wednesday thursday friday monday monday monday
|
|
|
|
example : next_weekday (next_weekday saturday) = tuesday :=
|
|
rfl
|
|
|
|
end day
|