Repository navigation
Interaction boundaries - #4164
Merged
Merged
Conversation
[ interaction ] print IPoint constraints with the goal [ interaction ] WIP trying to get IP constraints to "foo ps = ?0" [ interaction ] IApplyConfluence constraints collected and printed They get printed in the context of the interaction meta, with equality constraints on the side. [ build ] fixed build
[ interaction ] respect normalization level for boundaries
Contributor
|
This should make programming with HITs a lot more pleasant! it would be great if the boundary information could also be printed when for example constructing an hcomp, but for now this seems like a great improvement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Printing the constraints together with a goal is quite helpful, but they might be more normalized then needed, as the come from the conversion checker, and they are presented in whatever context they happen to be.
For goals appearing directly on the RHS of a definition we can collect the boundaries imposed by path applications directly in the info for the interaction point, and print them with less noise whenever possible.
e.g. we could consider the following goal, taken from https://github.com/agda/cubical/blob/master/Cubical/HITs/Torus/Base.agda
would give this printout for the goal and context:
(Plus a Constraints section, which is redundant in this case).
This is especially useful when the boundaries involve more complicated expression we do not necessarily want to see the WHNF of.
Also note how the variables
i k jmatch their declaration in the context, rather than having some arbitrary aliases or freshly generated names.In principle the boundary information could be available at the time of meta creation after @jespercockx proposed refactoring of LHS and Coverage, simplifying the implementation.
However I think the current workaround is lightweight enough to be worthwhile.
Also moving constraints into the right context is generally useful for readability.
Pings:
@mortberg , who has been requesting something like this.
Generally improving the issues raised in #3605.