Equations
- Time.monthLengths' isleap a = List.lookup a (Time.monthLengths isleap)
Instances For
theorem
Time.Date.IsValid
(self : Time.Date)
:
∃ (m : Nat × Nat), m ∈ Time.monthLengths (Time.isLeapYear self.Year) ∧ m.fst = self.Month.val ∧ self.Day.val ≤ m.snd
Equations
- Time.instReprDate = { reprPrec := Time.reprDate✝ }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Date syntactic category
Equations
Instances For
Date from numeric literals year, month and day
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Time.Notation.«termDate%_» = Lean.ParserDescr.node `Time.Notation.termDate%_ 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "date%") (Lean.ParserDescr.cat `date 0))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- Time.monthLengths_sum isleap = List.foldl (fun (acc : Nat) (m : Nat × Nat) => acc + m.snd) 0 (Time.monthLengths isleap)
Instances For
theorem
Time.monthLengths_length_eq_12
(isleap : Bool)
:
((Time.monthLengths isleap).length == 12) = true
Equations
- Time.ordinalDateToDate dt = match h : dt.dayOfYear with | Time.DayOfYear.common yd => Time.findMonthDayCommon dt.year yd ⋯ | Time.DayOfYear.leap yd => Time.findMonthDayLeap dt.year yd ⋯
Instances For
theorem
Time.monthLengths_days_ge_28
(isleap : Bool)
(a : Nat × Nat)
:
a ∈ Time.monthLengths isleap → 28 ≤ a.snd
theorem
Time.monthLengths_days_le_31
(isleap : Bool)
(a : Nat × Nat)
:
a ∈ Time.monthLengths isleap → a.snd ≤ 31
The length of a given month in the Gregorian or Julian calendars.
Equations
- Time.monthLength' isLeap month' = ((Time.monthLengths isLeap).get month').snd
Instances For
theorem
Time.monthLength'_ge_1
(isLeap : Bool)
(month' : Fin 12)
:
1 ≤ Time.monthLength' isLeap month'
theorem
Time.monthLength'_le_31
(isLeap : Bool)
(month' : Fin 12)
:
Time.monthLength' isLeap month' ≤ 31
theorem
Time.days_le_31
(isLeap : Bool)
(m : Fin 12)
(day : Time.NonemptyIcc 1 (Time.monthLength' isLeap m))
:
day.icc.val ≤ 31