Skip to content

refactor(Logic): Consistent provability_TFAE clause order across LogicA/LogicD/LogicS - #33

Merged
SnO2WMaN merged 5 commits into
mainfrom
unify-tfae-order
Aug 18, 2026
Merged

refactor(Logic): Consistent provability_TFAE clause order across LogicA/LogicD/LogicS#33
SnO2WMaN merged 5 commits into
mainfrom
unify-tfae-order

Conversation

@SnO2WMaN

Copy link
Copy Markdown
Member

Summary

  • Reorder each of LogicA.provability_TFAE, LogicD.provability_TFAE, LogicS.provability_TFAE consistently as: membership in the logic → sequent calculus → semantics → relation to other logics.
  • Renumber the corresponding tfae_have steps and downstream .out references (within these files and in NotCIP.lean/D_S.lean) to match the new clause order.

Test plan

  • lake build succeeds for the whole project, no new errors/warnings/sorries
  • just mk-all reports no update necessary

🤖 Generated with Claude Code

SnO2WMaN and others added 5 commits August 18, 2026 23:13
Reorder each of LogicA/LogicD/LogicS.provability_TFAE consistently as
membership → sequent calculus → semantics → relation to other logics,
and renumber the corresponding tfae_have steps and downstream `.out`
references (within these files and in NotCIP.lean/D_S.lean) to match.

Co-Authored-By: Claude <noreply@anthropic.com>
Introduce iff_forces_pseudoTail_root as the general-κ analogue of
iff_forces_pseudoTail_root_concrete, and use it in place of the raw
provability_TFAE.out 0 2 / out 2 0 index lookups in Basic.lean and
NotCIP.lean, per the style guide's ban on referring to TFAE clauses
by index outside the defining proof.

Co-Authored-By: Claude <noreply@anthropic.com>
Replace raw provability_TFAE.out i j index access with named theorems
iff_eventually_forces_tail_nat and iff_forces_root_subfmlsS_imp, mirroring
the existing LogicS wrapper style, and update the two external call sites
in D/NotCIP.lean and Classification/D_S.lean accordingly.

Co-Authored-By: Claude <noreply@anthropic.com>
LogicGL.provableHilbert_of_provableGentzen composed the raw clause
indices provability_TFAE.out 2 1 instead of the named corollaries
iff_provableGentzen/iff_provableHilbert, and
LogicGrz.provable_boxdot_GL_of_provable_Grz in Boxdot.lean referenced
LogicGrz.provability_TFAE.out 0 1 directly instead of
LogicGrz.iff_provableHilbert. Per the style guide's ban on indexing
TFAE clauses outside the defining proof, rewrite both in terms of the
named wrapper lemmas.

Co-Authored-By: Claude <noreply@anthropic.com>
Several lemmas in A/Basic.lean, D/Basic.lean, S/Basic.lean, and
Boxdot.lean carried docstrings that added nothing beyond a prose
paraphrase of their own type, including two in S/Basic.lean labelled
by the pre-reorder `provability_TFAE` clause numbers ("Direction `6 ->
2`", "Direction `2 -> 3`") that the clause reordering left stale.
Delete these; keep docstrings that add information not visible from
the statement (citations, provenance notes, witness identification,
cross-references to a related lemma). Also replace one remaining
"item 4 of `provability_TFAE`" comment in NotCIP.lean with a direct
reference to the named lemma it actually uses.

Co-Authored-By: Claude <noreply@anthropic.com>
@SnO2WMaN
SnO2WMaN enabled auto-merge August 18, 2026 21:03
@SnO2WMaN
SnO2WMaN added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 2c82edb Aug 18, 2026
5 checks passed
@SnO2WMaN
SnO2WMaN deleted the unify-tfae-order branch August 18, 2026 21:17
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