-
Notifications
You must be signed in to change notification settings - Fork 20
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
Engine: propagate trait generics arguments #751
Conversation
033f4fb
to
f5881dd
Compare
I think this should work, maybe there are a few things in the library we need to fix, but we will discover those by running hax on various things. @mamonet can you try this branch on ml-kem? |
@W95Psp this doesn't build with the same issue as in the visitor PR
|
Ah, yes, thanks @franziskuskiefer, will rebase this PR with |
1cabfda
to
e7b724a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm when it works for @mamonet
This PR seems to be solving the issue. I went through the instances that I'm aware of, and all of them verified successfully. However, I got one undesired change here https://github.com/cryspen/libcrux/blob/dev_ml_kem_lax/libcrux-ml-kem/proofs/fstar/extraction/Libcrux_ml_kem.Polynomial.fsti#L35-L37 |
Fantastic! |
@mamonet, I pushed a commit, can you tell me if that's fixing that regression? 😃 |
Of course, just 2 minutes to report back |
Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com>
The fix gets |
Ah, that's great news! |
5258952
to
a17cd49
Compare
This PR requires #698.This PR propagates trait generics arguments throughout the engine.
On the F* output:
method #self_type #trait_generic_arg1 ... #trait_generic_argN #Typeclasses.solve #method_generic_type1 ... #method_generic_typeM method_generic_const1 ... method_generic_constI meth_arg1 ... meth_argJ
Todo:
When undrafted, this PR should fix #719