import Tablet.ParserAssembledTraceSign import Tablet.ParserAssembledDirectMagnitudeRounding open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: ParserAssembledDirectAccumulatedRounding] theorem ParserAssembledDirectAccumulatedRounding : ∀ (s : Str) (x : DecimalLexeme) (f : F64) (tr : num.imp.dec2flt.Dec2FltAssemblyTrace F64), DecimalGoalVocabularyDefault.sourceString s -> DecimalGoalVocabularyDefault.validNumeric x -> DecimalGoalVocabularyDefault.bytes s = DecimalGoalVocabularyDefault.renderNumeric x -> num.imp.dec2flt.dec2flt_with_trace F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64 F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64 F64.Insts.CoreOpsArithNegF64 s = ok (core.result.Result.Ok f, num.imp.dec2flt.Dec2FltTrace.Assembled tr) -> tr.slow_path_guard = false -> ∃ magnitude : F64, DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) magnitude ∧ DecimalGoalVocabularyDefault.signedMagnitude (DecimalGoalVocabularyDefault.lexicalNegative x) magnitude f := by -- BODY intro s x f tr hsource hvalid hrender htrace hguard refine ⟨tr.assembly_result, ?_, ?_⟩ · exact ParserAssembledDirectMagnitudeRounding s x f tr hsource hvalid hrender htrace hguard · exact ParserAssembledTraceSign s x f tr hsource hvalid hrender htrace end dec2flt_model