2014-11-01 18:35:38 +00:00
|
|
|
import logic
|
|
|
|
|
|
|
|
inductive day :=
|
2015-02-26 01:00:10 +00:00
|
|
|
monday | tuesday | wednesday | thursday | friday | saturday | sunday
|
2014-11-01 18:35:38 +00:00
|
|
|
|
|
|
|
namespace day
|
|
|
|
|
|
|
|
definition next_weekday d :=
|
2015-02-11 20:49:27 +00:00
|
|
|
day.rec_on d tuesday wednesday thursday friday monday monday monday
|
2014-11-01 18:35:38 +00:00
|
|
|
|
2014-11-01 23:12:23 +00:00
|
|
|
example : next_weekday (next_weekday saturday) = tuesday :=
|
2014-11-01 18:35:38 +00:00
|
|
|
rfl
|
|
|
|
|
|
|
|
end day
|