Skip to content

fix: make classes appear as classes rather than structures in docs#12373

Merged
david-christiansen merged 1 commit intoleanprover:masterfrom
david-christiansen:class-timing-verso-doc
Feb 7, 2026
Merged

fix: make classes appear as classes rather than structures in docs#12373
david-christiansen merged 1 commit intoleanprover:masterfrom
david-christiansen:class-timing-verso-doc

Conversation

@david-christiansen
Copy link
Contributor

@david-christiansen david-christiansen commented Feb 7, 2026

This PR moves the elaboration of structure/class Verso docstrings until after the fact that it's a class is registered, so code samples in the docstring can use it as a class. Redundant addition of structure and constructor docstrings are also removed, because they're already handled in MutualInductive.lean.

Closes #11651

This PR moves the elaboration of structure/class Verso docstrings
until after the fact that it's a class is registered, so code samples
in the docstring can use it as a class.

Closes leanprover#11651
@david-christiansen david-christiansen added the changelog-no Do not include this PR in the release changelog label Feb 7, 2026
@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 Feb 7, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2026-02-07 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. You can force Mathlib CI using the force-mathlib-ci label. (2026-02-07 11:26:20)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-07 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-02-07 11:26:21)

@david-christiansen david-christiansen added this pull request to the merge queue Feb 7, 2026
Merged via the queue into leanprover:master with commit 2a02685 Feb 7, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-no Do not include this PR in the release changelog 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.

Class is treated as a mere structure, not a class, in its verso docstring

2 participants