agda / cubical

An experimental library for Cubical Agda
https://agda.github.io/cubical/Cubical.README.html
Other
450 stars 138 forks source link

Figure out why the CommRingSolver doesn't work in this case #1097

Closed felixwellen closed 7 months ago

felixwellen commented 8 months ago

When looking at the goal type in the case below, it is actually something the CommRingSolver should be able to solve. But when trying to solve this, the solver actually gets meta-variables it cannot use.

comment image

felixwellen commented 8 months ago

Here is another case, which might be related (or not):

comment image

felixwellen commented 8 months ago

When looking at the goal type in the case below, it is actually something the CommRingSolver should be able to solve. But when trying to solve this, the solver actually gets meta-variables it cannot use.

image

It seems like the marco gets only the type in the message below: image So the task is to figure out how to use the reflection interface to tell agda to get more information on the type of the hole.

ncfavier commented 8 months ago

Links are more useful than screenshots: https://github.com/agda/cubical/pull/1093#discussion_r1476059816 https://github.com/agda/cubical/pull/1093#discussion_r1476066747

It looks like adding wait-for-type goal in solve!-macro does it.

felixwellen commented 8 months ago

Yes - it does! Many thanks!

felixwellen commented 7 months ago

1093 is merged and solves both problems -> closing.