lean-ja / lean-ja/lean-by-example
notation で導入された記号が `Syntax.atom` であることを確認する例
Open
Nobody has claimed this yet.
メモ
- Dominant language
- Lean
- Stars
- 188
- Forks
- 15
- Avg merge
- 9h 8m
- Merged PRs (30d)
- 6
Description
import Lean
open Lean
/-
Lean.Syntax.atom (Lean.SourceInfo.none) "="
-/
#eval show MetaM Syntax from do
let s : Syntax ← `(1 = 2)
match s with
| .node _info _kind #[x, y, _z] =>
return y
| _ => panic! "this is not reachable"
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
The issue provides a Lean snippet using Lean.Syntax.atom and a quoted 1 = 2 syntax tree, but it does not name a target file, test, or expected repository change. Clarify where this example belongs and what documentation result should count as done.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100