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

Rewriting in the context fails only some times #710

Open
sarranz opened this issue Feb 7, 2025 · 1 comment
Open

Rewriting in the context fails only some times #710

sarranz opened this issue Feb 7, 2025 · 1 comment

Comments

@sarranz
Copy link

sarranz commented Feb 7, 2025

The following gives unknown lemma 'h1'

lemma ble foo :
  !foo =>
  foo =>
  false.
move=> h0 h1.
rewrite h1 in h0.

But if the rewrite is h0 in h1 it works.

@strub
Copy link
Member

strub commented Feb 10, 2025

When rewriting in h0, only the context above h0 is accessible. This is to prevent to introduce new variables that would appear after the local hypothesis. One solution would be to move h0 to the end of the context, maybe with a varaition of the in meta-command.

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

No branches or pull requests

2 participants