lean-cbcl review cleanup: simp hygiene, heartbeat scoping, total recursion, proof refactor #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/8/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Address all 8 actionable findings from a recent
lean-cbcl/review pass onmain(no sorries / axiom regressions found — every finding was quality / style).Plan:
lean-cbcl/review-fixes.spl— hence SPL with 11 dependency-aware tasks (10 fix tasks + 1 final-audit task). All 11 completed.Changes
DetParser: 16 trivial@[simp]literal lemmas (one_lt_200..ninetyNine_ne_zero) polluting global simp setlangDetParser_step_state_lt/_ne_zeroproofs use<;> omegaDetParser: bump/reset pairset_option maxHeartbeats 800000/200000set_option maxHeartbeats 400000 inon the two theorems that need itSerializer: file-levelset_option maxHeartbeats 3200000(32×)DeterministicUnion: file-levelset_option maxHeartbeats 1600000(16×)DialectParser:partial def parseDialectClausestermination_by clauses.length(nodecreasing_byneeded)Pipeline: 70-line repetitivepipeline_success_implies_validprivatehelperpipeline_success_eq_msg; 54% LOC reduction on the proof bodyR5: quadratic DFS fuel|names|² + 1|names| + 1for bothcheckAcyclicityandcheckReachability;h_fuelproofs simplifiedAxiomAudit:ContentHash.instNonemptylisted in allowlist but not exercisedLattice/Store.lean), removed fromAxiomAudit.leanallowlist +scripts/check-axioms.shlean-cbcl/proof-gaps.spl(all tasks marked completed).DS_Storeartefacts repeatedly appearing ingit status**/.DS_Storeto.gitignoreVerification
cd lean-cbcl && lake build— clean (40/40 jobs) onleanprover/lean4:v4.27.0bash scripts/check-axioms.sh—OK: 16 theorem(s) audited; all axioms allowlistedpropext,Classical.choice,Quot.sound) + 4 custom (ContentHash,contentHash,contentHash_injective,Message.causedBy) — net one fewer custom axiom than before (instNonemptywas unused)Test plan
lake buildis green on a fresh clonescripts/check-axioms.shexits 0pipeline_success_eq_msghelper proofR5.leanlinear-fuel change preserves runtime intent (checkAcyclicity_base/checkReachability_basenative_decidebaselines still fast)🤖 Generated with Claude Code
Pull request closed