Skip to content

refactor(Gentzen): refactor file structures - #31

Merged
SnO2WMaN merged 5 commits into
mainfrom
gentzen-withcut-unify
Aug 18, 2026
Merged

refactor(Gentzen): refactor file structures#31
SnO2WMaN merged 5 commits into
mainfrom
gentzen-withcut-unify

Conversation

@SnO2WMaN

Copy link
Copy Markdown
Member

Summary

  • Delete WithCut.lean for GL/Grz/D; syntactic content (the GentzenWithCutProof inductive and its non-semantic lemmas) moves into Basic.lean, semantic content (cut-elimination and anything depending on it) moves into Kripke.lean.
  • Unify cut-elimination across GL/Grz/D/S/A: the theorem is now ProvableGentzen.of_with_cut in Kripke.lean, with alias GentzenWithCutProvable.cut_elimination := ProvableGentzen.of_with_cut.
  • Rename semantical_TFAE to sequent_TFAE in D/S (A already used sequent_TFAE).
  • Update Hilbert/GL/Basic.lean, Hilbert/Grz/Basic.lean, and Gentzen/A/{Basic,Kripke}.lean to import .Kripke instead of the now-deleted .WithCut.
  • Regenerate ProvabilityLogic.lean via just mk-all.

No tactic-level proof content was changed; this is purely a file-layout and naming refactor.

Test plan

  • lake build (full project) green, no new errors/warnings/sorries introduced
  • just mk-all produces no diff
  • grep confirms no leftover references to the deleted WithCut.lean files or to semantical_TFAE/GentzenWithCutProvable.cutElimination

🤖 Generated with Claude Code

SnO2WMaN and others added 3 commits August 18, 2026 18:16
Split GentzenWithCutProof/GentzenWithCutProvable's syntactic content
(inductive, notation, of_without_cut, constructor lemmas, cut, rec)
into Basic.lean, and the semantic cut_elimination (via Kripke
completeness/soundness) plus its dependents (mdp, ruleLoeb for GL;
modalGrz, mdp for Grz) into Kripke.lean, unifying the with-cut sequent
calculus placement across logics. WithCut.lean is removed; downstream
imports (Hilbert/GL/Grz Basic.lean, Gentzen/A/Basic.lean,
Gentzen/A/Kripke.lean) now point at Kripke.lean instead.

Co-Authored-By: Claude <noreply@anthropic.com>
…_TFAE to sequent_TFAE

Split GentzenWithCutProof/GentzenWithCutProvable's syntactic content
(inductive, notation, of_without_cut, constructor lemmas, cut, rec) into
D/Basic.lean, matching the GL/Grz layout. D/Kripke.lean's cut-elimination
theorem is renamed to ProvableGentzen.of_with_cut with a
GentzenWithCutProvable.cut_elimination alias, and semantical_TFAE is
renamed sequent_TFAE. D/WithCut.lean is removed; ProvabilityLogic.lean is
regenerated via `just mk-all`.

Co-Authored-By: Claude <noreply@anthropic.com>
…n.of_with_cut

Rename LogicS.semantical_TFAE to LogicS.sequent_TFAE, and move the
with-cut cut-elimination corollaries for S and A from
GentzenWithCutProvable.cutElimination into
(LogicX.)ProvableGentzen.of_with_cut, matching the naming/placement
already used for GL, Grz, and D, with a
GentzenWithCutProvable.cut_elimination alias kept for compatibility.

Co-Authored-By: Claude <noreply@anthropic.com>
@SnO2WMaN SnO2WMaN changed the title refactor(Gentzen): unify WithCut layout and cut-elimination naming across GL/Grz/D/S/A refactor(Gentzen): refactor file structures Aug 18, 2026
SnO2WMaN and others added 2 commits August 18, 2026 20:24
…oeb to ruleLöb

Rename Prop-level ProvableGentzen/GentzenWithCutProvable-bound variables
(previously π/π₁/π₂) to h/h₁/h₂ across GL, Grz, A, S, D, and GLPoint3
Basic.lean, keeping π reserved for raw ProofGentzen (bang-notation)
terms. Also rename the declaration ruleLoeb to ruleLöb for spelling
consistency with the existing Löb usage in this repository.

Co-Authored-By: Claude <noreply@anthropic.com>
Apply the same naming convention as ProvabilityLogic/Gentzen/*/Basic.lean:
π stays for raw ProofLabelledGentzen (`!`-suffixed) terms, while
Prop-level ProvableLabelledGentzen (Nonempty-wrapped, non-`!`) arguments
are named h/h₁/h₂. Where renaming created a name clash with an existing
h argument (wkRel/wkAnt/wkSuc), rename that argument to hR/hΓ/hΔ.

Search.lean is untouched: every π there already binds a raw
ProofLabelledGentzen term.

Co-Authored-By: Claude <noreply@anthropic.com>
@SnO2WMaN
SnO2WMaN enabled auto-merge August 18, 2026 11:44
@SnO2WMaN
SnO2WMaN added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit f6bd9d2 Aug 18, 2026
5 checks passed
@SnO2WMaN
SnO2WMaN deleted the gentzen-withcut-unify branch August 18, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant