import Tablet.SlowAccumulatedRoundingLexical import Tablet.SlowAccumulatedRoundingSlow import Tablet.SlowAccumulatedRoundingMagnitude open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false set_option maxHeartbeats 2000000 namespace dec2flt_model -- [TABLET NODE: SlowAccumulatedRoundingWitness] theorem SlowAccumulatedRoundingWitness : exists (s : Slice Std.U8) (x : DecimalLexeme), s.val = List.replicate 2147483648 49#u8 /\ x = { leadingSign := none integerDigits := List.replicate 2147483648 1 fractionDigits := none exponent := none } /\ Not (SourceValidByteSlice s -> x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x -> DecimalGoalVocabularyDefault.bytes s = DecimalGoalVocabularyDefault.renderNumeric x -> num.imp.dec2flt.slow.parse_long_mantissa F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s = ok { m := 0#u64, p_biased := 0#i32 } -> exists target : F64, DecimalGoalVocabularyDefault.assembledWord { m := 0#u64, p_biased := 0#i32 } target /\ DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target) := by -- BODY obtain ⟨s, x, hs, hx, hsource, hsign, hvalid, hrender⟩ := SlowAccumulatedRoundingLexical have hslow := SlowAccumulatedRoundingSlow s hs obtain ⟨_, hnoTarget⟩ := SlowAccumulatedRoundingMagnitude x hx refine ⟨s, x, hs, hx, ?_⟩ intro hmatrix exact hnoTarget (hmatrix hsource hsign hvalid hrender hslow) end dec2flt_model