summaryrefslogtreecommitdiff
path: root/test/examples/proofdefinefunction.tex
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/proofdefinefunction.tex')
-rw-r--r--test/examples/proofdefinefunction.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/examples/proofdefinefunction.tex b/test/examples/proofdefinefunction.tex
new file mode 100644
index 0000000..ac17d0b
--- /dev/null
+++ b/test/examples/proofdefinefunction.tex
@@ -0,0 +1,27 @@
+% The builtin "-(-)" notation desugars to "\apply{-}{-}".
+% This is just a dummy definition.
+\begin{definition}\label{apply}
+ $\apply{f}{x} = x$.
+\end{definition}
+
+% Dummy definition for the domain
+\begin{definition}\label{dom}
+ $\dom{f} = f$.
+\end{definition}
+
+% Dummy definition for right-uniqueness
+\begin{definition}\label{rightunique}
+ $f$ is right-unique iff $f=f$.
+\end{definition}
+
+% Dummy definition for relations
+\begin{definition}\label{relation}
+ $f$ is a relation iff $f=f$.
+\end{definition}
+
+\begin{proposition}\label{definefunctiontest}
+ If $x\in y$, then $x\in y$.
+\end{proposition}
+\begin{proof}
+ Let $f(z) = z$ for $z\in x$.
+\end{proof}