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

Inline mask length equality proof in isplit #2

Open
larsk21 opened this issue Oct 20, 2022 · 0 comments
Open

Inline mask length equality proof in isplit #2

larsk21 opened this issue Oct 20, 2022 · 0 comments
Labels
blocked The issue is blocked by a different issue.

Comments

@larsk21
Copy link
Collaborator

larsk21 commented Oct 20, 2022

Currently, the proof that the length of the hypothesis mask is equal to the length of the spatial context in the implementation of isplit (Tactics.lean) is required to be assigned to a separate variable first. If the proof is inlined at $h_length_eq, the error unknown free variable is shown.

This workaround should be removed as soon as lean4/#1415 is fixed.

let h_length_eq ← ``(by show $(quote mask.length) = $(quote lₛ) ; decide)
try evalTactic (← `(tactic|
  first
  | refine tac_sep_split $(quote mask) $h_length_eq _ ?Sep.left ?Sep.right
  | fail
))
@larsk21 larsk21 added the blocked The issue is blocked by a different issue. label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked The issue is blocked by a different issue.
Projects
None yet
Development

No branches or pull requests

1 participant