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

Handle types with parameters in automatic saturation #339

Open
gares opened this issue Feb 14, 2023 · 2 comments
Open

Handle types with parameters in automatic saturation #339

gares opened this issue Feb 14, 2023 · 2 comments
Assignees

Comments

@gares
Copy link
Member

gares commented Feb 14, 2023

TODO: detail steps by @CohenCyril

@gares
Copy link
Member Author

gares commented Mar 1, 2023

  • add pred has-mixin-instance o:cs-key, o:mixinname, o:gref. and store that instead of mixin-src in the data base
    • We already have a list of clauses like mixin-src Ty M I, we map it to a list of clauses has-mixin-instance K M Ihd where
      • term->gref Ty K and term->gref I Ihd
  • from has-mixin-instance generate conditional clauses like mixin-src {{ list lp:T }} Mixin {{ src lp:I }} :- find-instance T Structure I where i : forall T : Structure, Mixin (list T)
    • use coq.unify with a well chosen problem to infer the structure on T, eg Structure.sort _ = T

@proux01
Copy link
Contributor

proux01 commented Dec 11, 2024

Linked to #347

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

Successfully merging a pull request may close this issue.

3 participants