SpecialHelperInfinity

Open

Statement

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

Theorem · Special Helper Infinity

For every byte slice and either value of the separate sign argument, an unsigned infinity keyword returns Some infinity with that sign from parse_inf_nan.

Lean statement

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

import Tablet.Preamble
import Tablet.SpecialLiteral
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatU64
import Tablet.num_imp_dec2flt_parse_parse_inf_nan

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: SpecialHelperInfinity]
theorem SpecialHelperInfinity :
    ∀ (s : Slice Std.U8) (negative : Bool) (k : SpecialLiteral),
      k.bytes = s.val → k.sign = none → k.isNan = false →
      ∃ f : F64,
        num.imp.dec2flt.parse.parse_inf_nan
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative =
          .ok (some f) ∧
        f.val % 2 ^ 63 = 2047 * 2 ^ 52 ∧
        f.val / 2 ^ 63 = if negative then 1 else 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 proof: SKETCH. The explanatory prose is preserved as it stood when captured.

Proof

SKETCH: This is the principal theorem for supplied goal special_helper_infinity. Its Lean proof is intentionally left open during Modeling; argument development will establish it from the extracted source model and its component contracts.

Lean proof


  sorry

end dec2flt_model

Download Lean source · Download TeX source

Complete Lean module
import Tablet.Preamble
import Tablet.SpecialLiteral
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatU64
import Tablet.num_imp_dec2flt_parse_parse_inf_nan

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: SpecialHelperInfinity]
theorem SpecialHelperInfinity :
    ∀ (s : Slice Std.U8) (negative : Bool) (k : SpecialLiteral),
      k.bytes = s.val → k.sign = none → k.isNan = false →
      ∃ f : F64,
        num.imp.dec2flt.parse.parse_inf_nan
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative =
          .ok (some f) ∧
        f.val % 2 ^ 63 = 2047 * 2 ^ 52 ∧
        f.val / 2 ^ 63 = if negative then 1 else 0 := by
-- BODY
  sorry

end dec2flt_model

Proof structure

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

Used by

No incoming link is available in the captured dependency list.

Explore this dependency tree

Inspect related source (62)
More program dependencies (38)
Standard-library dependencies (21)

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.

Evidence gap: Incomplete inventory: open dependency: SpecialHelperInfinity

Helper theorems included
All 54 entries
Technical checking records
Local closure summary
{
  "node": "SpecialHelperInfinity",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "e5ccc22214fc9f06ea0e2e41d13427e836f739d66b1147100bb94197d00e678d",
  "active_statement_hash": "63bc1ee868063fdeed28594498e440ee3d2cfa86e3fb0f1d43b7555dac6843a5",
  "kernel_axioms": [
    "propext",
    "sorryAx"
  ],
  "toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
  "lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
  "checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
  "approved_axioms_hash": "b3d2e5a7a57ad9d2abdfb1c60bd76050a5cafa6a2be969c219d3ae71b2a8ade5",
  "axcheck_status": "Agreed",
  "accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-3",
  "boundary_theorems": {},
  "strict_theorem_deps": {},
  "strict_definition_deps": {
    "F64": "ec4e25fbaf4e11d4",
    "F64_Insts_Dec2flt_modelNumImpTraitsFloatU64": "81cd77dffa3d0e1e",
    "SpecialLiteral": "ed6e0685fc6c3e0d",
    "num_imp_dec2flt_parse_parse_inf_nan": "85655c19a8791b54"
  }
}
Prose assessment
{
  "label": "Prose review has no verdict in this snapshot",
  "assessment_status": null,
  "fingerprint_relation": "unknown",
  "assessment_fingerprint": null,
  "current_fingerprint": "sound-v2:184eb3f6ec51e0b8814451057c2f0065e1b6c7883fc241eabef47e76b920020e",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Fail",
  "substantiveness_status": "Pass"
}