Git Product home page Git Product logo

Comments (4)

CohenCyril avatar CohenCyril commented on July 19, 2024

Also, it does not (always?) take into account Implicit Types

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

I think we can do better for builders, but not in general.

  • Context P1 P2 T of F ... here I think we know that F ... must type in this exact context.
  • Record foo P1 P2 T of F1 ... & F2 ... are we sure F1 ... and F2 ... typecheck? I guess so for F1 ... but maybe F2 has phantom arguments on T requiring F1's provides to be loaded.

Am I right?

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

This is also true in the simple case:

HB.factory Record Ring_of_AddComoid A of AddComoid A := {
  opp : A -> A;
  one : A;
  mul : A -> A -> A;
  addNr : left_inverse zero opp add;
  mulrA : associative mul;
  mul1r : left_id one mul;
  mulr1 : right_id one mul;
  mulrDl : left_distributive mul add;
  mulrDr : right_distributive mul add;
}.

HB.builders Context A (a : Ring_of_AddComoid A).

Here Ring_of_AddComoid A is not well typed unless you first postulate the requires of the factory.

from hierarchy-builder.

gares avatar gares commented on July 19, 2024

bottom line, just typing F Params T is not good, one should at least prune the id_phant

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.