import Tablet.DecimalGoalVocabularyDefault open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: P9_T1_ExponentFoldBounds] theorem P9_T1_ExponentFoldBounds (digits : List Nat) (hdigits : forall d, d ∈ digits -> d < 10) : forall a : Nat, a <= 5764607523034234879 -> digits.foldl (fun n d => if n < 576460752303423488 then 10 * n + d else n) a <= 5764607523034234879 := by -- BODY induction digits with | nil => simp | cons d ds ih => intro a ha simp only [List.foldl_cons] apply ih · intro b hb exact hdigits b (List.mem_cons_of_mem d hb) · have hd := hdigits d List.mem_cons_self split <;> omega end dec2flt_model