import Tablet.P347_T1_UnsignedSpecialShape import Tablet.P347_T1_NonDigitNumberRejection open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: P347_T1_UnsignedSpecialRejection] theorem P347_T1_UnsignedSpecialRejection (s : Slice Std.U8) (nan : Bool) (h : DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) none nan) : num.imp.dec2flt.parse.parse_number s = ok none := by -- BODY obtain ⟨hlen, a, tail, hs, ha⟩ := P347_T1_UnsignedSpecialShape s nan h have hdigit : Not (48 <= a.val /\ a.val <= 57) := by omega have hdot : a ≠ 46#u8 := by intro heq have hval := congrArg UScalar.val heq simp at hval omega exact (P347_T1_NonDigitNumberRejection s a tail hs (by omega) hdigit hdot).2 end dec2flt_model