import Tablet.DecimalGoalVocabularyDefault import Tablet.SourceValidByteSlice import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64 import Tablet.F64_Insts_CoreOpsArithDivF64F64 import Tablet.F64_Insts_CoreOpsArithMulF64F64 import Tablet.F64_Insts_CoreOpsArithNegF64 import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64 import Tablet.num_imp_dec2flt_dec2flt import Tablet.num_imp_dec2flt_dec2flt_with_trace import Tablet.num_imp_dec2flt_parse_parse_number import Tablet.num_imp_dec2flt_parse_parse_inf_nan import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path import Tablet.num_imp_dec2flt_lemire_compute_float import Tablet.num_imp_dec2flt_slow_parse_long_mantissa import Tablet.num_imp_dec2flt_biased_fp_to_float import Tablet.InvalidOverflowBoundaryWitness open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: NumberHelperRejection__Refutation] theorem NumberHelperRejection__Refutation : Not (∀ (s : Aeneas.Std.Slice.{0} Aeneas.Std.U8), dec2flt_model.SourceValidByteSlice s → @Ne.{1} (List.{0} Aeneas.Std.U8) (@Subtype.val.{1} (List.{0} Aeneas.Std.U8) (fun (l : List.{0} Aeneas.Std.U8) => @LE.le.{0} Nat instLENat (@List.length.{0} Aeneas.Std.U8 l) Aeneas.Std.Usize.max) s) (@List.nil.{0} Aeneas.Std.U8) → Not (@Exists.{1} dec2flt_model.DecimalLexeme fun (x : dec2flt_model.DecimalLexeme) => And (@Eq.{1} (Option.{0} Bool) (dec2flt_model.DecimalLexeme.leadingSign x) (@Option.none.{0} Bool)) (And (dec2flt_model.DecimalGoalVocabulary.validNumeric dec2flt_model.DecimalGoalVocabularyDefault x) (@Eq.{1} (List.{0} Nat) (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s) (dec2flt_model.DecimalGoalVocabulary.renderNumeric dec2flt_model.DecimalGoalVocabularyDefault x)))) → @Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal)) (dec2flt_model.num.imp.dec2flt.parse.parse_number s) (@Aeneas.Std.Result.ok.{0} (Option.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal) (@Option.none.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal))) := by -- BODY intro hall obtain ⟨s, _, _, hvalid, _, hne, hnoNumeric, _, _, hparse, _⟩ := InvalidOverflowBoundaryWitness have hunsigned : Not (exists x : DecimalLexeme, x.leadingSign = none /\ DecimalGoalVocabularyDefault.validNumeric x /\ DecimalGoalVocabularyDefault.bytes s = DecimalGoalVocabularyDefault.renderNumeric x) := by rintro ⟨x, _, hxvalid, hxbytes⟩ exact hnoNumeric ⟨x, hxvalid, hxbytes.symm⟩ have hne' : s.val ≠ [] := by simpa only [bne_iff_ne] using hne have hnormal := hall s hvalid hne' hunsigned rw [hparse] at hnormal cases hnormal