Code Monkey home page Code Monkey logo

Comments (4)

mmcqd avatar mmcqd commented on August 20, 2024

It actually does lift the datatype, see my reply to your other issue. You're right that this output is confusing though.

from datatt.

atennapel avatar atennapel commented on August 20, 2024

Could you point me to where in the code the datatype gets lifted? I'm trying to understand your implementation. I found (in syntax.ml):

let lift i = bottom_up (function 
  | U (Const j) -> U (Const (j + i)) 
  | x -> x)

But this only lifts universes.

from datatt.

mmcqd avatar mmcqd commented on August 20, 2024

Hmmm actually yeah, datatypes in Syntax don't actually have their universe level stored syntactically. The way type lifting gets enforced on datatypes is that they have an eta-expanded version of their type constructor in their description (tm and tp in Domain.desc), and this is what actually gets lifted. I say eta-expanded but if the datatype has no parameters then tm won't be a function, of course. See what happens in Nbe.eval when evaluating a Lift. I think this is probably a pretty weird way to have implemented this haha.

from datatt.

atennapel avatar atennapel commented on August 20, 2024

Ah that's interesting. Definitely not how I expected it to be implemented :)

from datatt.

Related Issues (3)

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.