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

Add a kludgy implementation of tmTry #876

Open
wants to merge 1 commit into
base: coq-8.16
Choose a base branch
from

Conversation

JasonGross
Copy link
Contributor

Partial work towards #874. Does not support tmDefinition, tmAxiom, etc.

@JasonGross
Copy link
Contributor Author

Do universes fail to get propagated through typeclass resolution to the template monad or something? I'm getting

MetaCoq: TemplateProgram: Going to run (Core.tmReturn@{Common.option_instance.u0
                                          WithTemplate.tmRetypeAroundMetaCoqBug853.u1}
                                          (Common.my_Value@{Common.option_instance.u0}
                                             {|
                                               Common.my_projT1 :=
                                                 quotation_of
                                                   KernameSetOrdProp.ME.OrderTac.TO.t;
                                               Common.my_projT2 :=
                                                 Ast.tConst
                                                   (MPdot
                                                      (MPdot
                                                      (MPdot
                                                      (MPdot
                                                      (MPfile
                                                      ["Kernames"%bs; "Common"%bs;
                                                      "MetaCoq"%bs])
                                                      "KernameSetOrdProp"%bs)
                                                      "ME"%bs) "OrderTac"%bs)
                                                      "TO"%bs, "t"%bs)
                                                   ([] : Universes.Instance.t)
                                             |}))</infomsg>
Toplevel input, characters 0-77:
> MetaCoq Run (tmMakeQuotationOfModule everything None "KernameSetOrdProp.ME").
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Conversion test raised an anomaly:
Anomaly
"in Univ.repr: Universe MetaCoq.Quotation.ToTemplate.QuotationOf.Common.Kernames.KernameSetOrdProp.Instances.13 undefined."
Please report at http://coq.inria.fr/bugs/.

when trying to use this...

@JasonGross JasonGross force-pushed the coq-8.16+tmTry-hack branch 2 times, most recently from eb5374b to f17fb44 Compare April 2, 2023 20:01
Partial work towards MetaCoq#874.  Does not support `tmDefinition`, `tmAxiom`,
etc.
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