curry-howard
Slides of a (very) informal lecture of mine on the Curry-Howard correspondence
- Commit
- cbc4358fe1b152aac415886933cdcdb6a8f16c4b
- Parent
- f8e84114c03abad5a851e93458687d8583cae978
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Changed the notation for propositions
Also added a link to a talk on the idea of propositions as types
Also added decorative formulas to the last slide
Diffstat
4 files changed, 43 insertions, 27 deletions
diff --git a/main.tex b/main.tex
@@ -203,9 +203,9 @@
\begin{frame}{A Correspondência de Curry-Howard}
\begin{center}
\begin{tabular}{rcl}
- Provar que vale \(A\)
+ Provar que vale \(P\)
& \(\leftrightsquigarrow\)
- & Encontrar \(a \in \{ \text{provas de}\ A\}\)
+ & Encontrar \(h \in \{ \text{provas de}\ P\}\)
\end{tabular}
\end{center}
@@ -215,18 +215,18 @@
\item Proposições como tipos
\begin{center}
\begin{tabular}{rcl}
- \(A\)
+ \(P\)
& \(\leftrightsquigarrow\)
- & \(\{\text{provas de}\ A \}\) \\
- \(A\ \text{e}\ B\)
+ & \(\{\text{provas de}\ P \}\) \\
+ \(P\ \text{e}\ Q\)
& \(\leftrightsquigarrow\)
- & \(\{\text{provas de}\ A \} \times \{\text{provas de}\ B \}\) \\
- \(A\ \text{ou}\ B\)
+ & \(\{\text{provas de}\ P \} \times \{\text{provas de}\ Q \}\) \\
+ \(P\ \text{ou}\ Q\)
& \(\leftrightsquigarrow\)
- & \(\{\text{provas de}\ A \} \cup \{\text{provas de}\ B \}\) \\
- \(A \implies B\)
+ & \(\{\text{provas de}\ P \} \cup \{\text{provas de}\ Q \}\) \\
+ \(P \implies Q\)
& \(\leftrightsquigarrow\)
- & \(\{\text{provas de}\ A \} \to \{\text{provas de}\ B \}\) \\
+ & \(\{\text{provas de}\ P \} \to \{\text{provas de}\ Q \}\) \\
\end{tabular}
\end{center}
@@ -255,12 +255,15 @@
\begin{center}
\begin{tabular}{rcl}
- Provar que vale \(A\)
+ Provar que vale \(P\)
& \(\leftrightsquigarrow\)
- & Construir \(a : \{ \text{provas de}\ A\}\) \\
+ & Construir \(h : \{ \text{provas de}\ P\}\) \\
Checar a prova
& \(\leftrightsquigarrow\)
- & Checar os tipos
+ & Checar os tipos \\
+ Inconsistência na prova
+ & \(\leftrightsquigarrow\)
+ & Tipos não batem
\end{tabular}
\end{center}
\end{frame}
@@ -317,7 +320,7 @@
\end{itemize}
\end{frame}
-\begin{frame}{Provadores de Teoremas}
+\begin{frame}{Proof Checkers}
\begin{itemize}
\item Coq (\url{https://coq.inria.fr/})
@@ -442,9 +445,22 @@
{Advancing mathematics by guiding human intuition with AI}
\item
+ \href{https://www.youtube.com/watch?v=IOiZatlZtGU}
+ {Propositions as Types}
+
+ \item
\href{https://www.hedonisticlearning.com/posts/understanding-typing-judgments.html}
{Understanding typing judgments}
\end{enumerate}
+ \begin{align*}
+ \frac{\Gamma \vdash_\Sigma a : A}
+ {\Gamma \vdash_\Sigma \operatorname{inl} a : A \vee B}
+ \rightarrow D_1
+ & &
+ \frac{\Gamma \vdash_\Sigma b : B}
+ {\Gamma \vdash_\Sigma \operatorname{inr} b : A \vee B}
+ \rightarrow D_2
+ \end{align*}
\end{frame}
\end{document}