lean4-htt/src/Lean/Widget
Kyle Miller 36c2511b27
feat: options pp.mvars.anonymous and pp.mvars.levels (#5711)
Gives more control over pretty printing metavariables.

- When `pp.mvars.levels` is false, then universe level metavariables
pretty print as `_` rather than `?u.22`
- When `pp.mvars.anonymous` is false, then anonymous metavariables
pretty print as `?_` rather than `?m.22`. Named metavariables still
pretty print with their names. When this is false, it also sets
`pp.mvars.levels` to false, since every level metavariable is anonymous.
- When `pp.mvars` is false, then all metavariables pretty print as `?_`
or `_`.

Modifies TryThis to use `pp.mvars.anonymous` rather than doing a
post-delaboration modification. This incidentally improves TryThis since
it now prints universe level metavariables as `_` rather than `?u.22`.
2024-10-14 21:44:15 +00:00
..
Basic.lean chore: add missing copyright headers (#3411) 2024-02-20 01:49:55 +00:00
Diff.lean chore: remove the coercion from String to Name (#3589) 2024-03-21 23:46:03 +00:00
InteractiveCode.lean feat: options pp.mvars.anonymous and pp.mvars.levels (#5711) 2024-10-14 21:44:15 +00:00
InteractiveDiagnostic.lean feat: widget messages (#4254) 2024-05-29 06:37:42 +00:00
InteractiveGoal.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
TaggedText.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Types.lean feat: widget messages (#4254) 2024-05-29 06:37:42 +00:00
UserWidget.lean feat: use incrementality for completion in tactic blocks (#5205) 2024-09-09 12:08:37 +00:00