Skip to content

fix: disambiguate duplicate Verso labels in MeasureTheory Section 1.1.3 - #659

Open
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/measuretheory-1-1-3-verso-labels
Open

fix: disambiguate duplicate Verso labels in MeasureTheory Section 1.1.3#659
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/measuretheory-1-1-3-verso-labels

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Seven groups of sibling declarations in MeasureTheory/Section_1_1_3.lean share a docstring:

Label Count
Definition 1.1.6 (Darboux integral) 5
Exercise 1.1.21 (a) (Linearity of the piecewise constant integral) 4
Exercise 1.1.25 (Area interpretation of Riemann integral) 4
Definition 1.1.15 (Riemann integrability) 2
Exercise 1.1.20 (Piecewise constant functions) 2
Exercise 1.1.21 (c) (Piecewise constant integral of indicator functions) 2
Exercise 1.1.22 2

Same convention as #624: keep the statement number, name the case in the parenthetical. The case names are not invented — each is taken from the -- comment already sitting between the docstring and the declaration (e.g. "The lower Darboux integral: …" → (Darboux integral, lower)).

The two long labels were shortened to (Linearity, …) and (Area interpretation, …) so the lines stay inside the 100-character limit; the exercise number still identifies the statement.

Checked: no duplicate one-line docstrings remain in the file, all edited lines within 100 characters.

lake build Analysis.MeasureTheory.Section_1_1_3 succeeds locally — ✔ [3281/3281] Built (19s), Build completed successfully.

Chosen to avoid the files our other open PRs touch (#647 Section_1_3_2, #648 Section_1_1_2, #649/#650 Section_1_2_0, #646 Section_1_4_2), so this does not collide with any of them.

Twenty-one docstrings across seven groups shared a label: Definition 1.1.15,
Exercise 1.1.20, Exercise 1.1.21 (a) and (c), Definition 1.1.6, Exercise 1.1.22
and Exercise 1.1.25.

Each label now names the case it covers, taken from the `--` comment already
sitting on the declaration underneath it.
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