lean4-htt/src/Std
David Thrane Christiansen 9fbbe6554d
fix: make first token detection work in modules (#12047)
This PR makes the automatic first token detection in tactic docs much
more robust, in addition to making it work in modules and other contexts
where builtin tactics are not in the environment. It also adds the
ability to override the tactic's first token as the user-visible name.

Previously, first token detection would look up the parser descriptor in
the environment and process its syntax. This would be incorrect for
builtin parsers, as well as for modules in which the definition is not
loaded. Now, it instead consults the Pratt parsing table for the
`tactic` syntax category. Tests are added that ensure this keeps working
in modules, and also that the first token of all tactics that ship with
Lean are either detected unambiguously or annotated to remove ambiguity.

Closes #12038.
2026-01-20 11:12:05 +00:00
..
Data style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00
Do style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00
Internal style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00
Net refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Sat feat: dedicated fix operator for well-founded recursion on Nat (#7965) 2025-12-01 12:51:55 +00:00
Sync style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00
Tactic fix: make first token detection work in modules (#12047) 2026-01-20 11:12:05 +00:00
Time doc: correct typos in documentation and comments (#11465) 2025-12-02 06:38:05 +00:00
Data.lean feat: add decidable equality to DHashMap/HashMap/HashSet and their extensional variants (#11421) 2025-12-12 09:55:55 +00:00
Do.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Internal.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Net.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Sat.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Sync.lean feat: introduce CancellationContext type for cancellation with context propagation (#11499) 2025-12-15 21:20:11 +00:00
Tactic.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Time.lean style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00