部分関数禁止の理由にカリー・ハワード同型対応の観点からの補足を追加#2334
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/lean-ja/lean-by-example/sessions/57612611-2497-4a6a-80a0-9b2a2d1c44f6 Co-authored-by: Seasawher <47292598+Seasawher@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add explanation for why partial functions are not allowed
部分関数禁止の理由にカリー・ハワード同型対応の観点からの補足を追加
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
既存の説明(非停止関数を許すと
Falseが証明できる)に加えて、より根本的な理由としてカリー・ハワード同型対応の観点——「帰納法は再帰に対応する」——からの補足説明を追記する。変更点
LeanByExample/Modifier/DecreasingBy.leanの「部分関数を禁止するのはなぜか?」セクションに、カリー・ハワード同型対応による説明段落を追加proofLoopの例を追加既存の
search/anything経由の例と異なり、proofLoopは「証明 = 再帰関数」を直接示すため、帰納法との対応がより明確になる。