12 KiB
Compression Mechanics Execution Plan
This plan defines the work needed to verify compression approaches through a rigorous chain:
- informational compression evidence
- thermodynamic lower bounds
- physically admissible substrate witnesses
- end-to-end bridge theorems
The plan is organized into phases, steps, and sub-steps with explicit completion metrics.
Phase 0: Scope Lock
Goal:
- freeze the theorem target so implementation work does not drift back into unsupported chemistry claims
Step 0.1: Lock the proof target
Sub-steps:
- State the target theorem family in one sentence.
- State what is explicitly out of scope.
- Bind the target to the Nature-family source pack in
NATURE_RIGOR_PREP.md.
Completion metrics:
- one canonical statement of the goal exists in repo docs
- one explicit out-of-scope list exists in repo docs
- every later theorem module can be mapped to one section of the source pack
Step 0.2: Lock the minimal variable set
Sub-steps:
- Define the minimal quantities that every later phase may use.
- Reject unsupported quantities from the proof core.
- Separate proof-layer quantities from approximation-layer quantities.
Completion metrics:
- proof core variables list is finite and documented
- no theorem in later phases depends on free-form strings or vague descriptors
- no step assumes atomic weight alone can determine structure or admissibility
Suggested proof-core variables:
- source trace
- model trace
- block cost
- accuracy witness
- erased-information witness
- nonequilibrium cost
- substrate witness
- admissibility predicate
Phase 1: Informational Core
Goal:
- prove that the compression side is mathematically well-defined before any physics is attached
Step 1.1: Define compression evidence semantics
Sub-steps:
- Create
Semantics.CompressionEvidence. - Define a finite alphabet type.
- Define block, trace, model state, and cost witness types.
- Define deterministic scoring semantics.
Completion metrics:
- Lean file exists under
0-Core-Formalism/lean/Semantics/Semantics/ - every new
defhas either an#evalwitness or theorem in the same file - no
Floatappears in the new core module - no open string matching appears in core decisions
Step 1.2: Define code-length / accuracy objects
Sub-steps:
- Define code-length witness in Q16.16-compatible form.
- Define accuracy witness for reconstruction or prediction quality.
- Define contextual and flat model interfaces.
Completion metrics:
- code-length object is typed and total
- accuracy witness is typed and total
- contextual and flat models can be compared on the same trace
Step 1.3: Prove first informational theorem
Sub-steps:
- Formalize deterministic conditional source case.
- Prove a matching contextual model is no worse than a flat model.
- Add one concrete
#evalexample demonstrating the bound.
Completion metrics:
- theorem compiles without
sorry - theorem statement is independent of any physics module
- at least one example trace evaluates to the expected inequality witness
Exit criteria for Phase 1:
Semantics.CompressionEvidencebuilds in isolation- one nontrivial compression theorem is proven
- the theorem uses only informational quantities
Phase 2: Thermodynamic Layer
Goal:
- connect irreversible information change to a rigorous physical lower bound
Step 2.1: Define thermodynamic primitives
Sub-steps:
- Create
Semantics.LandauerCompression. - Define erased-information witness.
- Define nonequilibrium cost object.
- Define lower-bound function for irreversible steps.
Completion metrics:
- Lean file exists and compiles in isolation
- every primitive has a documented physical meaning
- no theorem depends on unformalized external numerics
Step 2.2: Bind informational state change to thermodynamic cost
Sub-steps:
- Define irreversible update predicate.
- Define mapping from compression step to erased-information witness.
- Define lower-bound theorem target.
Completion metrics:
- there is a total function from compression step to thermodynamic witness
- irreversible and reversible cases are distinguished by a typed predicate
- at least one simple theorem covers the nonzero irreversible case
Step 2.3: Prove the first physics bridge theorem
Sub-steps:
- Prove positive erased-information witness implies nonzero lower bound.
- Add example witnesses for zero and nonzero cases.
- Document the theorem's exact scope and limitations.
Completion metrics:
- theorem compiles without
sorry - theorem is stated in terms of the defined typed quantities only
- example witnesses distinguish reversible from irreversible cases
Exit criteria for Phase 2:
Semantics.LandauerCompressionbuilds in isolation- one theorem links compression evidence to a thermodynamic lower bound
- the repo now has a truthful information -> physics bridge
Phase 3: Materials / Defect Witness Layer
Goal:
- define a physically meaningful substrate witness that can support or reject a proposed compression process
Step 3.1: Define local physical witness objects
Sub-steps:
- Create
Semantics.DefectMechanics. - Define a finite substrate or neighborhood type.
- Define local descriptors such as vacancy or charge witness.
- Define a transport / dissipation witness.
Completion metrics:
- Lean file exists and compiles in isolation
- descriptors are finite, typed, and enumerable where needed
- no descriptor is represented by an open-ended string in core logic
Step 3.2: Define admissibility predicates
Sub-steps:
- Define heat-dissipation admissibility.
- Define defect-energy admissibility.
- Define transport-regime admissibility.
Completion metrics:
- each predicate is total
- each predicate has one
#evalor theorem witness - predicates can be combined without ambiguity into a single admissibility view
Step 3.3: Prove the first substrate theorem
Sub-steps:
- Define a minimal substrate witness record.
- Prove that a substrate satisfying the threshold conditions is admissible.
- Add one positive and one negative example witness.
Completion metrics:
- theorem compiles without
sorry - positive witness evaluates to admissible
- negative witness evaluates to not admissible
Exit criteria for Phase 3:
Semantics.DefectMechanicsbuilds in isolation- one theorem certifies substrate admissibility
- local physical descriptors are separated from learned surrogate claims
Phase 4: Compression <-> Mechanics Bridge
Goal:
- prove that a compression step is physically admissible on a specified substrate witness
Step 4.1: Define bridge objects
Sub-steps:
- Create
Semantics.CompressionMechanicsBridge. - Import the informational, thermodynamic, and substrate layers.
- Define a bridge record carrying all required witnesses.
Completion metrics:
- bridge record contains no undocumented fields
- every bridge field comes from a previous phase
- no direct dependency on approximation-layer ML outputs exists in the theorem core
Step 4.2: Define admissible compression step
Sub-steps:
- Define the predicate that a compression step is physically admissible.
- Separate proof obligations for informational validity, lower-bound validity, and substrate validity.
- Add a helper theorem for assembling the three obligations.
Completion metrics:
- predicate is total
- obligations are decomposed into named lemmas
- at least one helper theorem reduces final theorem complexity
Step 4.3: Prove the bridge theorem
Sub-steps:
- Prove that a compression step with valid informational witness, valid thermodynamic lower bound, and admissible substrate is physically admissible.
- Add one end-to-end worked example.
- Document what this theorem does not prove.
Completion metrics:
- theorem compiles without
sorry - one complete end-to-end example evaluates successfully
- limitations are written explicitly in the module or companion doc
Exit criteria for Phase 4:
- repo contains one honest end-to-end compression-to-physics theorem
- theorem depends only on proven or explicitly witnessed inputs
- no unsupported chemistry claims remain in the proof path
Phase 5: Approximation / Surrogate Layer
Goal:
- allow ML or symbolic-regression accelerators to be used without confusing them with the proof layer
Step 5.1: Define approximation boundary
Sub-steps:
- Document that surrogates are extraction targets or numerical witnesses.
- Define accepted surrogate outputs as data artifacts, not axioms.
- Define a verification boundary for importing surrogate results.
Completion metrics:
- documentation explicitly separates proof from surrogate
- surrogate artifacts are never imported as trusted theorems
- each imported surrogate result must attach to a typed witness object
Step 5.2: Add one surrogate-backed witness path
Sub-steps:
- Choose one descriptor class such as vacancy witness.
- Define how an external predictor may populate it.
- Prove that the bridge theorem only uses the populated witness, not the model internals.
Completion metrics:
- surrogate-backed witness path exists without changing proof-layer theorems
- theorem statements remain independent of the surrogate architecture
- repo documentation states what is proved and what is estimated
Exit criteria for Phase 5:
- the project can use practical predictors without collapsing rigor
- proof-layer semantics remain stable if the surrogate changes
Phase 6: Integration and Validation
Goal:
- integrate the new modules into the repo and validate them against the repo's operating rules
Step 6.1: Local build validation
Sub-steps:
- Build each new module in isolation.
- Record any dependencies that prevent integration.
- Fix isolated issues before touching broader imports.
Completion metrics:
- each new module builds individually
- no new module contains
sorry - no new module introduces new dependencies
Step 6.2: Repo integration
Sub-steps:
- Add imports to the appropriate aggregate files only after isolated success.
- Re-run
lake build. - Separate pre-existing failures from new failures.
Completion metrics:
- import graph is minimal
- any build failures introduced by integration are attributable and fixed
- no unrelated files are changed during integration
Step 6.3: Documentation closure
Sub-steps:
- Update the rigor prep note with implemented modules.
- Add a short theorem inventory.
- Record any deferred work explicitly.
Completion metrics:
- theorem inventory exists in repo docs
- every implemented module has a corresponding documentation entry
- deferred items are listed as explicit future work, not hidden gaps
Exit criteria for Phase 6:
- new modules are integrated cleanly
- documentation and code agree
- completion can be reported against explicit metrics
Overall Completion Metrics
The program is complete when all of the following are true:
Semantics.CompressionEvidenceexists, builds, and contains at least one nontrivial informational theorem.Semantics.LandauerCompressionexists, builds, and contains at least one theorem linking erased-information witness to nonzero lower bound.Semantics.DefectMechanicsexists, builds, and contains at least one substrate admissibility theorem.Semantics.CompressionMechanicsBridgeexists, builds, and contains one end-to-end admissibility theorem.- Every new theorem is free of
sorry. - Every new
defhas an#evalor theorem witness. - No new core module uses
Float. - No new core decision procedure uses open string matching.
- No new dependencies are added.
- The final documentation states clearly what is proved, what is witnessed, and what is only approximated.
Reporting Template
Use this template at the end of each implementation checkpoint:
- Phase completed:
- Steps completed:
- Files added or changed:
- Theorems added:
#evalwitnesses added:- Isolated build status:
- Full
lake buildstatus: - Deferred items: