Git Product home page Git Product logo

Comments (7)

pi8027 avatar pi8027 commented on July 19, 2024

So should we implement [1, Sect. 4] to the elaborator [2] of Coq-elpi? Supporting the only coercions to Sortclass might be sufficient with regard to canonical instance declarations and easier than implementing the complete typing algorithm. I'm not sure.

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

Yes that would be my plan, but I would not work on it now (before writing the Hb paper)

We can live with it, or have a type of arguments that are elaborated by coq beforehand (syntax needed).

Ftr coq.elaborate was supposed to insert coercions but was broken beyond repair wrt universes and evars. Pretyping.ml wants a glob_constr in input, not a constr, and the detyping phase messes up evars (I could found a hack for univs). I can put it back, but it would be tricky to use. I'll think more about it later today, it may work for the simple use case we discuss here as a temporary solution

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

@pi8027 https://github.com/LPCIC/coq-elpi/blob/1d82b967672ff0f77529a6aca4a894bc523162cf/engine/elaborator.elpi#L309 has some (inefficient since it computes the closure every time and not well tested) support for coercions but you need to load the context with clauses representing coercions and enable coercions, see https://github.com/LPCIC/coq-elpi/blob/1d82b967672ff0f77529a6aca4a894bc523162cf/theories/tests/test_elaborator.v#L91. for sortclass it may even work

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

I'm a shame. @CohenCyril @pi8027 this is how to make of insert Ring.sort: https://github.com/LPCIC/coq-elpi/blob/1d82b967672ff0f77529a6aca4a894bc523162cf/theories/tests/test_elaborator.v#L147

from hierarchy-builder.

pi8027 avatar pi8027 commented on July 19, 2024

At least, I'm familiar with the construction of inheritance graphs (in Coq). I will try to work on that on Monday.

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

see #35

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

See also LPCIC/coq-elpi#170 what should provide a solid approach to this

from hierarchy-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.