Skip to content

[Merged by Bors] - doc(Order/ConditionallyCompleteLattice/Defs): Lean3 structure notation - #36671

Closed
Komyyy wants to merge 4 commits into
leanprover-community:masterfrom
Komyyy:coditionally-complete-lattice-defs-doc
Closed

Komyyy wants to merge 4 commits into
leanprover-community:masterfrom
Komyyy:coditionally-complete-lattice-defs-doc

Conversation

@Komyyy

@Komyyy Komyyy commented Mar 15, 2026

Copy link
Copy Markdown
Contributor
  • Some docstrings still use Lean3 structure notation.
  • Some mistakenly use (sup|inf) instead of s(Sup|Inf)
  • conditionallyCompleteLatticeOfs(Sup|Inf) provides both sup & inf

These were found while reviewing #35774.


Open in Gitpod

* Some docstrings still use Lean3 structure notation.
* Some mistakenly use `(sup|inf)` instead of `s(Sup|Inf)`
* `conditionallyCompleteLatticeOfs(Sup|Inf)` provides both `sup` & `inf`

These were found while reviewing leanprover-community#35774.
@Komyyy Komyyy added documentation Improvements or additions to documentation t-order Order theory labels Mar 15, 2026
@github-actions

github-actions Bot commented Mar 15, 2026 •

Copy link
Copy Markdown

PR summary de4f458186

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@Vierkantor Vierkantor self-assigned this Mar 16, 2026

@Vierkantor Vierkantor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

bors d+

Comment on lines +236 to +237
This should only be used when it is both hard and unnecessary to provide `sup` & `inf`
explicitly. -/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the original docstring meant sInf here. Adding sup and inf is okay here too. (Also a minor style point: we prefer to expand abbreviations.)

Suggested change
This should only be used when it is both hard and unnecessary to provide `sup` & `inf`
explicitly. -/
This should only be used when it is both hard and unnecessary to provide `sInf`, `sup` and `inf`
explicitly. -/

@Komyyy Komyyy Mar 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment.

Your comment made me realize that I had misunderstood: This refers to conditionallyCompleteLatticeOfsSup, not conditionallyCompleteLatticeOfLatticeOfsSup.

If This refers to conditionallyCompleteLatticeOfLatticeOfsSup, then `sup` and `inf` are unnecessary since it is given by [H1 : Lattice α], so the correct docstrings would be:

Suggested change
This should only be used when it is both hard and unnecessary to provide `sup` & `inf`
explicitly. -/
This should only be used when it is both hard and unnecessary to provide `sInf` explicitly. -/

@Vierkantor Would you mind confirming this before I merge this PR?

Comment on lines +250 to +251
This should only be used when it is both hard and unnecessary to provide `sup` & `inf`
explicitly. -/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
This should only be used when it is both hard and unnecessary to provide `sup` & `inf`
explicitly. -/
This should only be used when it is both hard and unnecessary to provide `sSup`, `sup` and `inf`
explicitly. -/

@mathlib-bors

mathlib-bors Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

✌️ Komyyy can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 16, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Mar 16, 2026
Also, some docstrings in `Order.ConditionallyCompleteLattice.Defs` are outdated (they still use Lean3 structure notation).
#36671 is an orthogonal PR to fix this.
@Komyyy
Komyyy requested a review from Vierkantor March 19, 2026 07:14
@Komyyy
Komyyy removed the request for review from Vierkantor March 22, 2026 05:26
@Komyyy

Komyyy commented Mar 22, 2026

Copy link
Copy Markdown
Contributor Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Mar 22, 2026
#36671)

* Some docstrings still use Lean3 structure notation.
* Some mistakenly use `(sup|inf)` instead of `s(Sup|Inf)`
* `conditionallyCompleteLatticeOfs(Sup|Inf)` provides both `sup` & `inf`

These were found while reviewing #35774.

Co-authored-by: Komyyy <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title doc(Order/ConditionallyCompleteLattice/Defs): Lean3 structure notation [Merged by Bors] - doc(Order/ConditionallyCompleteLattice/Defs): Lean3 structure notation Mar 22, 2026
@mathlib-bors mathlib-bors Bot closed this Mar 22, 2026
@Komyyy
Komyyy deleted the coditionally-complete-lattice-defs-doc branch March 22, 2026 06:48
justus-springer pushed a commit to justus-springer/mathlib4 that referenced this pull request Mar 28, 2026
leanprover-community#36671)

* Some docstrings still use Lean3 structure notation.
* Some mistakenly use `(sup|inf)` instead of `s(Sup|Inf)`
* `conditionallyCompleteLatticeOfs(Sup|Inf)` provides both `sup` & `inf`

These were found while reviewing leanprover-community#35774.

Co-authored-by: Komyyy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). documentation Improvements or additions to documentation t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants