Repository navigation
[cubical] Fibrant unbased path types - #5439
Conversation
|
I bet this is just because alphabetically |
|
Yep, that was it. |
|
Nice! I guess we'll need functions in the library for converting between line types ( |
|
I realized that the current |
|
Hah! You can blacklist IntervalUniv in I suppose records could be useful instead? |
Saizan
left a comment
There was a problem hiding this comment.
Nice! I guess we'll need functions in the library for converting between line types (
I -> A) and path types? It will be interesting to see how often we have to use these functions
The conversion function is just eta expansion, it's the same when you have a path and try to use transp.
Yeah, maybe we can then simplify the extent-type type signature you gave on Zuiip, from to But the way things are currently set up, I think I need to disallow any kind of data type or record with parameters from landing in |
|
Yeah, that makes sense, otherwise we would have to set-up a version of transp for ISet types. |
|
Is it straightforward to enforce that restriction? I could imagine it being hard to notice that you are in a module with some parameters. |
|
It should be, afaict things are already lambda-lifted to the top-level in checkDataDef. See the fields |
|
Forbidding parameters in record types does get in the way of the extent type stretch goal, though, because we can't write although we can at least define individual instances. |
|
We could just only allow |
|
It's all about what we need for Otherwise we bite the bullet and introduce a dedicated transp for ISet. |
|
Is the current implementation of coercion for functions where the domain is in In any case, I'm more inclined now to simply exclude all records from |
|
Yeah, LockUniv handling is a bit of a hack there, I'll revisit when I
introduce clocks and stuff.
Excluding records from ISet should happen somewhere in `checkRecDef` of
course.
…On Tue, Jun 15, 2021 at 4:35 PM Evan Cavallo ***@***.***> wrote:
Is the current implementation of coercion for functions where the domain
is in LockUniv dodgy? Currently the coercion in the domain in that case
is just the identity function (
https://github.com/ecavallo/agda/blob/9c43f618f42851efd10c66734d9e3e09fdea10e0/src/full/Agda/TypeChecking/Primitive/Cubical.hs#L1084
):
LockUniv -> return $ Just $ \ _ _ a0 -> a0
In any case, I'm more inclined now to simply exclude all records from ISet
for the moment unless it's very easy to keep them. The universe can always
be enlarged in a future PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5439 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA76TFPT7ILA2Q7KMY3DWTTS5QKRANCNFSM46OORIFQ>
.
|
|
What would be the way to wait until J is manifestly constant? I went to check in the |
|
You can reduce the type and check that it's a |
|
The thing I'm not sure about now is how to restrict use of |
|
You could add the check in |
|
OK, that's everything I'm aware that I need to do, unless I should add some Fail tests. A remark for the future: I think the more principled version of |
|
A |
|
The windows errors seem quite random, I presume we should merge. I am going to do a squash and merge to simplify the history. |
|
Thanks for all the help! |
|
Thanks for the work, btw! |
Arranges so that functions from the interval into Set can be placed in Set rather than SSet:
(This shouldn't be possible if we replace
Iwith an arbitrary type inSSet.) Following @Saizan's suggestion, this is accomplished by creating a separate sortISet <= SSetfor the interval.I need some help tracking down a bug: I can successfully declare
{-# BUILTIN INTERVALUNIV ISet #-}, but if I try to import a file that does so (eg see test/Succeed/CubicalPrims) I get:I think I also need to add some kind of
requireCubicalto my changes in TypeChecking.Rules.Builtin (and maybe elsewhere?), but not sure what exactly.