Skip to content

doc: rewrite apply?, exact?, rw? and by? docstrings - #15008

Open
Vierkantor wants to merge 1 commit into
leanprover:masterfrom
Vierkantor:document-librarySearch-tactic
Open

doc: rewrite apply?, exact?, rw? and by? docstrings#15008
Vierkantor wants to merge 1 commit into
leanprover:masterfrom
Vierkantor:document-librarySearch-tactic

Conversation

@Vierkantor

Copy link
Copy Markdown
Contributor

This PR rewrites the docstrings for the apply?, exact? and rw? tactics, and the by? elaborator to reflect the tactic documentation guidelines. In particular:

  • the docstrings for apply? and exact? now resemble each other better, and explain more of their differences.
  • the docstring for rw? mentions the rw? at loc alternative form.
  • the by? term elaborator no longer calls itself a command.
  • general reformatting and rephrasing.

This PR rewrites the docstrings for the `apply?`, `exact?` and `rw?` tactics, and the `by?` elaborator to reflect [the tactic documentation guidelines](https://github.com/leanprover/lean4/blob/master/doc/style.md#tactics). In particular:

* the docstrings for `apply?` and `exact?` now resemble each other better, and explain more of their differences.
* the docstring for `rw?` mentions the `rw? at loc` alternative form.
* general reformatting and rephrasing.
@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 Sep 3, 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 137a88d9d363d6f0c60de75d4cef02a26f38962e --onto c632a0a0e434a951cdcf61bb4da3344abadd5587. You can force Mathlib CI using the force-mathlib-ci label. (2026-09-03 15:51:26)

@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 137a88d9d363d6f0c60de75d4cef02a26f38962e --onto 19c79593c47bb8dd3371327c08fc80775d8488af. You can force reference manual CI using the force-manual-ci label. (2026-09-03 15:51:28)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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