ModelU64BitOr

Lean checked

Definition and explanation

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

Definition

\mathsf{ModelU64BitOr}(x,y) successfully returns the bounded 64-bit bitwise disjunction of x and y.

Lean definition

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64BitOr]
def ModelU64BitOr (x y : Std.U64) : Result Std.U64 :=
-- BODY
  ok (x ||| y)
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

For every pair of 64-bit words, this binding returns their exact bounded bitwise disjunction.

Proof

The complete source-to-model chain is pinned in reference/model-evidence/u64-bitor.txt. A fresh inspect-native run identifies this exact external as the extracted u64--u64 BitOr method, with result type Result Std.U64, and records its Rust source span and raw declaration hash. At that span the approved toolchain's u64 implementation returns self | rhs for every pair, with no guard or failure branch. At the pinned Aeneas revision, Std.U64 is a scalar containing exactly a 64-bit vector, and scalar ||| constructs the vector x.bv ||| y.bv; the pinned bit-vector lemma states that each result bit is the Boolean disjunction of the corresponding input bits. The binding defined here returns ok (x ||| y) unconditionally. Consequently, for arbitrary modeled 64-bit words x and y, it succeeds and returns exactly the same bounded 64-bit disjunction as the Rust method. No reachability restriction is used.

Requirement: assembly correspondence

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification significand digit

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: classification totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch abstract composition

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: dispatch component compliance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: exponent value agreement

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: integer correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: native correct or defer

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper accumulated value

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper record bounds

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: number helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser equal target rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser exact rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser invalid rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser nan acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser non nan results

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric acceptance

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser numeric sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected exponent

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser selected magnitude sign

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser signed zero

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: parser totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding determinism

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: rounding totality

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: slow accumulated rounding

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper infinity

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper nan

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Requirement: special helper rejection

Because this binding is extensionally the cited source operation on the full modeled source domain, it changes none of this goal's executions or observations.

Download Lean source · Download TeX source

Proof structure

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

Explore this dependency tree

Inspect related source (1)

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
Technical checking records
Local closure summary
{
  "node": "ModelU64BitOr",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "aa27d93d9dd1dc77af05a65148d6c7ce8ab9e4da238591fce32aa4ad12a3602f",
  "active_statement_hash": "0cde28c4996c4963db71929b506a0abe7e11bf7efc38503622ea0570903fad03",
  "kernel_axioms": [
    "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-1",
  "boundary_theorems": {},
  "strict_theorem_deps": {},
  "strict_definition_deps": {}
}
Prose assessment
{
  "label": "Recorded Sound: VerifierPass",
  "assessment_status": "VerifierPass",
  "fingerprint_relation": "matches current fingerprint",
  "assessment_fingerprint": "preservation-v1:8beb03aa43b31c21df196ed526c745e39bbeb96336f2e2bce78f283be4b69bb7",
  "current_fingerprint": "preservation-v1:8beb03aa43b31c21df196ed526c745e39bbeb96336f2e2bce78f283be4b69bb7",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Pass",
  "sound_status": "Pass",
  "substantiveness_status": "Pass"
}