Skip to content

Commit

Permalink
talks/coqworkshop2010: Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelis committed Jul 9, 2010
1 parent 4bc8fc5 commit 51ebaff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions talks/coqworkshop2010/pres.tex
Expand Up @@ -145,7 +145,7 @@
Implementation in Coq is \emph{first class}:
\begin{itemize}
\item \emph{Classes}: records (``dictionaries'')
\item Class \emph{instances}: terms (of these record types)
\item Class \emph{instances}: constants of these record types
\item ... registered as hints for instance resolution.
\item Class \emph{constraints}: implicit parameters
\item ... resolved during unification using instance hints.
Expand Down Expand Up @@ -198,7 +198,7 @@
\begin{frame}[fragile]
\frametitle{Bundling is bad}

Fully {\color{blue}unbundled} (the other end of the spectrum):
Fully {\color{blue}bundled} (the other end of the spectrum):
\begin{lstlisting}
Record ReflexiveRelation: Type :=
{ A: Type; $\hspace{3mm}$R: relation A; $\hspace{3mm}$proof: Π a, R a a }.
Expand Down Expand Up @@ -444,8 +444,8 @@

More convenient: % and this is the one we actually use.
\begin{lstlisting}
Class Naturals
`{SemiRing A} `{NaturalsToSemiRing A}: Prop :=
Context `{SemiRing A}.
Class Naturals `{NaturalsToSemiRing A}: Prop :=
{ naturals_ring:> SemiRing A
; naturals_to_semiring_mor:> Π `{SemiRing B},
SemiRing_Morphism (naturals_to_semiring A B)
Expand Down

0 comments on commit 51ebaff

Please sign in to comment.