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

obtain doesn't work with placeholders #5732

Closed
Ruben-VandeVelde opened this issue Jul 5, 2023 · 1 comment
Closed

obtain doesn't work with placeholders #5732

Ruben-VandeVelde opened this issue Jul 5, 2023 · 1 comment
Labels
lean4-change-in-behaviour Describes a known change in behaviour. No implication that it "needs fixing".

Comments

@Ruben-VandeVelde
Copy link
Collaborator

Example from #4707:

    obtain ⟨k, ⟨f⟩⟩ := IH ?_ s' ?_

doesn't work - no proof obligations are created for the placeholders (lean reports "no goals to be solved"), but omitting the proofs reports "don't know how to synthesize placeholder for argument 'h'".

    have := IH ?_ s' ?_
    obtain ⟨k, ⟨f⟩⟩ := this

works as expected.

@Ruben-VandeVelde Ruben-VandeVelde added the lean4-change-in-behaviour Describes a known change in behaviour. No implication that it "needs fixing". label Jul 5, 2023
@digama0
Copy link
Member

digama0 commented Jul 6, 2023

duplicate of leanprover-community/batteries#116

@digama0 digama0 closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lean4-change-in-behaviour Describes a known change in behaviour. No implication that it "needs fixing".
Projects
None yet
Development

No branches or pull requests

2 participants