refactor: drop unused triple_ratio_bundle variants in FreeEnergyRatios - #4672
Merged
Conversation
7 tasks
…s (WIP scaffold) This is a placeholder commit for PR #4672 scaffold. Implementation and full verification will follow in subsequent commits on this branch.
phasetr
force-pushed
the
refactor/drop-freeenergyratios-triple-bundles
branch
from
July 23, 2026 02:04
207573f to
1fbd02e
Compare
…n FreeEnergyRatios Remove seven zero-consumer, reference-0 wrapper theorems from `IsingModel/Conditioning/HighTempClosed/FreeEnergyRatios.lean`: - `freeEnergy_high_temp_h_zero_ratio_sandwich_bundle_ferromagnetic` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_beta_zero` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_ferromagnetic` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_beta_zero_ferromagnetic` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_beta_zero` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_ferromagnetic` - `partitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_beta_zero_ferromagnetic` These are pure `_beta_zero` / `_ferromagnetic` re-bundlings of the four published base bundles, with no consumer anywhere in the library, docs, or tex. The four base bundles (`_triple_ratio_sandwich_bundle`, `_triple_ratio_bound_bundle`, `_strict_deviation_bundle`, `freeEnergy_..._ratio_sandwich_bundle`) and every sibling layer (Lambda / AlongExhaustion / latticeGraph) are untouched; proof power is unchanged. Same-commit bookkeeping: - reconcile the docs/index.md §18.3 abstract-layer prose that enumerated the now-deleted `_beta_zero` / `_ferromagnetic` variants (5-layer -> 4-layer count for the beta=0 triple sandwich bundle); - recalibrate the `_ferromagnetic` family fixtures in `scripts/test_dead_candidate_scan.py` (241 -> 236, safe 110 -> 105, zero-consumer 128 -> 123; uncertain / load-bearing / published invariant). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The §18.3 note claimed the β=0 ferromagnetic triple_ratio_sandwich_bundle exists 'at all 4 layers'. Grep of the current tree shows only 3 layer variants survive: along-ex (`partitionFunctionAlongExhaustion_h_zero_..._beta_zero_ferromagnetic`), ℤ^d Λ (`partitionFunctionΛ_latticeGraph_h_zero_..._beta_zero_ferromagnetic`), and ℤ^d along-ex (`partitionFunctionAlongExhaustion_latticeGraph_h_zero_..._beta_zero_ferro`). No Λ-layer ferromagnetic β=0 variant exists. Docs-only; no logic change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per the #4639 adoption rule.
Summary
Delete seven zero-consumer, reference-0 wrapper theorems from
IsingModel/Conditioning/HighTempClosed/FreeEnergyRatios.lean— pure_beta_zero/_ferromagneticre-bundlings of the four published base bundles,with no consumer anywhere in the library, docs, or tex:
freeEnergy_high_temp_h_zero_ratio_sandwich_bundle_ferromagneticpartitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_beta_zeropartitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_ferromagneticpartitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle_beta_zero_ferromagneticpartitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_beta_zeropartitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_ferromagneticpartitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle_beta_zero_ferromagneticProtected base bundles (untouched, docs:2127 verbatim citations):
freeEnergy_high_temp_h_zero_ratio_sandwich_bundle,partitionFunction_high_temp_expansion_h_zero_triple_ratio_sandwich_bundle,partitionFunction_high_temp_expansion_h_zero_triple_ratio_bound_bundle,partitionFunction_high_temp_expansion_h_zero_strict_deviation_bundle.Every sibling layer (Lambda / AlongExhaustion / latticeGraph) is untouched;
proof power is unchanged.
Same-commit bookkeeping (permanent fix for stale-reference recurrence)
now-deleted
_beta_zero/_ferromagneticvariants (the beta=0 triple sandwichbundle went from "at abstract / Lambda / along-ex / Z^d Lambda / Z^d along-ex
layers, ferromagnetic at all 5 layers" to 4 layers). Other-layer aggregates
(PR Split AmbientLattice/SpecialCases/HighTemperatureBoundsRatioBounds triple_ratio wrappers #1994/Split Concrete/LatticeGraphCorrelation/HighTemperatureBoundsAlongExhaustionRatioBounds triple_ratio wrappers #1996/Split Concrete/LatticeGraphCorrelation/HighTemperatureBoundsRatioBounds Λ-direct triple_ratio wrappers #1998) left untouched.
_ferromagneticfamily fixtures.
Verification
lake build(FreeEnergyRatios + HighTempClosed importer): PASS, zero warnings.audit_gate.py --full: V1-V4 PASS.--self-test: 166 OK.dead_candidate_scan.py --self-test: 79 OK (after fixture recalibration).lake exe GKSTest: PASS.git grep: the 7 deleted names are absent fromIsingModel/,docs/,tex/;the 4 base bundles remain intact.
Fixture recalibration (breakdown invariant, only SAFE+total+zero-consumer drop by 5)
The 5 deleted decls ending in
_ferromagnetic(#1,#3,#4,#6,#7) are the only onesin the
_ferromagneticcalibration family; #2 and #5 (plain_beta_zero) areoutside it.
Healthy signature: only SAFE + total + zero-consumer drop by exactly 5; the other
three classes are invariant, so no live lemma was reclassified (#4655).
Post-deletion cascade check (base 4, textual)
Post-deletion cascade check (base 4, --lean build-backed)
Cascade is zero: no base decl became reference-0.
LIMITS banner (scanner)
🤖 Generated with Claude Code