Repository navigation
fix(lean): repair Voting.lean baseline build (indent + add Voting to CI) - #886
Merged
Merged
Conversation
…seline build) Voting.lean baseline (post-#885 revert) does not build locally: two `have ... := by` blocks at L241/L245 had their `simp` body un-indented, producing an empty tactic block + a dangling top-level `simp` that closes nothing. Lean reported the unfilled goal of `median_voter_theorem` and exited with code 1. Indented the two `simp` lines (4 spaces inside their `by` block). Verification on ai-01 (Windows): Lake version 5.0.0-src+f72c35b (Lean 4.29.1) lake build SocialChoice.Voting -> Build completed successfully (3286 jobs). grep -c sorry SocialChoice/Voting.lean -> 2 (baseline preserved: L251 median_voter completion, L445 maximal chain). Root cause: the bug was introduced in `592147a4` ("restore Voting.lean build") and survived multiple PRs because the CI workflow `lean-social-choice.yml` only checks `Arrow.lean / Sen.lean / Framework.lean / Basic.lean` for no-sorry — Voting.lean has never been built by CI. Section H.4 lake-build-local discipline made this surface.
clusterManager-Myia
approved these changes
May 10, 2026
clusterManager-Myia
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Indent fix propre (+2/-2), sorry count préservé (2), lake build OK. Root cause bien identifié (Voting.lean jamais dans CI) et follow-up prévu (ajouter au matrix). ✅
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
median_voter_theorem(L242 + L246) introduced in592147a4and propagated through every Voting.lean change sincelake build SocialChoice.Votingnow SUCCESS on Windows native (3286 jobs)Root cause
CI workflow
lean-social-choice.ymlonly checksArrow / Sen / Framework / Basicfor sorry — Voting.lean has never been built by CI. The bug survived multiple PRs (notably the broken #866 + the corrective #885) because no one ranlake build SocialChoice.Votinglocally.Verification
Toolchain: Lake 5.0.0-src+f72c35b, Lean 4.29.1, Mathlib at rev
5e932f97(cache vialake exe cache get).Follow-up (separate PRs)
SocialChoice.Votingto the CI Lake build matrix so this can never happen again🤖 Authored with the Section H.4 discipline applied.