Skip to content

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

Merged
teorth merged 1 commit into
teorth:mainfrom
Chessing234:fix/measuretheory-1-1-3-verso-labels
Aug 23, 2026
Merged

fix: disambiguate duplicate Verso labels in MeasureTheory Section 1.1.3#659
teorth merged 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:

LabelCount
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.222

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.
@teorth
teorth merged commit 1f9990f into teorth:mainAug 23, 2026
2 checks passed
Sign up for freeto 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.

2 participants

@Chessing234@teorth