Skip to content

Cubical interaction: Display inferred type with interval variables instantiated #3690

Closed

Description

@nad

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.

Activity

  1. added
    type: enhancement
    ux: interaction
    cubical
    on Apr 12, 2019
  2. added this to the 2.6.1 milestone on Apr 12, 2019
  3. mortberg commented on Apr 13, 2019

    @mortberg
    Contributor

    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?

  4. Saizan commented on Apr 15, 2019

    @Saizan
    Collaborator

    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

  5. Saizan commented on Nov 20, 2019

    @Saizan
    Collaborator

    Pull request #4164 is also relevant when pattern matching on HITs

  6. modified the milestones: 2.6.1, 2.6.2 on Dec 1, 2019
  7. modified the milestones: 2.6.2, 2.6.3 on Feb 7, 2021
  8. modified the milestones: 2.6.3, Later on Aug 26, 2022
  9. modified the milestones: later, 2.6.4 on Apr 25, 2023
  10. changed the title [-]Value of expression with interval variables instantiated[/-] [+]Cubical interaction: Display inferred type with interval variables instantiated[/+] on Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cubicaltype: enhancementux: interaction

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions