Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simp_all は通るが simp at * は通らない例 #1041

Closed
Seasawher opened this issue Nov 3, 2024 · 0 comments
Closed

simp_all は通るが simp at * は通らない例 #1041

Seasawher opened this issue Nov 3, 2024 · 0 comments
Assignees
Labels

Comments

@Seasawher
Copy link
Member

Seasawher commented Nov 3, 2024

simp_all は再帰的に単純化を繰り返している気がするので、再帰的でないといけない例をつくればよさそう…?

example (n : Nat) (P : Nat → Prop) (h1 : P (n + 0)) : P (n + 0 + 0) := by
  simp at *

  -- まだゴールが残っている
  show P n
  assumption

example (n : Nat) (P : Nat → Prop) (h1 : P (n + 0)) : P (n + 0 + 0) := by
  simp_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant