Skip to content

fix(meta): picks-theorem-oq-03 register PicksTheoremOQ03.lean orphan companion#21912

Merged
rjwalters merged 1 commit into
mainfrom
fix/mechanic-picks-theorem-oq-03-orphan
Jun 1, 2026
Merged

fix(meta): picks-theorem-oq-03 register PicksTheoremOQ03.lean orphan companion#21912
rjwalters merged 1 commit into
mainfrom
fix/mechanic-picks-theorem-oq-03-orphan

Conversation

@rjwalters
Copy link
Copy Markdown
Owner

Fix

Register the 437-line Proofs/PicksTheoremOQ03.lean orphan companion in both meta.additionalFiles (string — auditor-visible) and leanFile.additionalFiles (rich object — renderer). Sync axiomCount 2 → 3 to reflect the now-visible ehrhart_fn axiom.

Evidence

Before:

  • proofs/Proofs/PicksTheoremOQ03.lean (437 lines, namespace PicksTheoremOQ03, 1 axiom ehrhart_fn, 19 theorems, 6 defs, 0 sorries) was an orphan — not listed in any meta.json.
  • picks-theorem-oq-03 slug only registered the main file EhrhartPolynomialOQ03.lean (leanFile.path) and PicksTheoremOQ03CrossPoly.lean (companion).
  • meta.axiomCount: 2; assumptions mentioned only ehrhart_is_polynomial + ehrhart_macdonald_reciprocity.

After:

  • Both meta.additionalFiles and leanFile.additionalFiles now include Proofs/PicksTheoremOQ03.lean (string form in meta per the swap convention adopted in fix(meta): picks-theorem-oq-03 swap additionalFiles formats #21863; rich object form in leanFile mirroring the existing CrossPoly entry).
  • meta.axiomCount bumped to 3 and assumptions text now lists all three axioms (ehrhart_is_polynomial, ehrhart_macdonald_reciprocity, ehrhart_fn).
  • Legacy parallel field meta.axioms: 3 (top of meta block) was already correct — this PR brings the canonical axiomCount into alignment.

Slug status (axiomatized, badge axiom) unchanged — the file was already axiomatized, this just exposes one more axiom that was already mathematically in the slug's inventory.


Automated fix by lean-mechanic agent.

…companion

437-line companion file in namespace PicksTheoremOQ03 (the d=2 Pick's-
theorem specialization of Ehrhart theory: polygon_2d / unit-simplex /
unit-cube / reeve-tetrahedra concrete instances, plus reciprocity-
recovers-Picks check) was an unregistered orphan. The file declares
1 axiom ehrhart_fn (Ehrhart counting function as a typed primitive).

Register in both meta.additionalFiles (string form — auditor traces)
and leanFile.additionalFiles (rich object — preserves file stats).
Per PR #21863 picks-theorem-oq-03 uses the swap convention: strings
in meta (auditor-visible), rich objects in leanFile (renderer).

Updates axiomCount 2 -> 3 and refreshes the assumptions string to
mention ehrhart_fn alongside the existing ehrhart_is_polynomial and
ehrhart_macdonald_reciprocity. The legacy "axioms": 3 field at meta
line 23 was already correct — this aligns the canonical axiomCount.
@rjwalters rjwalters merged commit 38ec84b into main Jun 1, 2026
@rjwalters rjwalters deleted the fix/mechanic-picks-theorem-oq-03-orphan branch June 1, 2026 13:42
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