Hi all,<div><br></div><div>For what it’s worth, I cannot reproduce the bug using the following definition of the identity types:</div><div><br></div><div><div>data _≡_ {A : Set} : A → A → Set where</div><div> refl : {x : A} → x ≡ x</div>
<div><br></div>But I can reproduce it using the following definition (which is the one used in the standard library):</div><div><br></div><div><div>data _≡_ {A : Set} (x : A) : A → Set where</div><div> refl : x ≡ x</div>
</div><div><br></div><div><br></div><div>Guillaume</div><div><br><div class="gmail_quote">2012/6/18 Altenkirch Thorsten <span dir="ltr"><<a href="mailto:psztxa@exmail.nottingham.ac.uk" target="_blank">psztxa@exmail.nottingham.ac.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hi Nisse,</div><div><br></div><div>
I noticed that a weak version of K is provable even though the without-K flag is set:</div><div><br></div><div><div>{-# OPTIONS --without-K #-}</div><div>module K-bug where</div><div><br></div><div>open import Relation.Binary.PropositionalEquality</div>
<div><br></div><div><div>weakK : {A : Set}{a b : A}(p q : a ≡ b)(α β : p ≡ q) → α ≡ β</div><div>weakK refl .refl refl refl = refl</div></div></div><div><br></div><div>This would imply that all types have dimension of at most 3. I don't think it is provable with J.</div>
<div><br></div><div>A simpler term which is provable but shouldn't was found by my student Nicolai:</div><div><br></div><div><div>weak2 : {A : Set} {a : A} (α : refl {x = a} ≡ refl) → α ≡ refl</div><div>weak2 refl = refl</div>
</div><div><br></div><div>It seems to me that these patterns satisfy the specification of without-K (I.e. the condition is too weak).</div><div><br></div><div>Do you see a fix?</div><div><br></div><div>Cheers,</div><div>
Thorsten</div>
<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. Please do not use,
copy or disclose the information contained in this message or in any attachment.
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></div>
<br>_______________________________________________<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" target="_blank">https://lists.chalmers.se/mailman/listinfo/agda</a><br>
<br></blockquote></div><br></div>