Lean 4 の `native_decide` が `trustEvalAsAxioms` の明示を要求する変更
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- markdown
- Domain
- documentation
Research direction
Update the existing native_decide chapter linked in the issue. Start by reading its explanation of additional axioms and #print axioms, then check the linked upstream commit for the changed behavior. Show the error without the option and a narrowly scoped set_option trustEvalAsAxioms true in example; make clear that enabling it does not remove the additional axiom.
Written by the indexing model from the issue text.
Description
Lean 4 の master で、native_decide(decide +native)を使う宣言は、trustEvalAsAxioms が有効でない限り拒否されるようになりました。ネイティブ計算の結果を追加の公理として使うため、コンパイラや @[implemented_by]・@[extern] の実装を信頼する、という選択を明示させる変更です。通常の by decide までこのオプションが必要になるわけではありません。
既存の native_decide 章ではすでに追加公理と #print axioms を説明しているので、対応ツールチェーンに更新する際に、オプションなしのエラーと、必要な宣言だけを set_option trustEvalAsAxioms true in で許可する例を並べるとよさそうです。許可は追加公理を取り除くものではありません。
上流コミットと現行の公開章を確認した記録です。Lean での実行は未確認です。
- Dominant language
- Lean
- Stars
- 200
- Forks
- 17
- Avg merge
- 20m
- Merged PRs (30d)
- 6
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from lean-ja/lean-by-example
-
優先度たかし
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lean-ja/lean-by-example#2681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
lean-ja/lean-by-example#2679 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lean-ja/lean-by-example#2676 ·
Maintainers usually reply within 1 day
-
grind は存在命題を示せないOpen
Difficulty 1/5 Under an hour Newbie friendliness 66/100
lean-ja/lean-by-example#2665 ·
Maintainers usually reply within 1 day
-
recall コマンドを紹介するOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
lean-ja/lean-by-example#2622 ·
Maintainers usually reply within 1 day
All issues in lean-ja/lean-by-example
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#79 ·
Maintainers usually reply within 1 day
-
v2
Difficulty 1/5 Under an hour Newbie friendliness 86/100
modelcontextprotocol/python-sdk#3978 · 2 comments ·
Maintainers usually reply within 1 day
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day