You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cubical interaction: Display inferred type with interval variables instantiated #3690
cubicalCubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transptype: enhancementIssues and pull requests about possible improvementsux: interactionIssues to do with interactive development (holes, case splitting, etc)
When working with Cubical Agda it might be nice if commands like agda2-goal-and-context-and-inferred (C-c C-.) included information about the value of the given expression for each relevant instantiation of interval variables.
Yes, this would be especially useful when working with HITs. At the moment Agda only displays the type and not the boundary conditions which makes it extremely confusing as seemingly correctly typed terms doesn't fill holes because they don't have the right boundary. The same applies when building hcomp's interactively. I think @Saizan is working on fixing this?
Maybe cubical extension types (types like [i j] A [(i = 0) -> u , (j = 1) -> v]) will make this easier to implement?
I don't want to reimplement constraint propagation in the typechecker, the unifier is doing a good job at it. That's why extension types do not seem like they would help.
Here I've been working on printing constraints out as you would expect them, there it's only for those coming from HIT splitting, but it can be generalized.
However to handle more than the simplest cases we need to do something about blocking metas, otherwise you'll get a bunch of "_12" in your constraints.
changed the title [-]Value of expression with interval variables instantiated[/-][+]Cubical interaction: Display inferred type with interval variables instantiated[/+]on Aug 4, 2023
cubicalCubical Agda paraphernalia: Paths, Glue, partial elements, hcomp, transptype: enhancementIssues and pull requests about possible improvementsux: interactionIssues to do with interactive development (holes, case splitting, etc)
Activity
mortberg commentedon Apr 13, 2019
Yes, this would be especially useful when working with HITs. At the moment Agda only displays the type and not the boundary conditions which makes it extremely confusing as seemingly correctly typed terms doesn't fill holes because they don't have the right boundary. The same applies when building hcomp's interactively. I think @Saizan is working on fixing this?
Maybe cubical extension types (types like
[i j] A [(i = 0) -> u , (j = 1) -> v]) will make this easier to implement?Saizan commentedon Apr 15, 2019
I don't want to reimplement constraint propagation in the typechecker, the unifier is doing a good job at it. That's why extension types do not seem like they would help.
Here I've been working on printing constraints out as you would expect them, there it's only for those coming from HIT splitting, but it can be generalized.
https://github.com/Saizan/agda/tree/interaction-constraints
However to handle more than the simplest cases we need to do something about blocking metas, otherwise you'll get a bunch of "_12" in your constraints.
#3606
Saizan commentedon Nov 20, 2019
Pull request #4164 is also relevant when pattern matching on HITs
[-]Value of expression with interval variables instantiated[/-][+]Cubical interaction: Display inferred type with interval variables instantiated[/+]