Repository navigation
check-one-div-per-subfile: allow a proof with its claim, a solution with its exercise - #1192
Merged
Merged
Conversation
… solution with its exercise Ezra, 2026-10-23, gha#1176. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V6MvQvUgPePB2ndiLAgpHs
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ed attribute values Review of gha#1192 found README, workflows table and the example stub still describing the old _sol rule. The selftest's expected-failure fixture used a solution as its second div, and the changelog fragment lacked a bullet. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V6MvQvUgPePB2ndiLAgpHs
Contributor
|
Claude finished review — View run Review of PR #1192 at
|
Contributor
Contributor
2026-10-23 10:14 UTC |
This was referenced Oct 23, 2026
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.
Ezra, 2026-10-23, in the Semantic macro enforcement thread: "one exception to the one-div-per-file rule: proofs can go in the same file as their claims, and solutions can go with their exercises." Tracked in gha#1176.
The check no longer counts a top-level div whose class is
proof,solorsolution, or whose id starts withprf-orsol-. Word-bounded, soproofreadingandsolid-astill count.Tests: the old exercise-plus-solution case now passes; seven spellings of an attached div pass; five look-alikes still count; a second claim after a proof still counts. The old fixtures that used a solution as the second div now use an example. 67 tests pass.
Docs updated in the script,
action.yml, the reference page and a changelog fragment. The old advice to put a solution in its own_solfile is removed.Generated by Claude Code