fix: fix a collection of docstring errors#12959
Merged
TwoFX merged 13 commits intoleanprover:masterfrom Mar 19, 2026
Merged
Conversation
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
added 8 commits
March 18, 2026 17:48
Examples: ```lean4 import Lean open Lean Meta let mvar1 ← mkFreshExprMVar (mkConst `Nat) let e := (mkConst `Nat.succ).app mvar1 -- e is `Nat.succ ?m.773`, `?m.773` is unassigned mvar1.mvarId!.assign (mkNatLit 42) -- e is `Nat.succ ?m.773`, `?m.773` is assigned to `42` let e' ← instantiateMVars e -- e' is `Nat.succ 42`, `?m.773` is assigned to `42` pure 4 def getFinBound (e : Expr) : MetaM (Option Expr) := do let type ← whnf (← inferType e) let_expr Fin bound := type | return none return bound def a : Fin 100 := 42 match ← getFinBound (.const ``a []) with | some limit => IO.println (← ppExpr limit) | none => IO.println "no limit found" ```
Contributor
Author
|
Alright I understand which test is failing/why, fixing! |
Contributor
Author
|
Since these are all docstring changes, and I am assuming the manual is in part generated from docstrings, should I also kick off reference manual CI? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a series of errors in docstrings.
This includes:
HashMapfilesusizeSzinstead ofUSize.size