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

Tactics: refactor a bit to avoid a cycle #3563

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

mtzguido
Copy link
Member

Tactics.MApply.fsti is using typeclasses, which is only working because
of the non-staged build. Conceptually, this is wrong, as any change to
the typeclass resolution/generation will not be in effect when checking
Tactics.MApply. This becomes a concrete problem in the staged build.

This commit refactors MApply to separate its core (mapply0) from the
typeclass interface. This will allow us to make mapply0 a plugin without
any circularity with the typeclass plugins.

Tactics.MApply.fsti is using typeclasses, which is only working because
of the non-staged build. Conceptually, this is wrong, as any change to
the typeclass resolution/generation will not be in effect when checking
Tactics.MApply. This becomes a concrete problem in the staged build.

This commit refactors MApply to separate its core (mapply0) from the
typeclass interface. This will allow us to make mapply0 a plugin without
any circularity with the typeclass plugins.
@mtzguido
Copy link
Member Author

@mtzguido
Copy link
Member Author

mtzguido commented Oct 14, 2024

mls-star failed in that run, but I'm pretty sure it's unrelated (REPROSEC/dolev-yao-star-extrinsic@4fe16e8#commitcomment-147926988), so I'll merge.

@mtzguido mtzguido merged commit 0cd990c into FStarLang:master Oct 14, 2024
2 checks passed
@mtzguido mtzguido deleted the tac_refactor branch October 14, 2024 21:24
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

Successfully merging this pull request may close these issues.

1 participant