import Tablet.P616_T1_LexemeExactTransportB import Tablet.SourceValidByteSlice open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: P616_T1_ExactTransportApplicationsB] theorem P616_T1_ExactTransportApplicationsB : (forall (body : Slice Std.U8) (x : DecimalLexeme), SourceValidByteSlice body -> body.val.length <= 576460752303421440 -> x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x -> DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body -> forall target : F64, DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target ↔ DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.exactMagnitude x) target) ∧ (forall (s : Str) (x : DecimalLexeme), DecimalGoalVocabularyDefault.sourceString s -> s.val.length <= 576460752303421440 -> DecimalGoalVocabularyDefault.classifies (DecimalGoalVocabularyDefault.bytes s) (some (Sum.inl x)) -> forall target : F64, DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target ↔ DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.exactMagnitude x) target) := by -- BODY constructor · intro body x _hsource hB _hsign hx hrender apply P616_T1_LexemeExactTransportB x hx rw [hrender] simpa only [DecimalGoalVocabularyDefault, List.length_map] using hB · intro s x _hsource hB hclass change DecimalGoalVocabularyDefault.validNumeric x ∧ DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes s at hclass apply P616_T1_LexemeExactTransportB x hclass.1 rw [hclass.2] simpa only [DecimalGoalVocabularyDefault, List.length_map] using hB end dec2flt_model