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

Optional params break sorry #2649

Closed
digama0 opened this issue Oct 10, 2023 · 0 comments · Fixed by #4132
Closed

Optional params break sorry #2649

digama0 opened this issue Oct 10, 2023 · 0 comments · Fixed by #4132
Labels
bug Something isn't working

Comments

@digama0
Copy link
Collaborator

digama0 commented Oct 10, 2023

The sorry term fails when the goal is a forall type with trailing opt params, likely due to inconsistent handling of whether to introduce the parameter. The sorry tactic is unaffected.

def foo : (_ : Nat := 0) → Nat := sorry
                               -- ^^^^^
-- type mismatch
--   sorryAx (optParam Nat 0 → Nat) false
-- has type
--   Nat : Type
-- but is expected to have type
--   optParam Nat 0 → Nat : Type

def foo' : (_ : Nat := 0) → Nat := by sorry -- ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant