<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Proving Things on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/dependent-types/part-2/</link><description>Recent content in Proving Things on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/dependent-types/part-2/index.xml" rel="self" type="application/rss+xml"/><item><title>Equality: definitional and propositional</title><link>https://massimo-nocentini.github.io/book/dependent-types/part-2/04-equality/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/dependent-types/part-2/04-equality/</guid><description>&lt;p&gt;Pie has two notions of sameness, and most of the difficulty of writing proofs comes from keeping them apart.&#10;&lt;em&gt;Definitional equality&lt;/em&gt;, written &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;≡&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;a \equiv b&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; is a judgment: the checker decides it by computing both sides to normal form and comparing the results (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-3/08-nbe/"&gt;Chapter&amp;nbsp;8&lt;/a&gt;).&lt;label for="sn-ce87c1-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-ce87c1-1" class="margin-toggle"/&gt;&lt;span class="sidenote"&gt;The literature also calls it &lt;em&gt;judgmental&lt;/em&gt; equality. The two words mean the same thing; we use “definitional” throughout.&lt;/span&gt;&#10;Nobody writes a proof of &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;≡&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;a \equiv b&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt; either the machine sees it or it does not.&#10;&lt;em&gt;Propositional equality&lt;/em&gt; is the type &lt;code&gt;(= A from to)&lt;/code&gt;. Its inhabitants are proofs, ordinary values that other programs take as arguments, return and compute with.&#10;This section shows how &lt;code&gt;same&lt;/code&gt; turns definitional equality into a proof, what the machine can and cannot see, and how the eliminators &lt;code&gt;cong&lt;/code&gt;, &lt;code&gt;replace&lt;/code&gt;, &lt;code&gt;symm&lt;/code&gt;, &lt;code&gt;trans&lt;/code&gt; and &lt;code&gt;ind-=&lt;/code&gt; are checked and computed.&#10;Several programs use addition, defined as in &lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-1/02-programs/#sub:programs-nat-elims"&gt;Section&amp;nbsp;2.3&lt;/a&gt;; we show it once and omit it afterwards, together with lemmas proved earlier in the section:&lt;/p&gt;</description></item><item><title>Propositions as types, Absurd, Trivial and the universe</title><link>https://massimo-nocentini.github.io/book/dependent-types/part-2/05-logic/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/dependent-types/part-2/05-logic/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-2/04-equality/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; treated &lt;code&gt;=&lt;/code&gt; as a type whose elements are proofs.&#10;This section extends that reading to all of Pie&amp;rsquo;s types, which is the&#10;Curry–Howard correspondence.&#10;It then looks at &lt;code&gt;Absurd&lt;/code&gt;, which has no elements, and &lt;code&gt;Trivial&lt;/code&gt;, which&#10;has exactly one, and at their unusual equality rules.&#10;It ends with the universe &lt;code&gt;U&lt;/code&gt; and with what Pie does to keep &lt;code&gt;U&lt;/code&gt; out of&#10;itself.&lt;/p&gt;&#10;&lt;p&gt;A type can be read as a proposition, and an element of the type as a proof of&#10;it&lt;label for="sn-15b2e1-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-15b2e1-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="howard1980"&gt;W. A. Howard. The Formulae-as-Types Notion of Construction. In J. P. Seldin and J. R. Hindley, editors, &lt;cite&gt;To H. B. Curry: Essays on Combinatory Logic, Lambda Calculus and Formalism&lt;/cite&gt;, pages 479–490. Academic Press, London, 1980&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;</description></item><item><title>TODO-driven development</title><link>https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/</guid><description>&lt;p&gt;The Little Typer builds programs and proofs by leaving empty boxes and&#10;filling them in one at a time&lt;label for="sn-59b81b-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-59b81b-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="littletyper"&gt;Daniel P. Friedman and David Thrane Christiansen. &lt;cite&gt;The Little Typer&lt;/cite&gt;. MIT Press, Cambridge, MA, 2018&lt;/span&gt;&lt;/span&gt;. In Pie the empty box&#10;is the expression &lt;code&gt;TODO&lt;/code&gt;. A &lt;code&gt;TODO&lt;/code&gt; checks against any type, so a&#10;program with holes can still be checked, run and printed, and for each hole&#10;Pie reports the type it must have and the variables in scope. This section uses those reports to develop&#10;a proof (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/#sub:todo-workflow"&gt;Section&amp;nbsp;6.1&lt;/a&gt;), then shows how holes are implemented&#10;(&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/#sub:todo-impl"&gt;Section&amp;nbsp;6.2&lt;/a&gt;), how they behave during computation&#10;(&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/#sub:todo-neutral"&gt;Section&amp;nbsp;6.3&lt;/a&gt;), and how they compare with the holes of Agda&#10;(&lt;a class="xref" href="https://massimo-nocentini.github.io/book/dependent-types/part-2/06-todo/#sub:todo-compare"&gt;Section&amp;nbsp;6.4&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>