grind funCC の使い方
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- tooling
Research direction
Start by reproducing the two failing grind examples in the issue, then compare them with the succeeding rw, congrFun, and funext_iff examples. Trace how grind handles equalities between functions and determine what is needed so the first two examples are provable; done means those examples succeed without the explicit workaround.
Written by the indexing model from the issue text.
Description
Here's a situation where grind fails to solve a goal involving function equalities.
def Φ : (Nat → Nat) → (Nat → Nat) := id
example (f g : Nat → Nat) (h : Φ f = Φ g) (a : Nat) : Φ f a = Φ g a := by
grind -- fails
example (f g : Nat → Nat) (h : Φ f = Φ g) (a : Nat) : Φ f a = Φ g a := by
grind [Φ] -- fails
example (f g : Nat → Nat) (h : Φ f = Φ g) (a : Nat) : Φ f a = Φ g a := by
rw [h] -- succeeds
-- apply congrFun ‹_› -- also succeeds
example (f g : Nat → Nat) (h : Φ f = Φ g) (a : Nat) : Φ f a = Φ g a := by
grind only [funext_iff (f := Φ f) (g := Φ g)] -- succeeds
example (f g : Nat → Nat) (h : f = g) (a : Nat) : Φ f a = Φ g a := by
grind only -- succeeds
こういうのを証明できるようになる
- 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
-
メモ
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
lean-ja/lean-by-example#2672 ·
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
All issues in lean-ja/lean-by-example
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ranxianglei/billion-context#8315 ·
Maintainers usually reply within 1 day