Skip to content

doc: drop internal-lemma references from repeatM docstrings - #14436

Merged
sgraf812 merged 1 commit into
masterfrom
sg/repeatM-internal-docstring
Jul 20, 2026
Merged

doc: drop internal-lemma references from repeatM docstrings#14436
sgraf812 merged 1 commit into
masterfrom
sg/repeatM-internal-docstring

Conversation

@sgraf812

@sgraf812 sgraf812 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

This PR removes references to the unfolding lemma from the repeatM docstrings and moves that lemma into the repeatM.Internal namespace.

The lemma repeatM_eq_of_monadTail becomes repeatM.Internal.eq_of_monadTail, which places it in an internal namespace and lets the coreInternal.internalModule linter run unsuppressed on Init.Internal.Order.While. Nesting under repeatM rather than a top-level Internal avoids shadowing the Internal namespaces that other modules open.

@sgraf812 sgraf812 added the changelog-doc Documentation label Jul 17, 2026
This PR removes references to the unfolding lemma from the `repeatM` docstrings and moves that lemma into the `repeatM.Internal` namespace.

The lemma `repeatM_eq_of_monadTail` becomes `repeatM.Internal.eq_of_monadTail`, which places it in an internal namespace and lets the `coreInternal.internalModule` linter run unsuppressed on `Init.Internal.Order.While`. Nesting under `repeatM` rather than a top-level `Internal` avoids shadowing the `Internal` namespaces that other modules open.
@sgraf812
sgraf812 force-pushed the sg/repeatM-internal-docstring branch from e287b80 to e75d43b Compare July 17, 2026 15:51
@sgraf812
sgraf812 marked this pull request as ready for review July 17, 2026 16:01
@sgraf812
sgraf812 requested a review from TwoFX as a code owner July 17, 2026 16:01
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 17, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 4237bc682acfe36467bb593cd4eb43b29dc640e8 --onto 79bec6d064d8672cb10864cad3d9fd054b6917ae. You can force Mathlib CI using the force-mathlib-ci label. (2026-07-17 16:19:03)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 4237bc682acfe36467bb593cd4eb43b29dc640e8 --onto a4b639c5a1e545677b36b09a4770b7b559df805b. You can force reference manual CI using the force-manual-ci label. (2026-07-17 16:19:04)

@sgraf812
sgraf812 added this pull request to the merge queue Jul 20, 2026
Merged via the queue into master with commit 323137b Jul 20, 2026
21 checks passed
@sgraf812
sgraf812 deleted the sg/repeatM-internal-docstring branch July 20, 2026 14:14
robsimmons pushed a commit that referenced this pull request Jul 29, 2026
This PR removes references to the unfolding lemma from the `repeatM`
docstrings and moves that lemma into the `repeatM.Internal` namespace.

The lemma `repeatM_eq_of_monadTail` becomes
`repeatM.Internal.eq_of_monadTail`, which places it in an internal
namespace and lets the `coreInternal.internalModule` linter run
unsuppressed on `Init.Internal.Order.While`. Nesting under `repeatM`
rather than a top-level `Internal` avoids shadowing the `Internal`
namespaces that other modules open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-doc Documentation toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants