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

Apply a view to the n top assumptions #591

Open
fdupress opened this issue Jul 24, 2024 · 0 comments
Open

Apply a view to the n top assumptions #591

fdupress opened this issue Jul 24, 2024 · 0 comments

Comments

@fdupress
Copy link
Member

Consider a lemma of the form H: forall x, P x => Q x => R x and a goal of the form P y => Q y => T y.

I would like to be able to apply H as a view to P y and Q y in one go, so that move=> /H (with suitable syntax) leaves goal R y => T y.

One syntax (riffing off the recent extension on including intro-patterns in proof terms) could be move=> (H _ ^ ^). This would then enable a mix of instantiation and deferral for view hypotheses. [^2], for example, could be used to reorder top assumptions when applying the view.

Most of this can (probably) be implemented internally as introducing select top assumptions and constructing the proof term to apply as a view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants