lean-ja / lean-ja/lean-by-example

notation で導入された記号が `Syntax.atom` であることを確認する例

Open
#458 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.