Definition and explanation
This explanation was written alongside the formalization to describe the statement and its reasoning.
Definition
Str is source-valid
exactly when its byte list has length at most
\mathtt{isize::MAX}=9223372036854775807 and is the UTF-8 encoding of a Lean
string. A numeric
lexeme has an optional minus or plus sign and is valid exactly when every
recorded digit is in 0,\ldots,9, at least
one digit occurs on either side of the optional point, and a present exponent
has at least one digit. Rendering uses ASCII, an optional leading sign, the
recorded optional point, and an optional e/E exponent with
its optional sign. Special literals are optionally signed
inf, infinity, or nan, ASCII case-insensitively.
Classification is numeric with its complete lexeme, special with its sign and
kind, or invalid exactly when neither grammar matches.Decimal has magnitude \mathit{mantissa}\,10^{\mathit{exponent}}.BiasedFp assembly is the low 64 bits of the
mantissa OR the Rust two's-complement i32-to-u64 cast of the
biased exponent shifted left by 52.Lean definition
Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.
import Tablet.DecimalGoalVocabulary
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: DecimalGoalVocabularyDefault]
noncomputable def DecimalGoalVocabularyDefault : DecimalGoalVocabulary :=
-- BODY
let signBytes := fun sign : Option Bool =>
match sign with | none => [] | some negative => [if negative then 45 else 43]
let digitByte := fun d : Nat => 48 + d
let allDigits := fun ds : List Nat => ∀ d ∈ ds, d < 10
let validNumeric := fun x : DecimalLexeme =>
allDigits x.integerDigits ∧
(match x.fractionDigits with | none => True | some ds => allDigits ds) ∧
(x.integerDigits ≠ [] ∨
match x.fractionDigits with | none => False | some ds => ds ≠ []) ∧
(match x.exponent with | none => True | some (_, _, ds) => ds ≠ [] ∧ allDigits ds)
let renderNumeric := fun x : DecimalLexeme =>
signBytes x.leadingSign ++ x.integerDigits.map digitByte ++
(match x.fractionDigits with | none => [] | some ds => 46 :: ds.map digitByte) ++
(match x.exponent with
| none => []
| some (upper, sign, ds) =>
(if upper then 69 else 101) ::
(match sign with | none => [] | some neg => [if neg then 45 else 43]) ++
ds.map digitByte)
let asciiCaseEq := fun xs ys : List Nat =>
List.Forall₂ (fun actual lower => actual = lower ∨ actual + 32 = lower) xs ys
let specialLiteral := fun bs : List Nat => fun sign : Option Bool => fun nan : Bool =>
∃ body, bs = signBytes sign ++ body ∧
if nan then asciiCaseEq body [110, 97, 110]
else asciiCaseEq body [105, 110, 102] ∨
asciiCaseEq body [105, 110, 102, 105, 110, 105, 116, 121]
let numericLiteral := fun bs : List Nat => fun x : DecimalLexeme =>
validNumeric x ∧ renderNumeric x = bs
let classifies := fun bs : List Nat =>
fun c : Option (Sum DecimalLexeme (Option Bool × Bool)) =>
match c with
| some (Sum.inl x) => numericLiteral bs x
| some (Sum.inr (sign, nan)) => specialLiteral bs sign nan
| none => (¬ ∃ x, numericLiteral bs x) ∧ (¬ ∃ sign nan, specialLiteral bs sign nan)
let digitsValue : List Nat -> Nat :=
fun ds => ds.foldl (fun (n d : Nat) => 10 * n + d) 0
let exponentValue := fun x : DecimalLexeme =>
match x.exponent with
| none => 0
| some (_, sign, ds) =>
let n : Int := digitsValue ds
match sign with | some true => -n | _ => n
let accumulatedExponentValue := fun x : DecimalLexeme =>
match x.exponent with
| none => 0
| some (_, sign, ds) =>
let n : Nat := ds.foldl
(fun (n d : Nat) => if n < 65536 then 10 * n + d else n) 0
match sign with | some true => -(n : Int) | _ => (n : Int)
let fractionCount := fun x : DecimalLexeme =>
match x.fractionDigits with | none => 0 | some ds => ds.length
let significandDigits := fun x : DecimalLexeme =>
x.integerDigits ++ match x.fractionDigits with | none => [] | some ds => ds
let magnitudeWithExponent := fun x : DecimalLexeme => fun e : Int =>
(digitsValue (significandDigits x) : Real) *
(10 : Real) ^ (e - (fractionCount x : Int))
let signBit : Nat := 2 ^ 63
let fractionUnit : Nat := 2 ^ 52
let infinityBits : Nat := 2047 * fractionUnit
let finiteMagnitudeValue := fun bits : Nat =>
let e := bits / fractionUnit
let m := bits % fractionUnit
if e = 0 then
(m : Real) / ((2 : Real) ^ (1074 : Nat))
else if 1075 <= e then
((fractionUnit + m : Nat) : Real) * ((2 : Real) ^ (e - 1075))
else
((fractionUnit + m : Nat) : Real) / ((2 : Real) ^ (1075 - e))
let overflowThreshold : Real :=
((2 : Real) ^ (1024 : Nat)) - ((2 : Real) ^ (970 : Nat))
let roundsMagnitude := fun x : Real => fun w : F64 =>
0 <= x ∧ w.val <= infinityBits ∧
if w.val = infinityBits then overflowThreshold <= x
else x < overflowThreshold ∧
∀ v : F64, v.val < infinityBits -> v ≠ w ->
abs (x - finiteMagnitudeValue w.val) <= abs (x - finiteMagnitudeValue v.val) ∧
(abs (x - finiteMagnitudeValue w.val) = abs (x - finiteMagnitudeValue v.val) ->
w.val % 2 = 0)
{
bytes := fun s => s.val.map (fun b => b.val)
sourceString := fun s => s.val.length <= 9223372036854775807 ∧
∃ t : String, s.val.map (fun b => b.val) = t.toUTF8.toList.map UInt8.toNat
validNumeric := validNumeric
renderNumeric := renderNumeric
lexicalNegative := fun x => x.leadingSign = some true
specialLiteral := specialLiteral
classifies := classifies
mathExplicitExponent := exponentValue
accumulatedExplicitExponent := accumulatedExponentValue
exactMagnitude := fun x => magnitudeWithExponent x (exponentValue x)
accumulatedMagnitude := fun x => magnitudeWithExponent x (accumulatedExponentValue x)
decimalMagnitude := fun d => (d.mantissa.val : Real) * (10 : Real) ^ d.exponent.val
roundsMagnitude := roundsMagnitude
isNan := fun w =>
(w.val % signBit) / fractionUnit = 2047 ∧ w.val % fractionUnit ≠ 0
isInfinity := fun negative w =>
w.val = infinityBits + if negative then signBit else 0
isNegative := fun w => signBit <= w.val
signedMagnitude := fun negative magnitude result =>
magnitude.val < signBit ∧ result.val = magnitude.val + if negative then signBit else 0
assembledWord := fun fp w =>
w.val = Nat.lor fp.m.val
(((fp.p_biased.val.emod (2 ^ 64)).toNat * (2 ^ 52)) % (2 ^ 64))
}
end dec2flt_model
Preservation and explanation
Natural-language argument
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.
Preservation argument
Claim
str domain, while its total byte observation also applies
to every source-valid arbitrary-byte slice in SourceValidByteSlice.
Its rounding field expresses binary64 magnitude round-to-nearest,
ties-to-even, including subnormals and overflow, but makes no assertion that a
target exists or is unique. Its assembly field covers every value of both
fields of an unrestricted source BiasedFp. The instance supplies
vocabulary only: it does not assert parser termination, return discriminants,
record bounds, trace selection, component compliance, deferral behavior, or
the truth of any principal GOAL theorem.Proof
Slice U8 an ordered list subtype, and all relevant slice observations
retain that order. Consequently s.val.map (fun b => b.val) maps every
represented element, in order and without omission, to the natural-number
value of its unsigned eight-bit scalar
(reference/model-evidence/aeneas-slice-observations.txt). Thus
bytes is the complete unsigned byte list, not a UTF-8-filtered
observation. The first conjunct of sourceString is precisely the
\mathtt{isize::MAX}=2^{63}-1 source-length condition, as established for the
configured target by SourceValidByteSlice and
reference/model-evidence/source-valid-byte-slice.txt.t.toUTF8 is definitionally t.toByteArray, and the proof field
of the String structure shows that this byte array is in the image of
List.utf8Encode; equality of the lists of unsigned byte values
identifies it with the Aeneas bytes, so those bytes are valid UTF-8.
Conversely, if the source bytes are valid UTF-8, the constructor of
ByteArray.IsValidUTF8 supplies a character list whose
List.utf8Encode is exactly that byte array. Applying
String.fromUTF8 to the byte array and this proof constructs a Lean
string whose toUTF8, by definition, is the original array, furnishing
the existential. Rust str requires exactly valid UTF-8 in addition
to the same length bound
(reference/model-evidence/source-valid-byte-slice.txt), so
sourceString is equivalent in both directions to the configured Rust
string domain rather than merely assuming an unspecified UTF-8 equivalence.allDigits says exactly that each stored natural is
one of 0,\ldots,9. The four conjuncts of validNumeric require this
for the integer digits, for present fractional digits, and for present
exponent digits; require at least one digit in the integer/fraction pair; and
require a present exponent to contain at least one digit. In
renderNumeric, none, some false, and
some true for the leading sign render respectively as no byte,
ASCII plus, and ASCII minus. Integer digits render as 48+d; a present
fraction renders one point byte 46 followed by its digits; and a present
exponent renders ASCII e or E, its independently optional
plus/minus sign, and its digits. Equality with the complete input byte list in
numericLiteral leaves no whitespace, suffix, second point, or other
extra byte. These are exactly the optional-sign, point, e/E,
and exponent clauses pinned from the reference in
reference/model-evidence/goal-vocabulary.txt.asciiCaseEq, List.Forall2 first forces the two lists to
have equal length. At each position whose required lowercase ASCII byte is
l\in\{97,102,105,110,116,121\}, the disjunction is
a=l or a+32=l, hence a is exactly the lowercase byte l or its uppercase
byte l-32. Therefore the three fixed lists accept exactly ASCII
case-variants of nan, inf, and infinity.
specialLiteral prepends precisely the optional sign bytes and selects
nan when its Boolean is true and one of the two infinity spellings
when it is false. Finally, unfolding classifies shows: a left value
is related exactly by numericLiteral; a right value is related
exactly by specialLiteral; and none is related exactly when
there exists neither a numeric lexeme nor a special sign/kind witness. Thus
the invalid case is precisely the complement of the two complete grammars,
without any assertion that successful witnesses are unique.lexicalNegative is true exactly when the
DecimalLexeme leading-sign field is some true, the encoding
of a rendered minus. The fold digitsValue starts at zero and replaces
n by 10n+d for every digit, so for all-digit lists it is their ordinary
base-ten value, including leading zeroes. Accordingly
mathExplicitExponent is zero when absent and otherwise applies the
recorded minus exactly for sign some true. The accumulated fold
performs the same update exactly while the previous accumulator is below
65536, and otherwise retains it; its largest performed update is at most
10\cdot65535+9, so it agrees with the checked source loop without integer
overflow. It then applies the same sign. This is the complete source loop,
including its update test, pinned in
reference/model-evidence/goal-vocabulary.txt.fractionCount counts exactly the latter.
Therefore exactMagnitude is
N10^{e-f} for the all-digit significand value N, mathematical explicit
exponent e, and fractional length f; accumulatedMagnitude is the
same all-digit formula with the bounded-fold exponent. Independently, for
every extracted Decimal record d, decimalMagnitude is the
unsigned real d.\mathit{mantissa}\,10^{d.\mathit{exponent}}. Its sign is not
lexical: where needed it is the separate record field d.\mathit{negative}.finiteMagnitudeValue is
m/2^{1074}=m2^{-1074}, including zero and every subnormal. When e>0, its
two executable branches are respectively
(2^{52}+m)2^{e-1075} for e\ge1075 and
(2^{52}+m)/2^{1075-e}=(2^{52}+m)2^{e-1075} below 1075.
Thus all and only finite nonnegative binary64 magnitude candidates are covered
with their ordinary values. The 11-bit exponent, 52-bit fraction, and IEEE
interpretation are independently pinned in
reference/model-evidence/binary64-boundary.txt.roundsMagnitude requires its finite
candidate to have distance no greater than every other finite candidate; if a
competitor is at equal distance, it requires the selected word's low bit to be
even. This is exactly nearest selection and the even-low-bit tie condition.
The maximum finite value is
(2^{53}-1)2^{971}=2^{1024}-2^{971}, its top-binade spacing is 2^{971},
and adding half that spacing gives the overflow midpoint
2^{1024}-2^{970}. At or above that midpoint the relation selects the
positive-infinity word; below it the infinity branch is impossible and the
finite branch applies. These clauses establish the meaning of the relation
only. They do not supply a target or prove two targets equal, leaving
rounding_totality and rounding_determinism as the unresolved
principal theorem obligations.isNan means exponent 2047 and nonzero fraction.
isInfinity requires exponent 2047, zero fraction, and adds the sign
bit exactly when its Boolean is true. Since every carrier word is below
2^{64}, isNegative tests exactly whether bit 63 is set.
signedMagnitude requires a zero-sign-bit input and either leaves it
unchanged or adds 2^{63}, so it applies the requested sign without changing
the exponent or fraction; this includes the two zeros and the two infinities.p_biased : i32 to u64, shifts it by the f64
significand width 52, and ORs it with m. For every signed field value
p, sign extension to a 64-bit word has unsigned value
(p\mathbin{\mathrm{emod}}2^{64}).\mathit{toNat}: it is p for
p\ge0 and 2^{64}+p for p<0. For every such cast word, shifting left by
52 is multiplication by 2^{52} modulo 2^{64}, by the complete U64 shift
semantics in reference/model-evidence/u64-shl.txt. The
Nat.lor of that result with the unrestricted U64 mantissa has exactly
the per-bit disjunction of the Rust U64 OR, by
reference/model-evidence/u64-bitor.txt. Therefore
assembledWord is the exact source cast/shift/OR word for every
unrestricted BiasedFp; no exponent-range or nonoverlap premise has
been introduced.Requirement: parser totality
sourceString is exactly the complete configured Rust-string domain, and bytes retains its ordered bytes. This vocabulary makes no termination, panic, or Result claim; those remain with the dispatcher operation and totality theorem.Requirement: parser numeric acceptance
validNumeric plus complete rendering is exactly the whole-input numeric grammar. Normal return and the public Ok discriminant remain with the parser operation.Requirement: parser invalid rejection
none classification is precisely the complement of both complete grammars. Normal return and the public Err value remain with the parser operation.Requirement: parser nan acceptance
specialLiteral gives exactly the optionally signed case-insensitive nan grammar and isNan gives exactly the exponent-all-ones, nonzero-fraction words. Acceptance and the returned payload are operation facts.Requirement: parser infinity
specialLiteral retains the optional lexical sign and isInfinity gives the corresponding signed infinity word. Acceptance and production of that word remain parser facts.Requirement: parser non nan results
Requirement: parser numeric sign
lexicalNegative, and signedMagnitude applies that Boolean even to zero and infinity. The connection to every successful parser result remains operation behavior.Requirement: parser signed zero
signedMagnitude maps its zero word to positive or negative zero according to lexicalNegative. Acceptance and returned-word selection remain parser facts.Requirement: parser exact rounding
roundsMagnitude is the full binary64 magnitude relation. Parser acceptance and selection of a related word remain operation behavior.Requirement: parser selected exponent
assembledWord relation adds no well-formedness premise to raw pairs. Which pairs a successful trace selects and the asserted 0\ldots2047 bound remain with trace and dispatcher preservation.Requirement: parser selected magnitude sign
isNegative reads its sign bit exactly. Successful trace selection and the proof that selected magnitudes have clear sign bits remain with the dispatcher.Requirement: dispatch abstract composition
Requirement: dispatch component compliance
Requirement: parser accumulated rounding
accumulatedMagnitude retains every significand digit and uses exactly the source threshold fold. Acceptance and production of a related target remain parser behavior.Requirement: parser equal target rounding
Requirement: number helper acceptance
validNumeric and renderNumeric with leading sign none; normal return and Some remain numeric-helper behavior.Requirement: number helper rejection
None remain numeric-helper behavior.Requirement: number helper record bounds
bytes adds no content restriction. Nonemptiness, normal return, Some, record negativity, and the mantissa bound remain with numeric-helper preservation.Requirement: number helper accumulated value
many_digits branch, equality, and half-open bounds remain helper behavior.Requirement: special helper infinity
specialLiteral (bytes s) none false. The separate Boolean argument is not a lexical sign and is used only in isInfinity for the returned word; normal return and Some remain special-helper behavior.Requirement: special helper nan
specialLiteral (bytes s) none true; the separate sign argument does not alter that grammar. isNan accepts every NaN payload, while normal return and Some remain special-helper behavior.Requirement: special helper rejection
specialLiteral cases with sign none is exactly failure of the unsigned keyword grammar, independently of the separate sign argument. Normal return and None remain special-helper behavior.Requirement: native correct or defer
decimalMagnitude d is its unsigned \mathit{mantissa}\,10^{\mathit{exponent}}, and signedMagnitude d.negative uses the Decimal record sign, not a lexical sign. Normal return, None/Some, many_digits, and both native paths remain native-operation behavior.Requirement: integer correct or defer
Requirement: slow accumulated rounding
none, accumulated magnitude retains the full significand, and rounding plus assembly have their exact meanings. Normal return and production of a raw pair remain slow-operation behavior.Requirement: assembly correspondence
assembledWord is exactly the Rust i32-to-u64 cast modulo 2^{64}, 52-bit left shift modulo 2^{64}, and U64 bitwise OR. Normal return and the final from_u64_bits observation remain with the assembly operation and float binding.Requirement: classification totality
Requirement: classification determinism
Requirement: classification significand digit
validNumeric lexeme explicitly has a nonempty integer list or a present nonempty fraction list. The principal grammar consequence is left to its theorem proof.Requirement: rounding totality
Requirement: rounding determinism
Requirement: exponent value agreement
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Used by
- AssemblyCorrespondence
- Binary64AdjacentNormalValues
- Binary64ApplySign
- Binary64EncoderCarryArithmetic
- Binary64ExactPositiveDivRounds
- Binary64ExactPositiveMulRounds
All 100 entries
- AssemblyCorrespondence
- Binary64AdjacentNormalValues
- Binary64ApplySign
- Binary64EncoderCarryArithmetic
- Binary64ExactPositiveDivRounds
- Binary64ExactPositiveMulRounds
- Binary64FiniteMagnitudeStrictMono
- Binary64FromU64Exact
- Binary64NearestEvenAssembly
- Binary64NormalEncoderRounds
- Binary64ZeroDivRounds
- Binary64ZeroMulRounds
- ClassificationDeterminism
- ClassificationSignificandDigit
- ClassificationTotality
- DecimalSeqDyadicShiftSemantics
- DecimalSeqExponentLoopExact
- DecimalSeqExponentResidualExact
- DecimalSeqExponentSuffixExact
- DecimalSeqIntegerExponentState
- DecimalSeqIntegerExponentZeroState
- DecimalSeqIntegerNoExponentState
- DecimalSeqLexicalState
- DecimalSeqRetainedValue
- DecimalSeqRoundArbitraryEndpoint
- DecimalSeqRoundLoopPrefixCore
- DecimalSeqRoundNearestEven
- DecimalSeqTrimSemantics
- DispatchAbstractComposition Refutation
- DispatchComponentCompliance Refutation
- DispatchContracts
- DispatchContractsUninhabited
- ExponentValueAgreement
- IntegerCoreRounding
- IntegerCorrectOrDefer
- IntegerEndpointRounding
- IntegerPowerFiniteCertificate
- IntegerPowerRealBridge
- IntegerPowerTableCertificate
- InvalidOverflowBoundaryWitness
- NativeCorrectOrDefer
- NearestEvenOrderedGrid
- NumberHelperAcceptanceSafeLength
- NumberHelperAcceptance Refutation
- NumberHelperAccumulatedValue
- NumberHelperDecimalPrefixInterval
- NumberHelperMaximalWitnessLexical
- NumberHelperPartialAcceptanceSafeLength
- NumberHelperPartialNumberSafeLength
- NumberHelperRejectionSafeLength
- NumberHelperRejection Refutation
- NumberHelperSafeLengthSharpness
- NumberHelperSplitExponentSuffix
- ParserAccumulatedRounding
- ParserAssembledDirectMagnitudeRounding
- ParserAssembledPairNonNan
- ParserAssembledTraceSign
- ParserAssemblyResidue
- ParserEqualTargetRounding
- ParserExactRoundingWitness
- ParserExactRounding Refutation
- ParserFastPathAccumulatedRounding
- ParserInfinity
- ParserInvalidRejectionSafeLength
- ParserInvalidRejection Refutation
- ParserNanAcceptance
- ParserNonNanResults
- ParserNumberScanAccounting
- ParserNumericAcceptance Refutation
- ParserNumericOverflowPropagation
- ParserNumericPublicOverflowWitness
- ParserNumericSign
- ParserNumericTraceShape
- ParserSelectedExponent
- ParserSelectedMagnitudeSign
- ParserSelectedMantissaBound
- ParserSignedZero
- ParserSlowControlFlow
- ParserSlowReachableDecimalSeq
- ParserSpecialRejectionSafeLength
- ParserSuccessfulTrace
- ParserTotality Refutation
- PositiveScaleErrorTransport
- RoundingDeterminism
- RoundingTotality
- SlowAccumulatedRoundingLexical
- SlowAccumulatedRoundingMagnitude
- SlowAccumulatedRounding Refutation
- SpecialHelperInfinity
- SpecialHelperNan
- SpecialHelperRejection
- TrellisConditional c0b964755dfba82a
- TrellisConditional c0b964755dfba82a ConditionInhabited
- TrellisConditional c0b964755dfba82a CounterexampleExcluded
- TrellisConditional d67247e4c442fb9d
- TrellisConditional d67247e4c442fb9d ConditionInhabited
- TrellisConditional d67247e4c442fb9d CounterexampleExcluded
- TrellisConditional dd99b8a97fe23649
- TrellisConditional dd99b8a97fe23649 ConditionInhabited
- TrellisConditional dd99b8a97fe23649 CounterexampleExcluded
Inspect related source (44)
- BiasedFp · dec2flt/common.rs:52 Program Rust
- Decimal · dec2flt/decimal.rs:32 Program Rust
- from_u64 · dec2flt/mod.rs:263 Program Rust
More program dependencies (11)
- FloatErrorKind · num/mod.rs:18 Program Rust
- ParseFloatError · num/mod.rs:13 Program Rust
- Dec2FltAssemblyTrace · dec2flt/mod.rs:329 Program Rust
- Dec2FltTrace · dec2flt/mod.rs:295 Program Rust
- Lemire · dec2flt/mod.rs:115 Program Rust
- ByteSlice · dec2flt/common.rs:4 Program Rust
- DecimalSeq · dec2flt/decimal_seq.rs:21 Program Rust
- CastInto · traits.rs:18 Program Rust
- Float · traits.rs:74 Program Rust
- FloatExt · traits.rs:170 Program Rust
- Int · traits.rs:27 Program Rust
Standard-library dependencies (30)
- 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
- bitor · core/src/ops/bit.rs:282 Rust library
- shl · core/src/ops/bit.rs:489 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_DIGITS · core/src/num/f64.rs:412 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
- first · core/src/slice/mod.rs:155 Rust library
- split_first · core/src/slice/mod.rs:198 Rust library
- as_bytes · core/src/str/mod.rs:498 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
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
Technical checking records
Local closure summary
{
"node": "DecimalGoalVocabularyDefault",
"closure_version": "patch_c_v1",
"active_decl_hash": "0fc3bc42a98cddc7f4b8e735912575cad8fa52d17b4459a1f5856fc044078e9b",
"active_statement_hash": "1f4a57e3e6bcced640f91efb7b2bc986c4ab343cf4b9b69c33e8f0e53f3ca9a7",
"kernel_axioms": [
"Classical.choice",
"Quot.sound",
"propext"
],
"toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
"lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
"checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
"approved_axioms_hash": "d5c04ffa333d9b33b238a527f5beaa2be82e021d3e9c0bbe01b1310280f7f55a",
"axcheck_status": "Agreed",
"accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-13",
"boundary_theorems": {},
"strict_theorem_deps": {},
"strict_definition_deps": {
"DecimalGoalVocabulary": "0717fd246d7ea78a",
"DecimalLexeme": "303e59678842cea4",
"F64": "ec4e25fbaf4e11d4",
"num_imp_dec2flt_common_BiasedFp": "5c88d5d7976c5e8f",
"num_imp_dec2flt_decimal_Decimal": "4c41a56bf44cb31e"
}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "preservation-v1:7d314a741677d4fb80c4994e0c6830d7191fb4da1ddb3a6d6aa459891ab9d0b7",
"current_fingerprint": "preservation-v1:7d314a741677d4fb80c4994e0c6830d7191fb4da1ddb3a6d6aa459891ab9d0b7",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass",
"substantiveness_status": "Pass"
}