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

fix(engine/fstar): fix super typeclasses attributes #910

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

W95Psp
Copy link
Collaborator

@W95Psp W95Psp commented Sep 23, 2024

The PR #902 was reverted by #909 because #902 was generated redundant fields names in classes for super clauses, which is a problem for F*.

This PR changes the naming scheme of super clauses for typeclasses in F*. Those names now take into account the trait name. The super trait names are now a 5 characters base 62 encoding of the hash of the predicate ID concatenated with the trait name.

Fixes #630.

The PR #902 was reverted by #909 because #902 was generated redundant
fields names in classes for super clauses, which is a problem for F*.

This PR changes the naming scheme of super clauses for typeclasses in
F*. Those names now take into account the trait name. The super trait
names are now a 5 characters base 62 encoding of the hash of the
predicate ID concatenated with the trait name.

Fixes #630.
@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 23, 2024

I need to debug, something is off

@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 24, 2024

Status: I'm getting back to proof work, but we need to address this issue, and this PR is a good start at it.
The plan is to add trait information to impl exprs in the AST: we need a trait goal at each impl_expr

@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 24, 2024

Ah, yes, I was almost certain I added those goals already: that was done in branch main...add-infos-impl

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.

F* translation for trait inheritance is buggy
1 participant