lean4-htt/tests/lean/interactive/autoBoundIssue.lean.expected.out
Kyle Miller c801a9e8cf
feat: use the metavariable index when pretty printing (#9778)
This PR modifies the pretty printing of anonymous metavariables to use
the index rather than the internal name. This leads to smaller numerical
suffixes in `?m.123` since the indices are numbered within a given
metavariable context rather than across an entire file, hence each
command gets its own numbering. This does not yet affect pretty printing
of universe level metavariables.

For debugging purposes, metavariables that are not defined now pretty
print as `?_mvar.123` rather than cause pretty printing to fail.
2025-08-07 15:58:51 +00:00

31 lines
1.6 KiB
Text

{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 13, "character": 21}}
{"range":
{"start": {"line": 13, "character": 21}, "end": {"line": 13, "character": 24}},
"goal": "k : Fin ?m\nctx : Vector' Ty ?m\nty u : Ty\n⊢ Vector' Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 16, "character": 26}}
{"range":
{"start": {"line": 16, "character": 26}, "end": {"line": 16, "character": 29}},
"goal": "k : Fin ?m\nctx : Vector' Ty ?m\nty : Ty\n⊢ Vector' Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 19, "character": 20}}
{"range":
{"start": {"line": 19, "character": 20}, "end": {"line": 19, "character": 23}},
"goal": "k : Fin ?m\nctx : Vector' Ty ?m\nty : Ty\n⊢ Vector' Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 24, "character": 18}}
{"range":
{"start": {"line": 24, "character": 18}, "end": {"line": 24, "character": 21}},
"goal": "k : Fin ?m\nctx : Vector' Ty ?m\nty : Ty\n⊢ Vector' Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 26, "character": 18}}
{"range":
{"start": {"line": 26, "character": 18}, "end": {"line": 26, "character": 21}},
"goal":
"aux : {x : Nat} → {k : Fin x} → {ctx : Vector' Ty x} → {ty : Ty} → HasType k ctx ty\nk : Fin ?m\nctx : Vector' Ty ?m\nty : Ty\n⊢ Vector' Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 29, "character": 24}}
{"range":
{"start": {"line": 29, "character": 24}, "end": {"line": 29, "character": 27}},
"goal": "k : Fin ?m\nctx : Vector' Ty ?m\nty : Ty\n⊢ Vector' Ty ?m"}