<div dir="ltr">As Wouter says,the abstract keyword may be useful. I used it here for example: <a href="https://github.com/yoricksijsling/PiWare-prefixes/blob/master/src/PiWarePrefixes/Patterns/Fan.lagda">https://github.com/yoricksijsling/PiWare-prefixes/blob/master/src/PiWarePrefixes/Patterns/Fan.lagda</a>.<div><br></div><div>The pattern i used is like this:<br><br>fan-impl : ∀ n → Circ n n<br>fan-impl n = ...<br><br>abstract<br>  fan : ∀ n → Circ n n<br>  fan n = fan-impl n<br><br>  reveal-fan : ∀ n → fan n ≡ fan-impl n<br>  reveal-fan n = refl<br><br>When the abstractly defined fan is used within a term it is treated similar to a postulated definition. The actual definition is only unfolded within the same abstract block. I can rewrite by reveal-fan to manually unfold the definition of fan, which is necessary for a few proofs. By using this pattern together with only a few proofs which used reveal-fan, i never had to see anything of the implementation. It also solved some performance issues in my case because the terms did not grow as large as before.</div><div><br></div><div>The DISPLAY pragma recognizes a pattern and displays it differently after the fact, while abstract definitions never get expanded at all.</div><div><br></div><div>Yorick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 8:37 AM, Wouter Swierstra <span dir="ltr">&lt;<a href="mailto:w.s.swierstra@uu.nl" target="_blank">w.s.swierstra@uu.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; Is there a way to tell Agda not to unfold these definitions in goals?<br>
<br>
</span>Have you tried using the abstract keyword? I seem to remember that it<br>
can be used prevent the definition being unfolded (but I can&#39;t seem to<br>
find any documentation).<br>
<span class="HOEnZb"><font color="#888888"><br>
  Wouter<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" rel="noreferrer" target="_blank">https://lists.chalmers.se/mailman/listinfo/agda</a><br>
</div></div></blockquote></div><br></div>