Git Product home page Git Product logo

Comments (3)

gares avatar gares commented on July 1, 2024
  • after (R : ringType) take a (ph : phant R) in the mixin
  • at structure definition, ph are not abstrcted but rather specialized in both the structure type /abbreviation and the operations:
    • Foo.type R := Foo.type_ R (Phant R)
    • Foo.op R x y := ... (Phant R) ...

from hierarchy-builder.

pi8027 avatar pi8027 commented on July 1, 2024

IIUC, subtyping functions should preserve phantom arguments and displays. For example, in the master branch of MathComp:

GRing.Algebra.lalgType
     : forall (R : ringType) (phR : phant R), GRing.Algebra.type (R:=R) phR -> GRing.Lalgebra.type (R:=R) phR

Order.Total.porderType
     : forall disp : unit, orderType disp -> porderType disp

In MathComp, these arguments appear only in the argument of structure records, and do not appear in mixins and classes. Displays should not actually appear in mixins and classes. I think we need some special treatments for these points.

from hierarchy-builder.

gares avatar gares commented on July 1, 2024

OK, I'll try something

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.