Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension type #23

Closed
jonsterling opened this issue Jan 26, 2020 · 4 comments · Fixed by #152
Closed

Extension type #23

jonsterling opened this issue Jan 26, 2020 · 4 comments · Fixed by #152

Comments

@jonsterling
Copy link
Collaborator

No description provided.

This was referenced Jan 26, 2020
@jonsterling

This comment has been minimized.

@jonsterling
Copy link
Collaborator Author

I have decided that rather than try and implement a modality for just this purpose, we will special-case it in the following way:

(* Syntax *)
type t =
...
| Ext of {len : nat; cof : [`Global of t]; cube : t; part : t}
...

(* Semantics *)
type con =
...
| Ext of {len : nat; cof : [`Global of cof]; cube : con; part : con}
...

The cof argument is a global element of (psi : dim^len) -> cof; the de Bruijn index counting convention is un-altered (since those count from the right), but we must evaluate cof in a completely empty environment. Likewise, we must elaborate it in a completely empty environment.

The cube argument is a cube of type codes, as always. The part argument is a partial cube of elements --- whose support is the appropriate weakening of cof. However, because weakening is implicit in the semantic domain, we can do this totally seamlessly.


unfold_el will take the extension type code to a bunch of dependent product and cubical subtype.

@favonia
Copy link
Collaborator

favonia commented May 12, 2020

This looks great. tp seems better than cube to me, though. Also, shouldn't we try to remember the variable names somewhere?

@jonsterling
Copy link
Collaborator Author

The variable names can be remembered in the lambdas that get put under those constructors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants