Skip to content

[codex] grind_pattern のワイルドカード例を追加#2348

Draft
Seasawher wants to merge 1 commit into
mainfrom
codex-grind-pattern-wildcard
Draft

[codex] grind_pattern のワイルドカード例を追加#2348
Seasawher wants to merge 1 commit into
mainfrom
codex-grind-pattern-wildcard

Conversation

@Seasawher
Copy link
Copy Markdown
Member

Summary

Fixes #2341.

LeanByExample/Declarative/GrindPattern.lean に、grind_pattern のパターン内で _ をワイルドカードとして使えることを明記しました。

  • S _ z を使った multi-pattern の例を追加
  • 定理のインスタンス化に必要なパラメータは別パターンでカバーする必要があることを説明
  • 追加例が grind で実際に使えることを Lean コードで検証

Validation

  • lake env lean LeanByExample\Declarative\GrindPattern.lean
  • lake build LeanByExample.Declarative.GrindPattern

Notes

  • Local gh auth status reports an invalid keyring token, so the branch, commit, and PR were created through the GitHub connector.
  • The local worktree still has an unrelated existing diff in LeanByExample/TypeClass/Decidable.lean; this PR only includes LeanByExample/Declarative/GrindPattern.lean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grind_pattern が _ を受け入れることを明記する

1 participant