Skip to content

Centralize two privately duplicated lemmas - #2528

Merged
PerAlexandersson merged 2 commits into
mainfrom
cleanup/dedup-private-copies
Nov 11, 2026
Merged

PerAlexandersson merged 2 commits into
mainfrom
cleanup/dedup-private-copies

Conversation

@PerAlexandersson

Copy link
Copy Markdown
Owner

Repo cleanup: scripts/golf/dupbody.py reports one identical declaration pair library-wide, plus one ℂ/ℝ pair with identical proofs.

  • listAlternates_of_listInterlaces_cons: one public copy in Basic/RootLists.lean (next to ListInterlaces/ListAlternates) replaces the private copies in PolynomialValueEulerNumerator/Interlacing.lean and Interlacing/QuadraticRemainderCriterion.lean.
  • iteratedPDerivAt_mul_of_pderiv_zero: one public lemma for any commutative semiring in LiebSokalOperator.lean replaces the private ℂ copy (BorceaBranden/FiniteOrderWeylPreserver.lean) and ℝ copy (FiniteFreeAdditive/Stability.lean).

Net −19 lines. Local checks: focused builds of the four consumers, runLinter on the two modules gaining the lemmas.

🤖 Generated with Claude Code

PerAlexandersson and others added 2 commits November 11, 2026 06:11
listAlternates_of_listInterlaces_cons had identical private copies in
PolynomialValueEulerNumerator/Interlacing and Interlacing/QuadraticRemainderCriterion; it now lives
once, public, in Basic/RootLists next to the definitions.  iteratedPDerivAt_mul_of_pderiv_zero
had private copies for ℂ and ℝ; it now lives once, for any commutative semiring, next to
iteratedPDerivAt in LiebSokalOperator.  Found by scripts/golf/dupbody.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerAlexandersson
PerAlexandersson merged commit de59924 into main Nov 11, 2026
5 checks passed
@PerAlexandersson
PerAlexandersson deleted the cleanup/dedup-private-copies branch November 11, 2026 07: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