Agda: When inspecting a hole, the type of the goal is not reduced.

Created on 22 Mar 2017  ยท  3Comments  ยท  Source: agda/agda

I get this :

Goal: extend โ†“ .ss โ‰คs extend โ†“ .s
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
ssโ‰คs : .ss โ‰คs .s
.s   : SetLL .pll
.ss  : SetLL .pll
.pll : LinLogic .i
.u   : Level
.i   : Size

but putting ssโ‰คs in the hole actually works.

The function extend is a bit odd. ( i need to learn the technical details of with abstractions).

https://github.com/xekoukou/sparrow/blob/58fd21115b00a9064a3451748a7f66e9fad611e7/agda/SetLL.agda#L738

Most helpful comment

C-c C-, uses the macro agda2-maybe-normalised which means it has 3 levels which correspond to different strategies:

  • "naked", it simplifies the goal (it's a heuristic which does some reductions)
  • prefixed with C-u it instantiates it (i.e. no reduction at all)
  • prefixed with C-u C-u it normalises it fully (which can generate big goals)

All 3 comments

By default, the show goal command doesn't normalise the goal type. Prefix with C-u C-u if you want normalisation. See https://agda.readthedocs.io/en/v2.5.2/tools/emacs-mode.html.

I used C-c C-, and it seems to normalize the goal by default.

edit : Ok, I prefixed with C-u C-u and it did reduce it, thus C-c C-, sometimes does not reduce types.

C-c C-, uses the macro agda2-maybe-normalised which means it has 3 levels which correspond to different strategies:

  • "naked", it simplifies the goal (it's a heuristic which does some reductions)
  • prefixed with C-u it instantiates it (i.e. no reduction at all)
  • prefixed with C-u C-u it normalises it fully (which can generate big goals)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

GoogleCodeExporter picture GoogleCodeExporter  ยท  4Comments

mietek picture mietek  ยท  4Comments

guillaumebrunerie picture guillaumebrunerie  ยท  3Comments

andreasabel picture andreasabel  ยท  3Comments

juhp picture juhp  ยท  3Comments