Statement
This explanation was written alongside the formalization to describe the statement and its reasoning.
Lemma · Normal fixed-frame output for every compatible package
Lean statement
Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.
import Tablet.DispatchContracts
import Tablet.P9_T1_DispatchFrame
import Tablet.P9_T1_EmbedComponents
import Tablet.P616_T1_SignStrippedClassification
import Tablet.ModelStrAsBytes
import Tablet.ModelSliceFirst
import Tablet.ModelF64MantissaDigits
import Tablet.ModelU64Shl
import Tablet.ModelU64BitOr
import Tablet.num_imp_dec2flt_pfe_empty
import Tablet.num_imp_dec2flt_pfe_invalid
import Tablet.num_imp_traits_Float_SIG_BITS_default
import Tablet.num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq
import Tablet.ParserExponentConstants
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: P616_T1_FrameNormality]
theorem P616_T1_FrameNormality :
forall C : P9_T1_AbstractComponents, DispatchContracts C ->
forall s : Str, DecimalGoalVocabularyDefault.sourceString s ->
s.val.length <= 3458764513820540928 ->
exists r trace, P9_T1_DispatchFrame (P9_T1_EmbedComponents C) s = ok (r, trace) := 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.
Proof
record_bounds law in
DispatchContracts applies to the already proved source-valid
nonempty body. It gives d.\mathit{negative}=\mathrm{false} and
d.\mathit{mantissa}.\mathit{val}<10^{19}, with no grammar premise.
The embedded native call on d with its sign overwritten to c=45
returns normally. A Some native value gives Rust Ok and the FastPath
trace directly, without assembly or final negation.
For native None, the first embedded integer call gives a normal pair
f_1=C.\mathrm{integer}(d.\mathit{exponent},d.\mathit{mantissa}).
The following Boolean tests and tuple constructions are total: the
second-call guard is exactly many_digits and f_1.p_{\rm biased}\geq0.forced_deferral is false; otherwise
it is f_1 with exponent replaced by -1 and forced_deferral true.
The I32 literal -1 is within [-2^{31},2^{31}-1].
The returned optional second operands and result and equality Boolean
are all Some of these actual abstract values. With guard false, the
tuple keeps f_1, sets all four second-call observations to None and
forced_deferral to false. There is no unexecuted successor in that case.SIG_BITS constant is obtained
from num imp traits Float SIG BITS default: its input
SIG_TOTAL_BITS is the normal value 53 in
ModelF64MantissaDigits. Subtracting one is checked in U32
and succeeds since 1\leq53<2^{32}, giving 52.
The left-shift bind underlying ModelU64Shl therefore has
count 52<64 and returns its bounded 64-bit word even if high bits
are discarded; left shift is not checked arithmetic multiplication.
Bitwise OR, as in ModelU64BitOr, is total and returns the
assembled raw word. The embedded assembly call also returns normally.
If c=45, the embedded negation returns normally; otherwise no negation
is executed. These are all remaining binds.many_digits Booleans
both equal d.\mathit{many\_digits}, so the recorded numeric option
and signed native input retain that flag. The trace's first operands,
first result, guard, optional second observations, equality,
forced-deferral flag, post-comparison pair, slow observations, selected
pair, raw word, assembly result, sign-applied flag and final word are
exactly the tuple values just evaluated. Tuple and trace constructors
introduce no failure. Successive substitution of these normal equations
through the Result binds yields ok of the constructed result and trace.
Every branch of the option and Boolean cases has been covered, proving
output existence for the arbitrary compatible package.Lean proof
intro C hC s hs hlen
have hcastOK (p : num.imp.dec2flt.common.BiasedFp) :
lift (IScalar.hcast .U64 p.p_biased) = ok (IScalar.hcast .U64 p.p_biased) := by
simp [lift, IScalar.hcast]
have hshiftOK (i : Std.U64) : ∃ y, i <<< 52#u32 = ok y := by
simp only [HShiftLeft.hShiftLeft, UScalar.shiftLeft_UScalar, UScalar.shiftLeft]
exact ⟨_, rfl⟩
have hshiftEq (i : Std.U64) :
i <<< 52#u32 = ok ⟨i.bv.shiftLeft 52⟩ := by
simp only [HShiftLeft.hShiftLeft, UScalar.shiftLeft_UScalar, UScalar.shiftLeft]
rfl
have hbitOr (x y : Std.U64) : lift (x ||| y) = ok (x ||| y) := by
simp [lift]
have hsub53 : 53#u32 - 1#u32 = ok 52#u32 := by
rfl
obtain ⟨_, htotal53, hsig52, _, _, _, _, _, _, _, _, _⟩ := ParserExponentConstants
have hsigSub :
(do let x ← F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS
x - 1#u32) = ok 52#u32 := by
simp only [Bind.bind, Aeneas.Std.bind]
cases h : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok x =>
have hx : x = 53#u32 := by
have e := htotal53.symm.trans h
injection e with hxx
exact hxx.symm
subst x
rfl
| fail e => simp [h] at htotal53
| div => simp [h] at htotal53
rcases s with ⟨xs, hxs⟩
cases xs with
| nil =>
simp [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, num.imp.dec2flt.pfe_empty]
| cons c tail =>
by_cases hminus : c = 45#u8
· subst c
simp only [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
Slice.index_SliceIndexRangeFromUsizeSliceInst,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
num.imp.dec2flt.pfe_invalid]
have htailbound : tail.length ≤ Usize.max := by
have h := hxs
simp only [List.length_cons] at h
omega
let body : Slice Std.U8 := ⟨tail, htailbound⟩
by_cases htail : tail = []
· simp [htail]
· cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body true <;> simp [body, htail, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := true } with
| some value => simp [body, htail, hn, hnat]
| none =>
have hlen' : tail.length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
change tail.length ≤ 9223372036854775807
exact Nat.le_trans hlen' (by norm_num)
have hne : body.val ≠ [] := by simp [body, htail]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := true, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, htail, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp]
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, htail, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := true, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, htail, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
· by_cases hplus : c = 43#u8
· subst c
simp only [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
Slice.index_SliceIndexRangeFromUsizeSliceInst,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
num.imp.dec2flt.pfe_invalid]
have htailbound : tail.length ≤ Usize.max := by
have h := hxs
simp only [List.length_cons] at h
omega
let body : Slice Std.U8 := ⟨tail, htailbound⟩
by_cases htail : tail = []
· simp [htail]
· cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body false <;> simp [body, htail, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := false } with
| some value => simp [body, htail, hn, hnat]
| none =>
have hlen' : tail.length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
simp [body]
omega
have hne : body.val ≠ [] := by simp [body, htail]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := false, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, htail, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp]
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, htail, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := false, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, htail, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
· simp [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
hminus, hplus, num.imp.dec2flt.pfe_invalid]
let body : Slice Std.U8 := ⟨c :: tail, hxs⟩
cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body false <;> simp [body, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := false } with
| some value => simp [body, hn, hnat]
| none =>
have hlen' : (c :: tail).length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
change (c :: tail).length ≤ 9223372036854775807
exact Nat.le_trans hlen' (by norm_num)
have hne : body.val ≠ [] := by simp [body]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := false, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp] <;> simp_all
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := false, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
end dec2flt_model
Download Lean source · Download TeX source
Complete Lean module
import Tablet.DispatchContracts
import Tablet.P9_T1_DispatchFrame
import Tablet.P9_T1_EmbedComponents
import Tablet.P616_T1_SignStrippedClassification
import Tablet.ModelStrAsBytes
import Tablet.ModelSliceFirst
import Tablet.ModelF64MantissaDigits
import Tablet.ModelU64Shl
import Tablet.ModelU64BitOr
import Tablet.num_imp_dec2flt_pfe_empty
import Tablet.num_imp_dec2flt_pfe_invalid
import Tablet.num_imp_traits_Float_SIG_BITS_default
import Tablet.num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq
import Tablet.ParserExponentConstants
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: P616_T1_FrameNormality]
theorem P616_T1_FrameNormality :
forall C : P9_T1_AbstractComponents, DispatchContracts C ->
forall s : Str, DecimalGoalVocabularyDefault.sourceString s ->
s.val.length <= 3458764513820540928 ->
exists r trace, P9_T1_DispatchFrame (P9_T1_EmbedComponents C) s = ok (r, trace) := by
-- BODY
intro C hC s hs hlen
have hcastOK (p : num.imp.dec2flt.common.BiasedFp) :
lift (IScalar.hcast .U64 p.p_biased) = ok (IScalar.hcast .U64 p.p_biased) := by
simp [lift, IScalar.hcast]
have hshiftOK (i : Std.U64) : ∃ y, i <<< 52#u32 = ok y := by
simp only [HShiftLeft.hShiftLeft, UScalar.shiftLeft_UScalar, UScalar.shiftLeft]
exact ⟨_, rfl⟩
have hshiftEq (i : Std.U64) :
i <<< 52#u32 = ok ⟨i.bv.shiftLeft 52⟩ := by
simp only [HShiftLeft.hShiftLeft, UScalar.shiftLeft_UScalar, UScalar.shiftLeft]
rfl
have hbitOr (x y : Std.U64) : lift (x ||| y) = ok (x ||| y) := by
simp [lift]
have hsub53 : 53#u32 - 1#u32 = ok 52#u32 := by
rfl
obtain ⟨_, htotal53, hsig52, _, _, _, _, _, _, _, _, _⟩ := ParserExponentConstants
have hsigSub :
(do let x ← F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS
x - 1#u32) = ok 52#u32 := by
simp only [Bind.bind, Aeneas.Std.bind]
cases h : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok x =>
have hx : x = 53#u32 := by
have e := htotal53.symm.trans h
injection e with hxx
exact hxx.symm
subst x
rfl
| fail e => simp [h] at htotal53
| div => simp [h] at htotal53
rcases s with ⟨xs, hxs⟩
cases xs with
| nil =>
simp [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, num.imp.dec2flt.pfe_empty]
| cons c tail =>
by_cases hminus : c = 45#u8
· subst c
simp only [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
Slice.index_SliceIndexRangeFromUsizeSliceInst,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
num.imp.dec2flt.pfe_invalid]
have htailbound : tail.length ≤ Usize.max := by
have h := hxs
simp only [List.length_cons] at h
omega
let body : Slice Std.U8 := ⟨tail, htailbound⟩
by_cases htail : tail = []
· simp [htail]
· cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body true <;> simp [body, htail, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := true } with
| some value => simp [body, htail, hn, hnat]
| none =>
have hlen' : tail.length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
change tail.length ≤ 9223372036854775807
exact Nat.le_trans hlen' (by norm_num)
have hne : body.val ≠ [] := by simp [body, htail]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := true, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, htail, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp]
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, htail, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := true, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, htail, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
· by_cases hplus : c = 43#u8
· subst c
simp only [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
Slice.index_SliceIndexRangeFromUsizeSliceInst,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
num.imp.dec2flt.pfe_invalid]
have htailbound : tail.length ≤ Usize.max := by
have h := hxs
simp only [List.length_cons] at h
omega
let body : Slice Std.U8 := ⟨tail, htailbound⟩
by_cases htail : tail = []
· simp [htail]
· cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body false <;> simp [body, htail, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := false } with
| some value => simp [body, htail, hn, hnat]
| none =>
have hlen' : tail.length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
simp [body]
omega
have hne : body.val ≠ [] := by simp [body, htail]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := false, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, htail, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp]
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, htail, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := false, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, htail, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
· simp [P9_T1_DispatchFrame, P9_T1_EmbedComponents,
core.str.Str.as_bytes, ModelStrAsBytes, core.slice.Slice.first,
ModelSliceFirst, core.slice.Slice.is_empty, Slice.length,
core.slice.index.SliceIndexRangeFromUsizeSlice.index, Slice.drop,
hminus, hplus, num.imp.dec2flt.pfe_invalid]
let body : Slice Std.U8 := ⟨c :: tail, hxs⟩
cases hn : C.parseNumber body with
| none =>
cases hsp : C.parseSpecial body false <;> simp [body, hn, hsp]
| some d =>
cases hnat : C.native { d with negative := false } with
| some value => simp [body, hn, hnat]
| none =>
have hlen' : (c :: tail).length ≤ 3458764513820540928 := by
simp only [List.length_cons] at hlen
omega
have hvalid : SourceValidByteSlice body := by
unfold SourceValidByteSlice
change (c :: tail).length ≤ 9223372036854775807
exact Nat.le_trans hlen' (by norm_num)
have hne : body.val ≠ [] := by simp [body]
have hrecord := hC.record_bounds body d hvalid hne hn
have haddBound : d.mantissa.val + 1 ≤ U64.max := by
rw [U64.max_eq]
omega
have hadd := UScalar.add_spec (x := d.mantissa) (y := 1#u64) (by
simpa using haddBound)
obtain ⟨next, hadd, hnext⟩ := Aeneas.Std.WP.spec_imp_exists hadd
cases htot : F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.SIG_TOTAL_BITS with
| ok sig =>
have hsigVal : sig = 53#u32 := by
have e := htotal53.symm.trans htot
injection e with he
exact he.symm
subst sig
by_cases hmany : d.many_digits = true
· have hnatMany : C.native { d with negative := false, many_digits := true } = none := by
simpa [hmany] using hnat
by_cases hp : ((C.integer d.exponent d.mantissa).p_biased : Int) ≥ 0
· simp [body, hn, hnatMany, hadd, hmany, hp, htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind]
by_cases hmEq : (C.integer d.exponent d.mantissa).m =
(C.integer d.exponent next).m
· by_cases hpEq : (C.integer d.exponent d.mantissa).p_biased =
(C.integer d.exponent next).p_biased
· have hpEqInt : (↑(C.integer d.exponent d.mantissa).p_biased : Int) =
(↑(C.integer d.exponent next).p_biased : Int) :=
congrArg IScalar.val hpEq
have hnotneg : ¬ ((C.integer d.exponent next).p_biased : Int) < 0 := by
rw [← hpEqInt]
omega
simp [hmEq, hpEq, hpEqInt, hp, hnotneg]
· simp [hmEq, hpEq, hp]
· simp [hmEq, hp] <;> simp_all
· have hpNeg : ((C.integer d.exponent d.mantissa).p_biased : Int) < 0 := by omega
simp [body, hn, hnatMany, hadd, hmany, hp, hpNeg,
htotal53, hsig52, hsub53,
num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq] <;>
simp only [hnatMany, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
simp
· have hmany' : d.many_digits = false := Bool.eq_false_of_not_eq_true hmany
have hnatFew : C.native { d with negative := false, many_digits := false } = none := by
simpa [hmany'] using hnat
simp [body, hn, hnatFew, hmany', hsig52, hsub53] <;>
simp only [hnatFew, hcastOK, hshiftEq, hbitOr, Bind.bind, Aeneas.Std.bind] <;>
split_ifs <;> simp only [Bind.bind, Aeneas.Std.bind] <;> simp
| fail e => simp [htot] at htotal53
| div => simp [htot] at htotal53
end dec2flt_model
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Uses
All 14 entries
- DispatchContracts
- ModelF64MantissaDigits
- ModelSliceFirst
- ModelStrAsBytes
- ModelU64BitOr
- ModelU64Shl
- SignStrippedClassification
- DispatchFrame
- EmbedComponents
- ParserExponentConstants
- num imp dec2flt common BiasedFp Insts CoreCmpPartialEqBiasedFp eq
- num imp dec2flt pfe empty
- num imp dec2flt pfe invalid
- num imp traits Float SIG BITS default
Inspect related source (198)
- eq · dec2flt/common.rs:55 Program Rust
- pfe_empty · dec2flt/mod.rs:270 Program Rust
- pfe_invalid · dec2flt/mod.rs:277 Program Rust
More program dependencies (156)
- default · traits.rs:101 Program Rust
- Dec2flt_modelNumImpDec2fltLemireU64 · dec2flt/mod.rs:217 Program Rust
- Dec2flt_modelNumImpTraitsFloatU64 · traits.rs:309 Program Rust
- BITS · traits.rs:319 Program Rust
- LARGEST_POWER_OF_TEN · traits.rs:327 Program Rust
- MAX_EXPONENT_ROUND_TO_EVEN · traits.rs:325 Program Rust
- MIN_EXPONENT_ROUND_TO_EVEN · traits.rs:324 Program Rust
- SIG_TOTAL_BITS · traits.rs:320 Program Rust
- SMALLEST_POWER_OF_TEN · traits.rs:328 Program Rust
- FloatErrorKind · num/mod.rs:18 Program Rust
- ParseFloatError · num/mod.rs:13 Program Rust
- BiasedFp · dec2flt/common.rs:56 Program Rust
- dec2flt_with_trace · dec2flt/mod.rs:355 Program Rust
- Float · traits.rs:74 Program Rust
- default · traits.rs:116 Program Rust
- default · traits.rs:104 Program Rust
- default · traits.rs:119 Program Rust
- default · traits.rs:110 Program Rust
- default · traits.rs:113 Program Rust
- MAX_EXPONENT_DISGUISED_FAST_PATH · dec2flt/mod.rs:220 Program Rust
- MAX_EXPONENT_FAST_PATH · dec2flt/mod.rs:219 Program Rust
- from_u64 · dec2flt/mod.rs:263 Program Rust
- pow10_fast_path · dec2flt/mod.rs:222 Program Rust
- Dec2flt_modelNumImpTraitsFloatExtU64 · traits.rs:339 Program Rust
- EXP_MASK · traits.rs:321 Program Rust
- INFINITY · traits.rs:312 Program Rust
- NAN · traits.rs:314 Program Rust
- NEG_INFINITY · traits.rs:313 Program Rust
- NEG_NAN · traits.rs:317 Program Rust
- SIG_MASK · traits.rs:322 Program Rust
- classify · traits.rs:334 Program Rust
- to_bits · traits.rs:330 Program Rust
- Dec2flt_modelNumImpTraitsInt · traits.rs:51 Program Rust
- Dec2FltAssemblyTrace · dec2flt/mod.rs:329 Program Rust
- Dec2FltTrace · dec2flt/mod.rs:295 Program Rust
- Lemire · dec2flt/mod.rs:115 Program Rust
- default · dec2flt/mod.rs:128 Program Rust
- default · dec2flt/mod.rs:121 Program Rust
- biased_fp_to_float · dec2flt/mod.rs:282 Program Rust
- ByteSlice · dec2flt/common.rs:4 Program Rust
- Decimal · dec2flt/decimal.rs:32 Program Rust
- try_fast_path · dec2flt/decimal.rs:59 Program Rust
- DecimalSeq · dec2flt/decimal_seq.rs:22 Program Rust
- compute_float · dec2flt/lemire.rs:26 Program Rust
- parse_inf_nan · dec2flt/parse.rs:244 Program Rust
- parse_number · dec2flt/parse.rs:234 Program Rust
- parse_long_mantissa · dec2flt/slow.rs:27 Program Rust
- parse_long_mantissa_loop0 · dec2flt/slow.rs:51 Program Rust
- body · dec2flt/slow.rs:51 Program Rust
- parse_long_mantissa_loop1 · dec2flt/slow.rs:69 Program Rust
- body · dec2flt/slow.rs:69 Program Rust
- parse_long_mantissa_loop2 · dec2flt/slow.rs:94 Program Rust
- body · dec2flt/slow.rs:94 Program Rust
- CastInto · traits.rs:18 Program Rust
- FloatExt · traits.rs:170 Program Rust
- Int · traits.rs:27 Program Rust
- from_u64_bits · traits.rs:341 Program Rust
- integer_decode · traits.rs:348 Program Rust
- read_u64 · dec2flt/common.rs:22 Program Rust
- Dec2flt_modelNumImpTraitsCastIntoI16 · traits.rs:45 Program Rust
- ONE · traits.rs:53 Program Rust
- ZERO · traits.rs:52 Program Rust
- zero_pow2 · dec2flt/common.rs:66 Program Rust
- can_use_fast_path · dec2flt/decimal.rs:42 Program Rust
- INT_POW10 · dec2flt/decimal.rs:8 Program Rust
- DECIMAL_POINT_RANGE · dec2flt/decimal_seq.rs:68 Program Rust
- left_shift · dec2flt/decimal_seq.rs:130 Program Rust
- left_shift_loop0 · dec2flt/decimal_seq.rs:139 Program Rust
- body · dec2flt/decimal_seq.rs:139 Program Rust
- left_shift_loop1 · dec2flt/decimal_seq.rs:153 Program Rust
- body · dec2flt/decimal_seq.rs:153 Program Rust
- right_shift · dec2flt/decimal_seq.rs:176 Program Rust
- right_shift_loop0 · dec2flt/decimal_seq.rs:181 Program Rust
- body · dec2flt/decimal_seq.rs:181 Program Rust
- right_shift_loop0_loop0 · dec2flt/decimal_seq.rs:191 Program Rust
- body · dec2flt/decimal_seq.rs:191 Program Rust
- right_shift_loop1 · dec2flt/decimal_seq.rs:210 Program Rust
- body · dec2flt/decimal_seq.rs:210 Program Rust
- right_shift_loop2 · dec2flt/decimal_seq.rs:217 Program Rust
- body · dec2flt/decimal_seq.rs:217 Program Rust
- round · dec2flt/decimal_seq.rs:97 Program Rust
- round_loop · dec2flt/decimal_seq.rs:107 Program Rust
- body · dec2flt/decimal_seq.rs:107 Program Rust
- parse_decimal_seq · dec2flt/decimal_seq.rs:288 Program Rust
- parse_decimal_seq_loop0 · dec2flt/decimal_seq.rs:296 Program Rust
- body · dec2flt/decimal_seq.rs:296 Program Rust
- parse_decimal_seq_loop1 · dec2flt/decimal_seq.rs:368 Program Rust
- body · dec2flt/decimal_seq.rs:368 Program Rust
- parse_decimal_seq_loop2 · dec2flt/decimal_seq.rs:309 Program Rust
- body · dec2flt/decimal_seq.rs:309 Program Rust
- parse_decimal_seq_loop3 · dec2flt/decimal_seq.rs:313 Program Rust
- body · dec2flt/decimal_seq.rs:313 Program Rust
- parse_decimal_seq_loop4 · dec2flt/decimal_seq.rs:368 Program Rust
- body · dec2flt/decimal_seq.rs:368 Program Rust
- parse_decimal_seq_loop5 · dec2flt/decimal_seq.rs:313 Program Rust
- body · dec2flt/decimal_seq.rs:313 Program Rust
- parse_decimal_seq_loop6 · dec2flt/decimal_seq.rs:368 Program Rust
- body · dec2flt/decimal_seq.rs:368 Program Rust
- parse_decimal_seq_loop7 · dec2flt/decimal_seq.rs:368 Program Rust
- body · dec2flt/decimal_seq.rs:368 Program Rust
- set_precision · dec2flt/fpu.rs:99 Program Rust
- compute_product_approx · dec2flt/lemire.rs:134 Program Rust
- power · dec2flt/lemire.rs:121 Program Rust
- parse_partial_number · dec2flt/parse.rs:164 Program Rust
- MAX_SHIFT · dec2flt/slow.rs:28 Program Rust
- call · dec2flt/slow.rs:33 Program Rust
- offset_from · dec2flt/common.rs:34 Program Rust
- write_u64 · dec2flt/common.rs:29 Program Rust
- cast · traits.rs:46 Program Rust
- is_8digits · dec2flt/common.rs:44 Program Rust
- default · dec2flt/decimal_seq.rs:34 Program Rust
- MAX_DIGITS · dec2flt/decimal_seq.rs:64 Program Rust
- MAX_DIGITS_WITHOUT_OVERFLOW · dec2flt/decimal_seq.rs:67 Program Rust
- trim · dec2flt/decimal_seq.rs:83 Program Rust
- trim_loop · dec2flt/decimal_seq.rs:92 Program Rust
- body · dec2flt/decimal_seq.rs:92 Program Rust
- count_trailing_zeros · dec2flt/decimal_seq.rs:236 Program Rust
- count_trailing_zeros_loop · dec2flt/decimal_seq.rs:240 Program Rust
- body · dec2flt/decimal_seq.rs:240 Program Rust
- final_decimal_point · dec2flt/decimal_seq.rs:269 Program Rust
- number_of_digits_decimal_left_shift · dec2flt/decimal_seq.rs:375 Program Rust
- number_of_digits_decimal_left_shift_loop · dec2flt/decimal_seq.rs:441 Program Rust
- body · dec2flt/decimal_seq.rs:441 Program Rust
- parse_digits_into_seq · dec2flt/decimal_seq.rs:257 Program Rust
- parse_digits_into_seq_loop · dec2flt/decimal_seq.rs:259 Program Rust
- body · dec2flt/decimal_seq.rs:259 Program Rust
- full_multiplication · dec2flt/lemire.rs:126 Program Rust
- adjust_many_digit_count · dec2flt/parse.rs:86 Program Rust
- adjust_many_digit_count_loop · dec2flt/parse.rs:89 Program Rust
- body · dec2flt/parse.rs:89 Program Rust
- parse_many_digits · dec2flt/parse.rs:104 Program Rust
- parse_scientific · dec2flt/parse.rs:121 Program Rust
- parse_scientific_loop · dec2flt/parse.rs:145 Program Rust
- body · dec2flt/parse.rs:145 Program Rust
- try_parse_digits · dec2flt/parse.rs:30 Program Rust
- try_parse_digits_loop0 · dec2flt/parse.rs:33 Program Rust
- body · dec2flt/parse.rs:33 Program Rust
- try_parse_digits_loop1 · dec2flt/parse.rs:50 Program Rust
- body · dec2flt/parse.rs:50 Program Rust
- NUM_POWERS · dec2flt/slow.rs:29 Program Rust
- POWERS · dec2flt/slow.rs:30 Program Rust
- closure · dec2flt/slow.rs:33 Program Rust
- LARGEST_POWER_OF_FIVE · dec2flt/table.rs:10 Program Rust
- POWER_OF_FIVE_128 · dec2flt/table.rs:19 Program Rust
- SMALLEST_POWER_OF_FIVE · dec2flt/table.rs:9 Program Rust
- try_add_digit · dec2flt/decimal_seq.rs:74 Program Rust
- TABLE · dec2flt/decimal_seq.rs:377 Program Rust
- TABLE_POW5 · dec2flt/decimal_seq.rs:386 Program Rust
- MIN_19DIGIT_INT · dec2flt/parse.rs:8 Program Rust
- parse_8digits · dec2flt/parse.rs:18 Program Rust
- try_parse_19digits · dec2flt/parse.rs:61 Program Rust
- try_parse_19digits_loop · dec2flt/parse.rs:64 Program Rust
- body · dec2flt/parse.rs:64 Program Rust
- MASK · dec2flt/parse.rs:19 Program Rust
- MUL1 · dec2flt/parse.rs:20 Program Rust
- MUL2 · dec2flt/parse.rs:21 Program Rust
Standard-library dependencies (39)
- bitor · core/src/ops/bit.rs:282 Rust library
- shl · core/src/ops/bit.rs:489 Rust library
- MANTISSA_DIGITS · core/src/num/f64.rs:412 Rust library
- first · core/src/slice/mod.rs:155 Rust library
- as_bytes · core/src/str/mod.rs:498 Rust library
- clone · core/src/clone.rs:698 Rust library
- div · core/src/ops/arith.rs:515 Rust library
- mul · core/src/ops/arith.rs:350 Rust library
- neg · core/src/ops/arith.rs:719 Rust library
- bitand · core/src/ops/bit.rs:178 Rust library
- shr · core/src/ops/bit.rs:612 Rust library
- EXPONENT_MASK · core/src/num/f64.rs:615 Rust library
- INFINITY · core/src/num/f64.rs:512 Rust library
- MANTISSA_MASK · core/src/num/f64.rs:637 Rust library
- NAN · core/src/num/f64.rs:509 Rust library
- NEG_INFINITY · core/src/num/f64.rs:515 Rust library
- classify · core/src/num/f64.rs:782 Rust library
- from_bits · core/src/num/f64.rs:1269 Rust library
- to_bits · core/src/num/f64.rs:1223 Rust library
- is_ascii_digit · core/src/num/mod.rs:958 Rust library
- from_residual · core/src/option.rs:2793 Rust library
- branch · core/src/option.rs:2779 Rust library
- split_first · core/src/slice/mod.rs:198 Rust library
- CoreMarkerCopy · core/src/marker.rs:57 Rust library
- CoreOpsArithDivF64F64 · core/src/ops/arith.rs:511 Rust library
- CoreOpsArithMulF64F64 · core/src/ops/arith.rs:344 Rust library
- CoreOpsArithNegF64 · core/src/ops/arith.rs:713 Rust library
- FpCategory · core/src/num/mod.rs:1522 Rust library
- Div · core/src/ops/arith.rs:460 Rust library
- Mul · core/src/ops/arith.rs:322 Rust library
- Neg · core/src/ops/arith.rs:690 Rust library
- BitOr · core/src/ops/bit.rs:254 Rust library
- Shl · core/src/ops/bit.rs:461 Rust library
- Shr · core/src/ops/bit.rs:584 Rust library
- CoreCloneClone · core/src/clone.rs:696 Rust library
- CoreOpsBitBitAndU64U64 · core/src/ops/bit.rs:174 Rust library
- CoreOpsBitBitOrU64U64 · core/src/ops/bit.rs:278 Rust library
- CoreOpsBitShlU32U64 · core/src/ops/bit.rs:483 Rust library
- CoreOpsBitShrU32U64 · core/src/ops/bit.rs:606 Rust library
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
- Classical.choice
- Quot.sound
- propext
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
- Binary64Model
- Binary64ModelDefault
- DecimalGoalVocabulary
- DecimalGoalVocabularyDefault
- DecimalLexeme
- DispatchContracts
All 102 entries
- Binary64Model
- Binary64ModelDefault
- DecimalGoalVocabulary
- DecimalGoalVocabularyDefault
- DecimalLexeme
- DispatchContracts
- F64
- F64 Insts CoreCloneClone
- F64 Insts CoreMarkerCopy
- F64 Insts CoreOpsArithDivF64F64
- F64 Insts CoreOpsArithMulF64F64
- F64 Insts CoreOpsArithNegF64
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 MAX EXPONENT DISGUISED FAST PATH
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 MAX EXPONENT FAST PATH
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 pow10 fast path
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64 from u64 bits
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64 integer decode
- F64 Insts Dec2flt modelNumImpTraitsFloatU64
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 BITS
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 EXP MASK
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 INFINITY
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 LARGEST POWER OF TEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 MAX EXPONENT ROUND TO EVEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 MIN EXPONENT ROUND TO EVEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NAN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NEG INFINITY
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NEG NAN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SIG MASK
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SIG TOTAL BITS
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SMALLEST POWER OF TEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 classify
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 to bits
- ModelF64Classify
- ModelF64Clone
- ModelF64Div
- ModelF64ExponentMask
- ModelF64FromBits
- ModelF64FromU64
- ModelF64Infinity
- ModelF64MantissaDigits
- ModelF64MantissaMask
- ModelF64Mul
- ModelF64Nan
- ModelF64Neg
- ModelF64NegInfinity
- ModelF64ToBits
- ModelOptionBranch
- ModelOptionFromResidual
- ModelSliceFirst
- ModelSliceSplitFirst
- ModelStrAsBytes
- ModelU64BitAnd
- ModelU64BitOr
- ModelU64Shl
- ModelU64Shr
- ModelU8IsAsciiDigit
- FrameNormality
- AbstractComponents
- DispatchFrame
- DispatchOperations
- EmbedComponents
- ParserExponentConstants
- Preamble
- SourceValidByteSlice
- U64 Insts CoreOpsBitBitAndU64U64
- U64 Insts CoreOpsBitBitOrU64U64
- U64 Insts CoreOpsBitShlU32U64
- U64 Insts CoreOpsBitShrU32U64
- U64 Insts Dec2flt modelNumImpTraitsCastIntoI16
- U64 Insts Dec2flt modelNumImpTraitsCastIntoI16 cast
- U64 Insts Dec2flt modelNumImpTraitsInt
- U64 Insts Dec2flt modelNumImpTraitsInt ONE
- U64 Insts Dec2flt modelNumImpTraitsInt ZERO
- core num FpCategory
- core ops arith Div
- core ops arith Mul
- core ops arith Neg
- core ops bit BitOr
- core ops bit Shl
- core ops bit Shr
- num float parse FloatErrorKind
- num float parse ParseFloatError
- num imp dec2flt Dec2FltAssemblyTrace
- num imp dec2flt Dec2FltTrace
- num imp dec2flt Lemire
- num imp dec2flt Lemire MAX MANTISSA FAST PATH default
- num imp dec2flt common BiasedFp
- num imp dec2flt common BiasedFp Insts CoreCmpPartialEqBiasedFp eq
- num imp dec2flt decimal Decimal
- num imp dec2flt pfe empty
- num imp dec2flt pfe invalid
- num imp traits CastInto
- num imp traits Float
- num imp traits FloatExt
- num imp traits Float EXP BIAS default
- num imp traits Float EXP BITS default
- num imp traits Float EXP MIN default
- num imp traits Float EXP SAT default
- num imp traits Float SIG BITS default
- num imp traits Int
Technical checking records
Local closure summary
{
"node": "P616_T1_FrameNormality",
"closure_version": "patch_c_v1",
"active_decl_hash": "feb41f9a45612c63003c33b3a562a7318ca457e6d8446355ab4db7e2761cb73d",
"active_statement_hash": "8f3ff13a8aa8e7fb9f7db59ec1500baed4fe079df38426df3139210564aa98cc",
"kernel_axioms": [
"Classical.choice",
"Quot.sound",
"propext"
],
"toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
"lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
"checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
"approved_axioms_hash": "576e6bf9480cfd32f53c309c7ac8fb115c1ba6e413f299ed5ff9fa7c647e6769",
"axcheck_status": "Agreed",
"accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-181",
"boundary_theorems": {},
"strict_theorem_deps": {
"DispatchContracts": "b6ed9d0f697e9dae",
"P9_T1_DispatchFrame": "32d9110750ebf062",
"ParserExponentConstants": "e2a30a7b0c5e9c91",
"num_imp_traits_Float_SIG_BITS_default": "9ab622d85ef04d94"
},
"strict_definition_deps": {
"DecimalGoalVocabulary": "1f42f752b5d22513",
"DecimalGoalVocabularyDefault": "71a18a6c119a3cdc",
"DispatchContracts": "008abfbd503545bf",
"F64": "ec4e25fbaf4e11d4",
"F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64": "30963b4ef656cc79",
"F64_Insts_Dec2flt_modelNumImpTraitsFloatU64": "94095c9bf79da164",
"F64_Insts_Dec2flt_modelNumImpTraitsFloatU64_SIG_TOTAL_BITS": "887b52d84a3fc9c4",
"ModelSliceFirst": "a31394b3c1080f71",
"ModelStrAsBytes": "024fe35b4dbfa9a3",
"P9_T1_AbstractComponents": "0a7e8b7bdbce0180",
"P9_T1_DispatchFrame": "3d36c6a218e86be3",
"P9_T1_DispatchOperations": "c43614ff2149ecf2",
"P9_T1_EmbedComponents": "c6037220641c6c08",
"Preamble": "86dc391ab250c79b",
"SourceValidByteSlice": "3dc42716a6378d26",
"num_float_parse_FloatErrorKind": "20698e72f41a7333",
"num_float_parse_ParseFloatError": "50fdc93f3a82a17e",
"num_imp_dec2flt_Dec2FltAssemblyTrace": "7bda5de02611ad76",
"num_imp_dec2flt_Dec2FltTrace": "ef050fc88fd50bb9",
"num_imp_dec2flt_Lemire": "1923f90c53d323e6",
"num_imp_dec2flt_common_BiasedFp": "31d81cf1cf22709f",
"num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq": "fbbf553e3c502a05",
"num_imp_dec2flt_decimal_Decimal": "fe99f3f976739f2d",
"num_imp_dec2flt_pfe_empty": "89046d1da5ac1ce2",
"num_imp_dec2flt_pfe_invalid": "21db875427d92c6d",
"num_imp_traits_Float": "94ab5f784cdf5db8",
"num_imp_traits_FloatExt": "f996e5400649797d"
}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "sound-v2:faa2e625e85166890130ac62d579f8df465fe5644ccb44a0ea79029261986dd9",
"current_fingerprint": "sound-v2:faa2e625e85166890130ac62d579f8df465fe5644ccb44a0ea79029261986dd9",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass",
"substantiveness_status": "Pass"
}