<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">I can switch off positivity checking locally by saying<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{-# NO_POSITIVITY_CHECK #-}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">But I can’t say<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{-# TYPE-IN-TYPE #-}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data Prop : Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">T : Prop → Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data Prop where<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  pi : (A : Set)(b : A → Prop) → Prop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">T (pi A b) = (x : A) → T (b x)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Or is there a difference syntax? This would be useful for a simple-minded encoding of the calculus of constructions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thorsten<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">P.S. I know I can avoid this by adding another level:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data Prop : Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">T : Prop → Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data U : Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">El : U → Set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">{-# NO_POSITIVITY_CHECK #-}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data U where<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  prop : U<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  pi : (a : U)(b : El a → U) → U<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  emb : Prop → U<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">El prop = Prop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">El (pi a b) = (x : El a) → El (b x)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">El (emb p) = T p<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">data Prop where<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  pi : (a : U)(b : El a → Prop) → Prop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">T (pi a b) = (x : El a) → T (b x)<o:p></o:p></span></p>
</div>
<PRE>

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 contact the sender and delete the email and
attachment. 

Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. Email
communications with the University of Nottingham may be monitored 
where permitted by law.



</PRE></body>
</html>