ParserSlowNormalizationCertificate

Lean checked

Statement

This explanation was written alongside the formalization to describe the statement and its reasoning.

Lemma · Reachable slow-loop normalization certificate

Under the source-valid numeric, successful assembled-trace, and true slow-guard hypotheses, put
A=\operatorname{accumulatedMagnitude}(x),\quad U=2^{52},\quad T=2047U,
let H=2^{1024}-2^{970} be the overflow threshold, and let r be the raw word assembled from the selected pair. Then A\geq0 and one of the following sufficient rounding certificates is produced.
First, r=T and H\leq A. Second, for some 0\leq j\leq2^{53}, r=j, A\leq2^{53}2^{-1074}, A lies within one half-step 2^{-1075} of j2^{-1074}, and equality at either adjacent midpoint forces j even. Third, for some 2\leq p\leq2046 and 2^{52}\leq j\leq2^{53}, excluding (p,j)=(2046,2^{53}), one has
r=pU+(j-U),\quad \Delta=2^{p-1075},\quad U\Delta\leq A,\quad A\leq2^{53}\Delta,\quad A<H,
A lies within \Delta/2 of j\Delta, and equality at either adjacent midpoint forces j even. These are exactly the alternatives in Lean.

Lean statement

Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.

import Tablet.DecimalSeqDyadicShiftSemantics
import Tablet.ParserExponentConstants
import Tablet.ParserSlowReachableDecimalSeq
import Tablet.num_imp_dec2flt_decimal_seq_DecimalSeq_round
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_MAX_SHIFT
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_NUM_POWERS
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_POWERS
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_closure_Insts_CoreOpsFunctionFnTupleUsizeUsize_call
import Tablet.ParserSlowInitialCanonicality
import Tablet.DecimalSeqLeftShiftCanonical
import Tablet.DecimalSeqRightShiftCanonical
import Tablet.ParserSlowEarlyExits
import Tablet.ParserSlowLoop0
import Tablet.ParserSlowLoop1
import Tablet.ParserSlowLoop2
import Tablet.DecimalSeqRoundNearestEven
import Tablet.ParserSlowReachableNormalizationBounds
import Tablet.ParserSlowFirstRoundSeparation
import Tablet.P856_T1_OddIntegerSeparation
import Tablet.ParserSlowCarryRoundSeparation
import Tablet.ParserSlowFinalEncoding

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: ParserSlowNormalizationCertificate]
theorem ParserSlowNormalizationCertificate :
    forall (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 = true ->
      let A := DecimalGoalVocabularyDefault.accumulatedMagnitude x
      let unit : Nat := 2 ^ 52
      let infinityBits : Nat := 2047 * unit
      let threshold : Real := (2 : Real) ^ (1024 : Nat) -
        (2 : Real) ^ (970 : Nat)
      let raw : Nat := Nat.lor tr.selected_pair.m.val
        (((tr.selected_pair.p_biased.val.emod (2 ^ 64)).toNat * unit) %
          (2 ^ 64))
      0 <= A /\
      ((raw = infinityBits /\ threshold <= A) \/
      (exists j : Nat,
        j <= 2 ^ 53 /\ raw = j /\
        A <= (2 ^ 53 : Nat) * (2 : Real) ^ (-(1074 : Int)) /\
        A <= (j : Real) * (2 : Real) ^ (-(1074 : Int)) +
          (2 : Real) ^ (-(1075 : Int)) /\
        (j : Real) * (2 : Real) ^ (-(1074 : Int)) <= A +
          (2 : Real) ^ (-(1075 : Int)) /\
        (A = ((j : Real) + (1 / 2 : Real)) *
              (2 : Real) ^ (-(1074 : Int)) \/
            A = ((j : Real) - (1 / 2 : Real)) *
              (2 : Real) ^ (-(1074 : Int)) -> j % 2 = 0)) \/
      (exists p j : Nat,
        2 <= p /\ p <= 2046 /\
        2 ^ 52 <= j /\ j <= 2 ^ 53 /\
        (p < 2046 \/ j < 2 ^ 53) /\
        raw = p * unit + (j - unit) /\
        let delta : Real := (2 : Real) ^ ((p : Int) - 1075)
        (unit : Real) * delta <= A /\
        A <= (2 ^ 53 : Nat) * delta /\
        A < threshold /\
        A <= (j : Real) * delta + delta / 2 /\
        (j : Real) * delta <= A + delta / 2 /\
        (A = ((j : Real) + (1 / 2 : Real)) * delta \/
            A = ((j : Real) - (1 / 2 : Real)) * delta -> j % 2 = 0))) := by
Proof

Natural-language proof

The status above describes the Lean proof. Its explanatory prose may remain a sketch after that proof closes.

Explanatory prose status

Prose retained as authored. The explanatory prose is preserved as it stood when captured.

Earlier prose review

An earlier review questioned the prose argument. Lean subsequently checked the formal proof. Review of the statement’s intended meaning is a separate judgment.

Proof

Apply ParserSlowInitialCanonicality. Its retained-value equation and nonnegative error give A\geq0 and the parsed-state invariant. Next apply ParserSlowEarlyExits. Its zero and underflow alternatives supply the complete j=0 low-grid certificate; its large-point alternative supplies the infinity word and threshold inequality. These discharge respectively the second and first alternatives of this theorem.
In the remaining regular alternative, let d be the nonempty parsed state with -324\leq p<310, write V=V(d) and c=10^{p-768}, and fix once and for all
B=V+c. \tag{1}
The initial canonical witness says A=V+\eta with 0\leq\eta<c and exact sticky equivalence. Thus A,B are the two fixed magnitudes required below.
Apply ParserSlowLoop0 to A,B,d. It returns the exact first loop call, the endpoint state at exponent e_0, and e_0\geq0. Feed that state, the nonnegative-exponent witness, and the same A,B to ParserSlowLoop1; it returns the exact second call and the point-zero state at exponent e_1. These loop contracts consume DecimalSeqRightShiftCanonical and DecimalSeqLeftShiftCanonical, respectively, so every transition transports (1); no transition invents a successor canonical cutoff.
Now apply ParserSlowReachableNormalizationBounds to the initial adjacent cell, the exact two loop histories, and the point-zero endpoint state. It gives both B/2^{e_1}\leq1 and e_1\geq-1079; its proof retains the reachable initial cell. The exponent lower bound ensures that ParserSlowLoop2 applies and returns the checked decrement, exact third-loop call, at-most-58-bit adjustment, and fixed-endpoint state of d_2 at exponent e_2+1.
Apply ParserSlowFirstRoundSeparation to the initial cell, all three exact loop histories, and the d_2 endpoint state. It constructs the actual 53-bit left-shift record d_3 and supplies its record, endpoint, U64-range, and half-integer-separation certificate. For any nonempty one-bit carry shift from d_3, apply ParserSlowCarryRoundSeparation; this gives the corresponding certificate for the reround. These applications are the Lean witnesses passed to the final child.
Finally apply ParserSlowFinalEncoding with x, the fixed B, the parse and slow-call equations, the three exact loop returns, the reachable exponent and upper-endpoint bounds, the d_2 endpoint state, and the first- and carry-round certificates. That theorem uses DecimalSeqRoundArbitraryEndpoint for both round calls and returns exactly the infinity/low-grid/normal-grid disjunction in the present conclusion. Together with the three early alternatives, this exhausts the extracted slow-call control flow and completes the proof.

Lean proof


  intro s x f tr hsource hvalid hbytes htrace hguard
  let A := DecimalGoalVocabularyDefault.accumulatedMagnitude x
  have hnonnegative : 0 <= A := by
    obtain ⟨d, _hparse, _hslow, _hassembled, hA, _hcanonical⟩ :=
      ParserSlowInitialCanonicality s x f tr hsource hvalid hbytes htrace hguard
    exact hA
  dsimp only
  constructor
  · exact hnonnegative
  · have hearly :=
      ParserSlowEarlyExits s x f tr hsource hvalid hbytes htrace hguard
    dsimp only at hearly
    rcases hearly with hzero | hunder | hinfinity | hregular
    · right
      left
      exact hzero.2.2
    · right
      left
      exact hunder.2.2.2
    · exact Or.inl hinfinity
    · rcases hregular with
        ⟨d, hparse, hslow, hassembled, hdne, hdpLower, hdpUpper,
          hcanonical⟩
      let digits :=
        (d.digits.val.take d.num_digits.val).map (fun z => z.val)
      let integer : Nat := digits.foldl (fun n digit => 10 * n + digit) 0
      let value : Real := integer * (10 : Real) ^
        (d.decimal_point.val - (d.num_digits.val : Int))
      let cutoff : Real := (10 : Real) ^
        (d.decimal_point.val - (768 : Int))
      let B : Real := value + cutoff
      have hB : B = value + cutoff := rfl
      obtain ⟨d0, exp0, steps0, hloop0, _hsteps0, hexp0Lower,
          _hexp0Upper, hALower, hd0Lower, hd0Upper, _hselector,
          hstate0⟩ :=
        ParserSlowLoop0 A B d hdne hdpLower hdpUpper hB hcanonical
      obtain ⟨d1, exp1, steps1, hloop1, _hsteps1, _hexp10,
          hd1Point, hd1ne, hd1Lead, _hd1Digit, hstate1⟩ :=
        ParserSlowLoop1 A B d0 exp0 hd0Lower hd0Upper hexp0Lower hstate0
      have hreach := ParserSlowReachableNormalizationBounds
        A B d d0 d1 exp0 exp1 hdpLower hdpUpper hB hcanonical hALower
          hloop0 hloop1 hd1Point hd1ne hd1Lead hstate1.2.2.2
      obtain ⟨hBUpper, hexp1Lower⟩ := hreach
      obtain ⟨expStart, d2, exp2, totalShift, hsub, hloop2, hshiftBound,
          hstart, hexp2, hshiftEq, _hd2Point, _hd2ne, hstate2⟩ :=
        ParserSlowLoop2 A B d1 exp1 hexp1Lower hd1Point hd1ne hd1Lead
          ⟨hstate1.1, hstate1.2.1, hstate1.2.2.2⟩
      have hinitial :
          d.num_digits.val <= 768 /\
          (forall z, z ∈ d.digits.val.take d.num_digits.val -> z.val < 10) /\
          (exists z zs, digits = z :: zs /\ 1 <= z /\ z < 10 /\
            digits.length = d.num_digits.val) /\
          B = value + cutoff /\
          (exists eta : Real,
            A = value + eta /\ 0 <= eta /\ eta < cutoff /\
            (d.truncated = true <-> 0 < eta)) := by
        exact ⟨hcanonical.1, hcanonical.2.1, hcanonical.2.2.1,
          hB, hcanonical.2.2.2⟩
      obtain ⟨d3, hleft53, hstate3⟩ := ParserSlowFirstRoundSeparation
        A B d d0 d1 d2 exp0 exp1 expStart exp2 hdpLower hdpUpper
          hinitial hloop0 hloop1 hsub hloop2 hstate2
      have hodd := P856_T1_OddIntegerSeparation
        A B d d0 d1 d2 d3 exp0 exp1 expStart exp2 hdpLower hdpUpper
          hinitial hloop0 hloop1 hsub hloop2 hstate2 hleft53
      dsimp only at hodd
      have hcarry : forall d4 : num.imp.dec2flt.decimal_seq.DecimalSeq,
          num.imp.dec2flt.decimal_seq.DecimalSeq.right_shift d3 1#usize =
              ok d4 ->
          d4.num_digits.val != 0 ->
          let digits4 :=
            (d4.digits.val.take d4.num_digits.val).map (fun z => z.val)
          let integer4 : Nat :=
            digits4.foldl (fun n digit => 10 * n + digit) 0
          let value4 : Real := integer4 * (10 : Real) ^
            (d4.decimal_point.val - (d4.num_digits.val : Int))
          d4.num_digits.val <= 768 /\
          (forall z, z ∈ d4.digits.val.take d4.num_digits.val -> z.val < 10) /\
          (exists z zs, digits4 = z :: zs /\ 1 <= z /\ z < 10 /\
            digits4.length = d4.num_digits.val /\
            digits4.getLast? != some 0) /\
          (exists eta4 u4 : Real,
            A / (2 : Real) ^ (exp2.val - 51) = value4 + eta4 /\
            B / (2 : Real) ^ (exp2.val - 51) = value4 + u4 /\
            0 <= eta4 /\ eta4 < u4 /\
            (d4.truncated = true <-> 0 < eta4)) /\
          d4.decimal_point.val < 19 /\
          0 <= A / (2 : Real) ^ (exp2.val - 51) /\
          A / (2 : Real) ^ (exp2.val - 51) <
            (2 : Real) ^ (64 : Nat) - (1 / 2 : Real) /\
          forall n : Nat,
            (n : Real) + (1 / 2 : Real) <= value4 \/
              B / (2 : Real) ^ (exp2.val - 51) <=
                (n : Real) + (1 / 2 : Real) := by
        intro d4 hright hne
        exact ParserSlowCarryRoundSeparation
          A B d3 d4 exp2 hstate3 hodd hright hne
      apply ParserSlowFinalEncoding x B tr d d0 d1 d2 d3
        exp0 exp1 expStart exp2
        hparse hdne hdpLower hdpUpper hslow hassembled hloop0 hloop1 hloop2
        hsub hstart hd1Point hd1ne hd1Lead
        hexp1Lower hBUpper hexp2
      · omega
      · exact hstate2
      · exact hleft53
      · exact hstate3
      · exact hcarry

end dec2flt_model

Download Lean source · Download TeX source

Complete Lean module
import Tablet.DecimalSeqDyadicShiftSemantics
import Tablet.ParserExponentConstants
import Tablet.ParserSlowReachableDecimalSeq
import Tablet.num_imp_dec2flt_decimal_seq_DecimalSeq_round
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_MAX_SHIFT
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_NUM_POWERS
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_POWERS
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa_closure_Insts_CoreOpsFunctionFnTupleUsizeUsize_call
import Tablet.ParserSlowInitialCanonicality
import Tablet.DecimalSeqLeftShiftCanonical
import Tablet.DecimalSeqRightShiftCanonical
import Tablet.ParserSlowEarlyExits
import Tablet.ParserSlowLoop0
import Tablet.ParserSlowLoop1
import Tablet.ParserSlowLoop2
import Tablet.DecimalSeqRoundNearestEven
import Tablet.ParserSlowReachableNormalizationBounds
import Tablet.ParserSlowFirstRoundSeparation
import Tablet.P856_T1_OddIntegerSeparation
import Tablet.ParserSlowCarryRoundSeparation
import Tablet.ParserSlowFinalEncoding

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: ParserSlowNormalizationCertificate]
theorem ParserSlowNormalizationCertificate :
    forall (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 = true ->
      let A := DecimalGoalVocabularyDefault.accumulatedMagnitude x
      let unit : Nat := 2 ^ 52
      let infinityBits : Nat := 2047 * unit
      let threshold : Real := (2 : Real) ^ (1024 : Nat) -
        (2 : Real) ^ (970 : Nat)
      let raw : Nat := Nat.lor tr.selected_pair.m.val
        (((tr.selected_pair.p_biased.val.emod (2 ^ 64)).toNat * unit) %
          (2 ^ 64))
      0 <= A /\
      ((raw = infinityBits /\ threshold <= A) \/
      (exists j : Nat,
        j <= 2 ^ 53 /\ raw = j /\
        A <= (2 ^ 53 : Nat) * (2 : Real) ^ (-(1074 : Int)) /\
        A <= (j : Real) * (2 : Real) ^ (-(1074 : Int)) +
          (2 : Real) ^ (-(1075 : Int)) /\
        (j : Real) * (2 : Real) ^ (-(1074 : Int)) <= A +
          (2 : Real) ^ (-(1075 : Int)) /\
        (A = ((j : Real) + (1 / 2 : Real)) *
              (2 : Real) ^ (-(1074 : Int)) \/
            A = ((j : Real) - (1 / 2 : Real)) *
              (2 : Real) ^ (-(1074 : Int)) -> j % 2 = 0)) \/
      (exists p j : Nat,
        2 <= p /\ p <= 2046 /\
        2 ^ 52 <= j /\ j <= 2 ^ 53 /\
        (p < 2046 \/ j < 2 ^ 53) /\
        raw = p * unit + (j - unit) /\
        let delta : Real := (2 : Real) ^ ((p : Int) - 1075)
        (unit : Real) * delta <= A /\
        A <= (2 ^ 53 : Nat) * delta /\
        A < threshold /\
        A <= (j : Real) * delta + delta / 2 /\
        (j : Real) * delta <= A + delta / 2 /\
        (A = ((j : Real) + (1 / 2 : Real)) * delta \/
            A = ((j : Real) - (1 / 2 : Real)) * delta -> j % 2 = 0))) := by
-- BODY
  intro s x f tr hsource hvalid hbytes htrace hguard
  let A := DecimalGoalVocabularyDefault.accumulatedMagnitude x
  have hnonnegative : 0 <= A := by
    obtain ⟨d, _hparse, _hslow, _hassembled, hA, _hcanonical⟩ :=
      ParserSlowInitialCanonicality s x f tr hsource hvalid hbytes htrace hguard
    exact hA
  dsimp only
  constructor
  · exact hnonnegative
  · have hearly :=
      ParserSlowEarlyExits s x f tr hsource hvalid hbytes htrace hguard
    dsimp only at hearly
    rcases hearly with hzero | hunder | hinfinity | hregular
    · right
      left
      exact hzero.2.2
    · right
      left
      exact hunder.2.2.2
    · exact Or.inl hinfinity
    · rcases hregular with
        ⟨d, hparse, hslow, hassembled, hdne, hdpLower, hdpUpper,
          hcanonical⟩
      let digits :=
        (d.digits.val.take d.num_digits.val).map (fun z => z.val)
      let integer : Nat := digits.foldl (fun n digit => 10 * n + digit) 0
      let value : Real := integer * (10 : Real) ^
        (d.decimal_point.val - (d.num_digits.val : Int))
      let cutoff : Real := (10 : Real) ^
        (d.decimal_point.val - (768 : Int))
      let B : Real := value + cutoff
      have hB : B = value + cutoff := rfl
      obtain ⟨d0, exp0, steps0, hloop0, _hsteps0, hexp0Lower,
          _hexp0Upper, hALower, hd0Lower, hd0Upper, _hselector,
          hstate0⟩ :=
        ParserSlowLoop0 A B d hdne hdpLower hdpUpper hB hcanonical
      obtain ⟨d1, exp1, steps1, hloop1, _hsteps1, _hexp10,
          hd1Point, hd1ne, hd1Lead, _hd1Digit, hstate1⟩ :=
        ParserSlowLoop1 A B d0 exp0 hd0Lower hd0Upper hexp0Lower hstate0
      have hreach := ParserSlowReachableNormalizationBounds
        A B d d0 d1 exp0 exp1 hdpLower hdpUpper hB hcanonical hALower
          hloop0 hloop1 hd1Point hd1ne hd1Lead hstate1.2.2.2
      obtain ⟨hBUpper, hexp1Lower⟩ := hreach
      obtain ⟨expStart, d2, exp2, totalShift, hsub, hloop2, hshiftBound,
          hstart, hexp2, hshiftEq, _hd2Point, _hd2ne, hstate2⟩ :=
        ParserSlowLoop2 A B d1 exp1 hexp1Lower hd1Point hd1ne hd1Lead
          ⟨hstate1.1, hstate1.2.1, hstate1.2.2.2⟩
      have hinitial :
          d.num_digits.val <= 768 /\
          (forall z, z ∈ d.digits.val.take d.num_digits.val -> z.val < 10) /\
          (exists z zs, digits = z :: zs /\ 1 <= z /\ z < 10 /\
            digits.length = d.num_digits.val) /\
          B = value + cutoff /\
          (exists eta : Real,
            A = value + eta /\ 0 <= eta /\ eta < cutoff /\
            (d.truncated = true <-> 0 < eta)) := by
        exact ⟨hcanonical.1, hcanonical.2.1, hcanonical.2.2.1,
          hB, hcanonical.2.2.2⟩
      obtain ⟨d3, hleft53, hstate3⟩ := ParserSlowFirstRoundSeparation
        A B d d0 d1 d2 exp0 exp1 expStart exp2 hdpLower hdpUpper
          hinitial hloop0 hloop1 hsub hloop2 hstate2
      have hodd := P856_T1_OddIntegerSeparation
        A B d d0 d1 d2 d3 exp0 exp1 expStart exp2 hdpLower hdpUpper
          hinitial hloop0 hloop1 hsub hloop2 hstate2 hleft53
      dsimp only at hodd
      have hcarry : forall d4 : num.imp.dec2flt.decimal_seq.DecimalSeq,
          num.imp.dec2flt.decimal_seq.DecimalSeq.right_shift d3 1#usize =
              ok d4 ->
          d4.num_digits.val != 0 ->
          let digits4 :=
            (d4.digits.val.take d4.num_digits.val).map (fun z => z.val)
          let integer4 : Nat :=
            digits4.foldl (fun n digit => 10 * n + digit) 0
          let value4 : Real := integer4 * (10 : Real) ^
            (d4.decimal_point.val - (d4.num_digits.val : Int))
          d4.num_digits.val <= 768 /\
          (forall z, z ∈ d4.digits.val.take d4.num_digits.val -> z.val < 10) /\
          (exists z zs, digits4 = z :: zs /\ 1 <= z /\ z < 10 /\
            digits4.length = d4.num_digits.val /\
            digits4.getLast? != some 0) /\
          (exists eta4 u4 : Real,
            A / (2 : Real) ^ (exp2.val - 51) = value4 + eta4 /\
            B / (2 : Real) ^ (exp2.val - 51) = value4 + u4 /\
            0 <= eta4 /\ eta4 < u4 /\
            (d4.truncated = true <-> 0 < eta4)) /\
          d4.decimal_point.val < 19 /\
          0 <= A / (2 : Real) ^ (exp2.val - 51) /\
          A / (2 : Real) ^ (exp2.val - 51) <
            (2 : Real) ^ (64 : Nat) - (1 / 2 : Real) /\
          forall n : Nat,
            (n : Real) + (1 / 2 : Real) <= value4 \/
              B / (2 : Real) ^ (exp2.val - 51) <=
                (n : Real) + (1 / 2 : Real) := by
        intro d4 hright hne
        exact ParserSlowCarryRoundSeparation
          A B d3 d4 exp2 hstate3 hodd hright hne
      apply ParserSlowFinalEncoding x B tr d d0 d1 d2 d3
        exp0 exp1 expStart exp2
        hparse hdne hdpLower hdpUpper hslow hassembled hloop0 hloop1 hloop2
        hsub hstart hd1Point hd1ne hd1Lead
        hexp1Lower hBUpper hexp2
      · omega
      · exact hstate2
      · exact hleft53
      · exact hstate3
      · exact hcarry

end dec2flt_model

Proof structure

Follow the declared dependencies to read the supporting statements and proofs.

Explore this dependency tree

Inspect related source (201)
More program dependencies (159)
Standard-library dependencies (39)

Related source and models come from the extraction records and declared dependencies.

Proof assumptions and review

Lean checks the formal proof. Trellis also reviews how the statement corresponds to the intended requirement.

Transitive assumptions

This list combines the assumptions recorded for this declaration and its dependencies. It may include assumptions used by auxiliary declarations in those modules.

Helper theorems included
All 287 entries
Technical checking records
Local closure summary
{
  "node": "ParserSlowNormalizationCertificate",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "512554741ff4a012d84e2d6f99fa9fe96f36816e1bccaabaa69cb7416116c6b5",
  "active_statement_hash": "f97b7c242efc54349f2149f94817e6ea9d373e53edb9c5c9a0107db5b196d3dd",
  "kernel_axioms": [
    "Classical.choice",
    "Quot.sound",
    "propext"
  ],
  "toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
  "lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
  "checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
  "approved_axioms_hash": "ab64d13f256386ee0e494a5abcc6a5db49512cf3d90bbdfcabd6327793a31f95",
  "axcheck_status": "Agreed",
  "accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-204",
  "boundary_theorems": {},
  "strict_theorem_deps": {
    "P856_T1_OddIntegerSeparation": "df37906201ef51f7",
    "ParserSlowCarryRoundSeparation": "45bde2da4e58d22b",
    "ParserSlowEarlyExits": "554215f721ff87fe",
    "ParserSlowFinalEncoding": "fd9363c4550d8fad",
    "ParserSlowFirstRoundSeparation": "fd37603971ab080f",
    "ParserSlowInitialCanonicality": "e5f61b97b4ad24f2",
    "ParserSlowLoop0": "33531ee210efb042",
    "ParserSlowLoop1": "f2b7099d6b2b429c",
    "ParserSlowLoop2": "988df2b319919687",
    "ParserSlowReachableNormalizationBounds": "3d4872e8ccb1d877"
  },
  "strict_definition_deps": {
    "DecimalGoalVocabulary": "0fcb761c89a2f217",
    "DecimalGoalVocabularyDefault": "512f8d0aea894250",
    "DecimalLexeme": "c43614ff2149ecf2",
    "F64": "ec4e25fbaf4e11d4",
    "F64_Insts_CoreOpsArithDivF64F64": "dc44e13a99fc6bed",
    "F64_Insts_CoreOpsArithMulF64F64": "1ae1a9021a654abd",
    "F64_Insts_CoreOpsArithNegF64": "2d9be310c546ea2e",
    "F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64": "30963b4ef656cc79",
    "F64_Insts_Dec2flt_modelNumImpTraitsFloatU64": "94095c9bf79da164",
    "ParserSlowLoop0": "7ebc2b39d69850c4",
    "num_float_parse_ParseFloatError": "c43614ff2149ecf2",
    "num_imp_dec2flt_Dec2FltAssemblyTrace": "2a4d2e4074960bd4",
    "num_imp_dec2flt_Dec2FltTrace": "8fa376ebb5c489ee",
    "num_imp_dec2flt_common_BiasedFp": "63baac539d218a81",
    "num_imp_dec2flt_dec2flt_with_trace": "ebe6a57c6dce0df6",
    "num_imp_dec2flt_decimal_seq_DecimalSeq": "92d5f91a5a106668",
    "num_imp_dec2flt_decimal_seq_DecimalSeq_left_shift": "fd298e37d5ae4f86",
    "num_imp_dec2flt_decimal_seq_DecimalSeq_right_shift": "1aaf1bb11c0b6a49",
    "num_imp_dec2flt_decimal_seq_parse_decimal_seq": "244cf8318357caab",
    "num_imp_dec2flt_slow_parse_long_mantissa": "f4b1825aa46c08b9"
  }
}
Prose assessment
{
  "label": "Sound flag superseded by recorded Lean closure",
  "assessment_status": "ReviewerPinnedFail",
  "fingerprint_relation": "differs from current fingerprint",
  "assessment_fingerprint": "sound-v2:5a0c4cc2cf2745de8ad859c40c0b82f6afc10c3f018bafd4902dc02069c2c129",
  "current_fingerprint": "sound-v2:bf31306efa684795d5e115070c77d9284d9fdd8b58188f39886c4bff8743ea62",
  "superseded_for_theorem_closure": true
}
Review verdicts
{
  "corr_status": "Pass",
  "sound_status": "Fail",
  "substantiveness_status": "Pass"
}