Skip to content

fix: disambiguate duplicate Verso labels in Section 2.2 - #661

Open
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:verso-labels-section-2-2
Open

fix: disambiguate duplicate Verso labels in Section 2.2#661
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:verso-labels-section-2-2

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Nat.add_ge_add_right, Nat.add_ge_add_left, Nat.add_le_add_right and Nat.add_le_add_left all carry the same docstring, (d) (Addition preserves order), so the label appears four times. The Mathlib cross-reference in each already separates left from right, so folding the direction of the inequality into the parenthetical is enough to make all four distinct.

lake build Analysis.Section_2_2Build completed successfully (3265 jobs). Lines stay under 100 characters.

The four order-and-addition lemmas all carry the docstring
"(d) (Addition preserves order)", so Verso sees one label four times.
Fold the direction of the inequality into the parenthetical, which is
what distinguishes ge_add_right/ge_add_left from le_add_right/le_add_left
(the Mathlib cross-reference already distinguishes left from right).
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