File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,15 @@ \section{Type inference by example}
169169\lstinline /3 /.
170170
171171\begin {coq-left}{name=exid}{width=8cm,title=Polymorphic identity}
172- Definition idfun A (a : A) : A := a.
173- Check (idfun nat 3).
174- Check (idfun _ 3).
172+ Definition id A (a : A) : A := a.
173+ Check (id nat 3).
174+ Check (id _ 3).
175175\end {coq-left}
176176\coqrun {name=r1}{exid}
177177\begin {coqout-right}{run=r1}{title=Response,width=4cm}
178178$ ~$
179- idfun nat 3 : nat
180- idfun nat 3 : nat
179+ id nat 3 : nat
180+ id nat 3 : nat
181181\end {coqout-right}
182182
183183In the expression \lstinline /(id nat 3) / no subterm was omitted,
@@ -211,7 +211,7 @@ \section{Type inference by example}
211211refer to~\cite [``Extensions of Gallina'']{Coq:manual }.
212212
213213\begin {coq-left}{name=impl-arg-id}{title=Setting implicit arguments,width=6cm}
214- Arguments idfun {A} a.
214+ Arguments id {A} a.
215215Check (id 3).
216216Check (@id nat 3).
217217\end {coq-left}
You can’t perform that action at this time.
0 commit comments