<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div>Not long ago Maxime Denes reported a problem with Coq which lead to it being incompatible with univalence. Also it meant that there are programs definable by structural recursion which are not derivable using eliminators. This was also applicable to Agda even with the without-K flag turned on. One version of the bug in Agda (by Conor) is below.</div><div><br></div><div>My question is: is this bug fixed in the current versions of Agda and Coq?</div><div><br></div><div>Next question: how can we make sure that there are no other issues of this kind?</div><div><br></div><div>Thorsten</div><div><br></div><div><br></div><div><div style="font-family: Consolas; font-size: medium;">{-# OPTIONS --without-K #-}</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">module BadWithoutK where</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">data Zero : Set where</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">data WOne : Set where</div><div style="font-family: Consolas; font-size: medium;">&nbsp;&nbsp;wrap : (Zero -&gt; WOne) -&gt; WOne</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">data _&lt;-&gt;_ (X : Set) : Set -&gt; Set where</div><div style="font-family: Consolas; font-size: medium;">&nbsp;&nbsp;Refl : X &lt;-&gt; X</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">postulate</div><div style="font-family: Consolas; font-size: medium;">&nbsp;&nbsp;myIso : WOne &lt;-&gt; (Zero -&gt; WOne)</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">moo : WOne -&gt; Zero</div><div style="font-family: Consolas; font-size: medium;">noo : (X : Set) -&gt; (WOne &lt;-&gt; X) -&gt; X -&gt; Zero</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">moo (wrap f) = noo (Zero -&gt; WOne) myIso f</div><div style="font-family: Consolas; font-size: medium;">noo .WOne Refl x = moo x</div><div style="font-family: Consolas; font-size: medium;"><br></div><div style="font-family: Consolas; font-size: medium;">bad : Zero</div><div style="font-family: Consolas; font-size: medium;">bad = moo (wrap \ ())</div></div><div><br></div><br>
<br><p>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.&nbsp;&nbsp; Please do not use, copy or disclose the information contained in this message or in any attachment.&nbsp; Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.</p><p>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.</p>
<br></body></html>