import Tablet.DecimalGoalVocabularyDefault import Tablet.SourceValidByteSlice import Tablet.P9_T1_ActualDispatchOperations import Tablet.P367_T1_NumberHelperWholeClassificationA open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: P13_T1_NumberHelperAcceptance] theorem P13_T1_NumberHelperAcceptance : forall (s : Slice Std.U8) (x : DecimalLexeme), SourceValidByteSlice s -> s.val ≠ [] -> s.val.length <= 3458764513820540928 -> x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x -> DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes s -> exists d : num.imp.dec2flt.decimal.Decimal, P9_T1_ActualDispatchOperations.parseNumber s = ok (some d) := by -- BODY intro s x hsource hne hlen hsign hvalid hrender obtain ⟨result, hparse, hclass⟩ := P367_T1_NumberHelperWholeClassificationA s hne hlen obtain ⟨d, hd⟩ := hclass.mpr ⟨x, hsign, hvalid, hrender⟩ exact ⟨d, hd ▸ hparse⟩ end dec2flt_model