Skip to content

[codex] rcases の rfl パターンを紹介#2349

Draft
Seasawher wants to merge 1 commit into
mainfrom
codex/rcases-rfl-pattern
Draft

[codex] rcases の rfl パターンを紹介#2349
Seasawher wants to merge 1 commit into
mainfrom
codex/rcases-rfl-pattern

Conversation

@Seasawher
Copy link
Copy Markdown
Member

Summary

Fixes #112.

LeanByExample/Tactic/Rcases.lean に、等式仮定を rcases h with rfl で分解する例を追加しました。

  • h : a = brfl パターンで消去して、両辺が同じ形に戻る例を追加
  • ⟨rfl, hb⟩ のように、ほかの rcases パターンの中へ rfl を混ぜられる例を追加

Validation

  • lake env lean LeanByExample\Tactic\Rcases.lean
  • lake build LeanByExample.Tactic.Rcases

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 includes only LeanByExample/Tactic/Rcases.lean.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rcases ... with rfl という構文を紹介する

1 participant