Repository navigation
Reuse proved matrix entries in the Dirac Fierz proof - #1057
Conversation
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Low impact] No blocking issue was found in this proof refactor or import removal. SummaryThe PR replaces repeated operator unfolding with proved coordinate formulas in the Fierz proof.
No actionable issues were found. External upstream source and license claims were not independently verified. The reported build timing was not independently measured. Reviews (1) · Last reviewed commit: "Reuse proved matrix entries in the Dirac..." · Reviewed by Greptile |
Proof profile (new / modified Lean files)Statement changes✅ No statements changed — all 116 tracked declarations across 2 modified files kept their type; only proofs / definition bodies changed. Also: 13 declarations added, 0 removed. A reorganization moves declarations between files, which shows up here as an add in one file and a remove in another. ➕ Declarations added (13)
Statements are compared textually against the merge base (comments and whitespace ignored; Compile cost of modified files — base → headHeartbeats: 7,631,572 → 2,965,775 (-4,665,798, -61.1%). Commands: 129 → 142. Per-file wall sum: 520.5 s → 206.5 s (-60.3%). Wall clock is measured under parallel load and is noisy; heartbeats are deterministic and are the regression signal. Files: 2 compared — 1 cheaper, 0 costlier, 1 within noise (threshold: |Δ heartbeats| ≥ 1,000 and ≥ 1%). Both sides are elaborated against the merge-base build of the pool — sound when only proofs and definition bodies change; a file whose statements changed may fail there and is flagged ⚠. Heartbeats come from disjoint root command traces with
Advisory only — never blocks merge. Full log uploaded as the |
Vilin97
left a comment
There was a problem hiding this comment.
Approved at f3189443c6fb1aa28893a376d36d64f387a2d679.
- The private formulas are proved from the inherited gamma, axial and sigma operators. The Fierz proof reuses them across the same 256 entries, with the tensor count and normalizations preserved. The hosted profile reports 116 unchanged declaration types and a 62% heartbeat reduction in the Fierz module. Proof Profile
- The project entry points still export Fierz and moving spin. A caller importing only
V35MovingSpinInvariantfor Fierz should importV35BilinearCliffordClosureexplicitly. The module overview now explains the six independent tensor components and the factor of one half for the ordered sum.
🤖 LLM review — refactor (
|
| Aspect | Value |
|---|---|
| Scope | Fierz proof refactor and import cleanup |
| Introduces tech debt | 🛑 yes |
| Maintainability | ✅ improved |
| Brittleness | 🛑 more_brittle |
| Risk | ✅ low |
The entry lemmas make the proof easier to debug, and the exported tactic needs to work after import before this merges.
Findings (1)
- api-regression —
LeanPool/LatticeDiracDerivation/V35BilinearCliffordClosure.lean:181
The exportedv35FierzFinishtactic now expands to private names such asgamma_lower_entry. I compiled the same one-entry caller in a separate importing module against both revisions. It succeeds on the base and fails on the PR head with unknown-constant errors. Keep the case solver local and define the exported tactic afterv35_fierz_completeness, using that public theorem to close entry goals.
Tokens: 2,865,864 in / 16,017 out · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $11.7037 (Standard API equivalent; uncached input) (long-context rate)
Automated review against .github/REFACTOR_REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
request_changes is an ask, not a close: of the reviewer's past request_changes verdicts, 39% were merged after a human looked. Read the findings before acting on the verdict.
Changes
This is an AI-assisted follow-up to the three findings in the refactor review of #1055.
Verification
lake build LeanPool.LatticeDiracDerivation.Importspassed. The refactored Fierz module built in 25 seconds on the local machine.propext,Classical.choice, andQuot.sound.git diff --checkpassed.