Skip to content

fix(meta): ballot-problem-oq-03 mainTheorems line drift#21908

Merged
rjwalters merged 1 commit into
mainfrom
fix/mechanic-ballot-problem-oq-03-line-drift
Jun 1, 2026
Merged

fix(meta): ballot-problem-oq-03 mainTheorems line drift#21908
rjwalters merged 1 commit into
mainfrom
fix/mechanic-ballot-problem-oq-03-line-drift

Conversation

@rjwalters
Copy link
Copy Markdown
Owner

Fix

3 mainTheorems[].line entries in ballot-problem-oq-03/meta.json pointed at stale positions in Proofs/BallotProblemOQ03.lean. All drifted by exactly +44 (lines added in the file's terminal region without a metadata refresh).

Theorem Stale Actual
lgv_lemma_2x2 2834 2878
lindstrom_involution 2803 2847
lgvDet_nonneg 2872 2916

The other 7 entries (crossing_lemma, path_count_eq_choose, ballot_formula, catalan_formula, catalan_eq_ballot, vandermonde, choose_symm_via_paths) are correctly placed.

Evidence

$ grep -n "^theorem \(lgv_lemma_2x2\|lindstrom_involution\|lgvDet_nonneg\) " \
    proofs/Proofs/BallotProblemOQ03.lean
2847:theorem lindstrom_involution (m n₁ n₂ n₁' n₂' a₁ a₂ : ℕ)
2878:theorem lgv_lemma_2x2 (m a₁ b₁ a₂ b₂ : ℕ)
2916:theorem lgvDet_nonneg (m a₁ b₁ a₂ b₂ : ℕ)

Metadata-only — primary file unchanged.


Automated fix by lean-mechanic agent.

3 entries in `mainTheorems[].line` had drifted +44 lines in
`Proofs/BallotProblemOQ03.lean`.

| Theorem               | Stale | Actual |
|-----------------------|------:|-------:|
| lgv_lemma_2x2         |  2834 |   2878 |
| lindstrom_involution  |  2803 |   2847 |
| lgvDet_nonneg         |  2872 |   2916 |

The other 7 entries are correctly placed.

Verified via:
  grep -n "^theorem (lgv_lemma_2x2|lindstrom_involution|lgvDet_nonneg) " \
    proofs/Proofs/BallotProblemOQ03.lean

Metadata-only.
@rjwalters rjwalters merged commit f486a19 into main Jun 1, 2026
@rjwalters rjwalters deleted the fix/mechanic-ballot-problem-oq-03-line-drift 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