Comments (4)
It actually does lift the datatype, see my reply to your other issue. You're right that this output is confusing though.
from datatt.
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.
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.
Ah that's interesting. Definitely not how I expected it to be implemented :)
from datatt.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datatt.