Skip to content

docs(formal): remove the duplicated Set Printing Width comment (9 modules) - #205

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/coq-comment-dedup
Jul 28, 2026
Merged

docs(formal): remove the duplicated Set Printing Width comment (9 modules)#205
hyperpolymath merged 1 commit into
mainfrom
fix/coq-comment-dedup

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

docs(formal): remove the duplicated Set Printing Width comment (9 modules)

#202 landed the same three-line explanatory comment twice in every module —
once above Set Printing Width 400. where it belongs, and once orphaned
immediately below it. My fault: I ran the insertion, then deleted only the
Set Printing Width 400. line to A/B-test whether the ~78-column wrap was
actually hiding any axiom from the guard, then re-ran the insertion. The sed
that undid the test matched only the directive, not its comment, so the second
pass stacked a fresh copy on top of the leftover.

Comment-only; no directive, no proof and no guard changes. formal/Justfile
is untouched.

To be accurate about scope, since the obvious worry is that a text edit near
the imports clipped something: it did not. Import ListNotations. and every
Require Import are intact in all nine modules — verified before and after.
(A different cleanup attempt of mine did briefly eat that import by skipping
a fixed three lines past the marker, which in Planner.v overran the comment.
That version was reset and never committed; it is mentioned only so the next
person knows the offset-based approach is the wrong tool here. This commit
removes the second matched block specifically, keyed on occurrence count.)

Verified: real coqc 8.20.1 -> check-assumptions exits 0, 9/9 OK; stub coqc
-> exit 127, so the gate from #202 still fails when it should; Normalizer.out
still prints at 157 columns, so the wrap fix is unaffected; reuse lint
compliant.

…ules)

#202 landed the same three-line explanatory comment twice in every module —
once above `Set Printing Width 400.` where it belongs, and once orphaned
immediately below it. My fault: I ran the insertion, then deleted only the
`Set Printing Width 400.` line to A/B-test whether the ~78-column wrap was
actually hiding any axiom from the guard, then re-ran the insertion. The sed
that undid the test matched only the directive, not its comment, so the second
pass stacked a fresh copy on top of the leftover.

Comment-only; no directive, no proof and no guard changes. `formal/Justfile`
is untouched.

To be accurate about scope, since the obvious worry is that a text edit near
the imports clipped something: it did not. `Import ListNotations.` and every
`Require Import` are intact in all nine modules — verified before and after.
(A *different* cleanup attempt of mine did briefly eat that import by skipping
a fixed three lines past the marker, which in `Planner.v` overran the comment.
That version was reset and never committed; it is mentioned only so the next
person knows the offset-based approach is the wrong tool here. This commit
removes the second matched block specifically, keyed on occurrence count.)

Verified: real coqc 8.20.1 -> `check-assumptions` exits 0, 9/9 OK; stub coqc
-> exit 127, so the gate from #202 still fails when it should; `Normalizer.out`
still prints at 157 columns, so the wrap fix is unaffected; `reuse lint`
compliant.
@gitar-bot

gitar-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

Note

Automatic reviews are paused because your trial's included automatic processing has been used for this period. Upgrade now, or comment "Gitar review" to run a review anytime.
Learn more

Code Review ✅ Approved

Removes duplicated three-line explanatory comments below Set Printing Width directives across nine formal modules. No issues found.

Auto-approved and auto-merge armed: No blocking issues found.
Please see Auto-approve Docs for details on setting custom approval criteria. — merges when pipeline and required approvals pass.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@gitar-bot

gitar-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ Gitar auto-approved this PR but could not enable auto-merge: auto-merge is disabled for this repository — enable "Allow auto-merge" in the repository settings.

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitar has auto-approved this PR and enabled auto-merge (configure)

@gitar-bot gitar-bot Bot added the gitar-approved Added by Gitar label Jul 28, 2026
@hyperpolymath
hyperpolymath marked this pull request as ready for review July 28, 2026 18:34
@hyperpolymath
hyperpolymath merged commit 27dfa66 into main Jul 28, 2026
43 checks passed
@hyperpolymath
hyperpolymath deleted the fix/coq-comment-dedup branch July 28, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitar-approved Added by Gitar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant