lean-ja / lean-ja/lean-by-example
docstring の中で可換図式が書ける
Open
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 188
- Forks
- 15
- Avg merge
- 9h 8m
- Merged PRs (30d)
- 6
Description
Some thoughts:
- Infoview hovers already support MathJax, and MathJax supports AMScd. It's unfortunately a very limited package, but e.g. hovering on
testbelow in the infoview shows a diagram
/--
$\begin{CD}
A @>a>> B\\
@V b V V= @VV c V\\
C @>>d> D
\end{CD}$
-/
theorem test : True := ⟨⟩
#check id test
- Adding any visualization to hovers not in the infoview is an open problem (vscode-lean4#541).
- A PR adding support for other kinds of visualization, e.g. quiver diagram descriptions, to infoview hovers would probably be quite welcome. The community would have to come to some agreement on which format to use; quiver can parse tikz-cd code, so that might be a good solution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the provided Lean snippet and inspect how MathJax AMScd renders in an infoview hover. Read vscode-lean4#541 and investigate the proposed visualization formats, including quiver and tikz-cd; the work is complete only after the community agrees on a format and infoview support is implemented.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100