Repository navigation
Re #3606: Instantiate blocking metas when displaying types and constraints - #3723
Conversation
|
Looks very good to me. The "blocked" constraints are almost never useful to me anyway: my strategy is usually to look for the constraints that are not blocked on anything else, reload the file, and then repeat (see also #3654). |
|
Yeah, what you really want is to see the problems they are blocked on, so you can tell Agda how to solve those. |
|
I have some code for which "Show goals" displays four constraints, all related to |
|
How exactly are these other two constraints related to the hole? What we need is a clear criterion for when a constraint is related to a hole, then we could use it to replace the current approximation using |
|
I propose that the criterion should be "they mention the meta for the interaction point when instantiated with If @nad is seeing them as referring to |
|
I will rebase and make that change. |
efa72fc to
9bbcebb
Compare
|
@nad let me know if you get all four constraints in "Goal type and context" now. |
|
I tried with some other code, and could not reproduce the problems described above. |
Needed if we want to instantiated blocking metas, as that can produce ill-typed terms.
Like @reify@ but instantiates blocking metas (and their twins).
9bbcebb to
2416385
Compare
This check got lost from a previous commit when rebasing.
| -- in an irrelevant context. Basically, an internal | ||
| -- version of the irrelevance axiom @.irrAx : .A -> A@. | ||
| | Dummy String | ||
| | Dummy String Elims |
There was a problem hiding this comment.
Didn't you forget to update the documentation?
|
I don't think it is good for the maintainability of Agda if core invariants are diluted for the sake of a simpler implementation of a UX feature. Crashes are reported further from the point of causation with the There should be other ways to achieve what you want. Some ideas:
Maybe you have another idea... |
|
I see your concerns, I figured that an unexpected We also want to e.g. do the I will try and see if I can make it work by using a newtype of |
Term's applyE goes back to throwing __IMPOSSIBLE__ for ill-typed redexes. We have a newtype BraveTerm to just build Dummies instead. Re #1623: Now agsy restores fields in constructors.
|
I don't understand why |
|
Also, what is the stuff with |
|
I think now that |
|
I managed to fix the problem in the end, but I think all the extra 'coerce's in |
|
@jespercockx If we also parametrize The Coercible stuff is so we can write a single function for both Term and BraveTerm but do the right thing in the recursive calls to
The main thing is that it seems we still want to get |
This should be a nice companion to #3716
I'd like some feedback, considering the changes in the output.
It does leave "agda2-show-constraints" untouched, as I figured that could be useful for the experts and debugging.