summaryrefslogtreecommitdiff
path: root/chapters/core/soundness-proof/01-mathematical-definitions.tex
diff options
context:
space:
mode:
authorericmarin <maarin.eric@gmail.com>2026-06-07 18:43:30 +0200
committerericmarin <maarin.eric@gmail.com>2026-06-26 09:57:03 +0200
commit8eb2ce59ae307984a5b40a05cefec1f7e112fb02 (patch)
treea5883bf6a66f9cdb4e4ab71e49a6d1983a5faf1d /chapters/core/soundness-proof/01-mathematical-definitions.tex
parentc7e9856b051eda98ca2102549d4f03ad518d0d90 (diff)
downloadvein-8eb2ce59ae307984a5b40a05cefec1f7e112fb02.tar.gz
vein-8eb2ce59ae307984a5b40a05cefec1f7e112fb02.zip
core
Diffstat (limited to 'chapters/core/soundness-proof/01-mathematical-definitions.tex')
-rw-r--r--chapters/core/soundness-proof/01-mathematical-definitions.tex34
1 files changed, 33 insertions, 1 deletions
diff --git a/chapters/core/soundness-proof/01-mathematical-definitions.tex b/chapters/core/soundness-proof/01-mathematical-definitions.tex
index 3d8c031..19059ad 100644
--- a/chapters/core/soundness-proof/01-mathematical-definitions.tex
+++ b/chapters/core/soundness-proof/01-mathematical-definitions.tex
@@ -1,4 +1,36 @@
\subsection{Mathematical Definitions}
\label{sec:mathematical-definitions}
-% This subsection contains the mathematical definitions used in the proof
+We define the semantic function $\llbracket \cdot \rrbracket$. This function maps the state of an IN
+to its equivalent mathematical interpretation. Wires and attributes in IN are mapped respectively to
+free variables and real numbers in the mathematical interpretation.
+
+The agents are defined as:
+\begin{itemize}
+ \item $\llbracket \mathit{Linear}(x, q, r) \sim \mathit{out} \rrbracket \iff \mathit{out} = q \cdot x + r $\\
+ where $x, \mathit{out}$ are wires and $q, r \in \mathbb{R}$ are attributes.
+ \item $\llbracket \mathit{Concrete}(k) \sim \mathit{out} \rrbracket \iff \mathit{out} = k$\\
+ where $\mathit{out}$ is a wire and $k \in \mathbb{R}$ is an attribute.
+ \item $\llbracket \mathit{Add}(\mathit{out}, b) \sim a \rrbracket \iff \mathit{out} = a + b$\\
+ where $a, b, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{AddCheckLinear}(\mathit{out}, x, q, r) \sim b \rrbracket \iff \mathit{out} = q \cdot x + (r + b)$\\
+ where $x, b, \mathit{out}$ are wires and $q, r \in \mathbb{R}$ are attributes.
+ \item $\llbracket \mathit{AddCheckConcrete}(\mathit{out}, k) \sim b \rrbracket \iff \mathit{out} = k + b$\\
+ where $b, \mathit{out}$ are wires and $k \in \mathbb{R}$ is an attribute.
+ \item $\llbracket \mathit{Mul}(\mathit{out}, b) \sim a \rrbracket \iff \mathit{out} = a \cdot b$\\
+ where $a, b, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{MulCheckLinear}(\mathit{out}, x, q, r) \sim b \rrbracket \iff \mathit{out} = q \cdot b \cdot x + r \cdot b$\\
+ where $x, b, \mathit{out}$ are wires and $q, r \in \mathbb{R}$ are attributes.
+ \item $\llbracket \mathit{MulCheckConcrete}(\mathit{out}, k) \sim b \rrbracket \iff \mathit{out} = k \cdot b$\\
+ where $b, \mathit{out}$ are wires and $k \in \mathbb{R}$ is an attribute.
+ \item $\llbracket \mathit{ReLU}(\mathit{out}) \sim x \rrbracket \iff \mathit{out} = \max(0, x)$\\
+ where $x, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{Materialize}(\mathit{out}) \sim x \rrbracket \iff \mathit{out} = x$\\
+ where $x, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{TermAdd}(a, b) \sim \mathit{out} \rrbracket \Rightarrow \mathit{out} = a + b$\\
+ where $a, b, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{TermMul}(a, b) \sim \mathit{out} \rrbracket \Rightarrow \mathit{out} = a \cdot b$\\
+ where $a, b, \mathit{out}$ are wires.
+ \item $\llbracket \mathit{TermReLU}(x) \sim \mathit{out} \rrbracket \iff \mathit{out} = \max(0, x)$\\
+ where $x, \mathit{out}$ are wires.
+\end{itemize}