Skip to content

About

Open, independently re-checkable IEEE 754 bit-exact verification substrate in Lean 4. Mathlib-free, solver-free re-verification.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

etc-fp-bitexact

etc-fp-bitexact is an open, independently re-checkable, bit-exact IEEE 754 verification component developed by Evolving Technologies Corporation, designed to integrate with the ETC Verify™ framework. ETC Verify is a trademark of Evolving Technologies Corporation (USPTO Serial No. 99842416, application pending).

It models IEEE 754 floating-point formats over fixed-width bitvectors, builds compatibility statements over a small vocabulary, discharges them with a SAT-backed decision procedure, and emits LRAT certificates that any party can re-check without re-running a solver. The machinery is exercised here on synthetic fixtures (invented vendor operations, toy formats, format-intrinsic witnesses), and it formalizes no real interface.

This component is open machinery that integrates with the framework. It is not itself the mark.

Status

Active development. This is foundational substrate work: generic bit-exact machinery exercised on synthetic demonstration scenarios. See CHANGELOG.md for current state.

What it is

A Mathlib-free Lean substrate for bit-exact interface-compatibility checking, built from:

  • IEEE 754 format modeling over BitVec (binary16 bit-fields: sign, exponent, mantissa).
  • A compatibility-statement vocabulary (mock interface-control data, a freedom axis captured as a free Boolean, domain predicates).
  • A discharge-or-witness mechanism, where every obligation either proves agreement or yields a concrete counterexample input.
  • Certificate emission with a solver-free re-check protocol (cached LRAT, re-checked by a verified checker).
  • A report shell that presents each scenario as labelled sections.

The substrate ships synthetic demonstration scenarios over these pieces: two-vendor agreement (compatible, divergent, silence, and a domain-restricted remediation), version backward-compatibility (compatible and incompatible), and an arithmetic SAT-stress case (multiplier equivalence, with a solver-discovered counterexample for a defective multiplier). A feasibility canary exercises both the live decision-procedure path and the cached-certificate re-check path.

What it is not

It is not a theorem prover, a model checker, or a verification product for any particular industry. It formalizes no real interface-control document, no vendor specification, and no customer numeric domain. The shipped fixtures are invented. Calibration to a specific engineering interface (an aerospace ICD, an automotive interface spec) is layered on top, in separate work, outside this open substrate.

Getting started

The substrate is Mathlib-free: Lean core plus the bundled Std only, with an empty dependency manifest. The Lean toolchain is pinned in lean-toolchain.

Clone and build:

git clone https://github.com/evolvingtech/etc-fp-bitexact.git
cd etc-fp-bitexact
lake build

A clean lake build type-checks the whole package and re-checks the cached certificates with no SAT solver invoked. To view the rendered demonstration reports, open ETCFPBitexact/Report/Driver.lean and evaluate run or runAll (the commented #eval lines render each scenario inline in the editor InfoView).

Trust boundary

The bit-exact discharges run through a SAT-backed decision procedure that bit-blasts the goal to CNF, calls an external solver, and re-checks the resulting LRAT proof. The trusted base is the Lean kernel, the compiler (compiled reflection runs the verified checker), and the soundness of the verified bitblaster and LRAT checker. The external SAT solver is outside the trusted base, because its output is an LRAT proof re-checked by the verified checker. Re-checking therefore needs only the cached certificate, not the solver, and the shipped certificates under certs/ re-check solver-free on a clean build. This trusted base is heavier than a pure-classical proof, by design (it adds a compiler-trust axiom). For the measured axiom footprint and the full re-verification protocol, see TRUST.md.

License

Copyright (c) 2026 Evolving Technologies Corporation. Licensed under the Apache License, Version 2.0. See LICENSE for the full text and NOTICE for attribution requirements.

ETC Verify is a trademark of Evolving Technologies Corporation (USPTO Serial No. 99842416, application pending).

Contributing

To be written.

About

Open, independently re-checkable IEEE 754 bit-exact verification substrate in Lean 4. Mathlib-free, solver-free re-verification.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages