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

bad interaction between mod_cases and induction #1851

Closed
dwrensha opened this issue Jan 26, 2023 · 0 comments
Closed

bad interaction between mod_cases and induction #1851

dwrensha opened this issue Jan 26, 2023 · 0 comments

Comments

@dwrensha
Copy link
Member

This code gives me an unexpected error:

import Mathlib.Tactic.ModCases

theorem foo (n : ℕ) (z : ℤ) : n = n := by
  induction n with
  | zero => rfl
  | succ n ih =>
     mod_cases z % 3
     · sorry
     · sorry
     · sorry

/-
type mismatch
  sorryAx ?m.55
has type
  ?m.55 : Sort ?u.54
but is expected to have type
   Nat.succ _uniq.37 = Nat.succ _uniq.37 : Prop
-/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant