diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-01 16:20:32 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-04-01 16:20:32 +0200 |
| commit | d48822e9aa91903e77a1496ef559cd42d09ad6d0 (patch) | |
| tree | 00837d193ed4ffa54fb58eff08018e847983f9d0 | |
| parent | 81d4d604aa43660b732b3538734a52d509d7c5df (diff) | |
| download | vein-d48822e9aa91903e77a1496ef559cd42d09ad6d0.tar.gz vein-d48822e9aa91903e77a1496ef559cd42d09ad6d0.zip | |
fixed spacing in IF THEN ELSE
| -rw-r--r-- | proof.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -8,7 +8,7 @@ \sim&space;a\Rightarrow&space;out=a*b&space;) \sim&space;b\Rightarrow&space;out=q*b*x+r*b&space;) \sim&space;b\Rightarrow&space;out=k*b&space;) -\sim&space;x\Rightarrow&space;out=IF\;(x>0)\;THEN\;x\;ELSE\;0&space;) +\sim&space;x\Rightarrow&space;out=\text{IF}\;(x>0)\;\text{THEN}\;x\;\text{ELSE}\;0) \sim&space;x\Rightarrow&space;out=x&space;) ## Soundness of Translation @@ -20,7 +20,7 @@ The translation defines the interactions: ) By definition this interaction is equal to: -\;THEN\;x_i\;ELSE\;0&space;) +\;\text{THEN}\;x_i\;\text{ELSE}\;0) ### Gemm ONNX Gemm node is defined as: @@ -498,8 +498,8 @@ LHS: \sim&space;wire) \sim&space;wire)  - ->0\;THEN\;(q*x+r)\;ELSE\;0) + +>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0) RHS: \sim&space;wire) @@ -508,11 +508,11 @@ RHS:  +0) Because `TermReLU(x)` is defined as `z3.If(x > 0, x, 0)`: ->0\;THEN\;(q*x+r)\;ELSE\;0)+0) +>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0)+0) EQUIVALENCE: >0\;THEN\;(q*x+r)\;ELSE\;0=1*(IF\;(q*x+r)>0\;THEN\;(q*x+r)\;ELSE\;0)+0\Rightarrow&space;IF\;(q*x+r)>0\;THEN\;(q*x+r)\;ELSE\;0=IF\;(q*x+r)>0\;THEN\;(q*x+r)\;ELSE\;0) +IF (q*x + r) > 0 THEN (q*x + r) ELSE 0 = IF (q*x + r) > 0 THEN (q*x + r) ELSE 0](https://latex.codecogs.com/svg.image?\text{IF}\;(q*x+r)>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0=1*(\text{IF}\;(q*x+r)>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0)+0\Rightarrow\text{IF}\;(q*x+r)>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0=\text{IF}\;(q*x+r)>0\;\text{THEN}\;(q*x+r)\;\text{ELSE}\;0) #### Concrete >< ReLU @@ -522,8 +522,8 @@ LHS: \sim&space;wire) \sim&space;wire)  - - + + ##### Case 1: ) @@ -532,7 +532,7 @@ RHS:  EQUIVALENCE: - + ##### Case 2: ) @@ -541,7 +541,7 @@ RHS:  EQUIVALENCE: - + ## Soundness of Reduction Let  be the Interaction Net translated from a Neural Network . Let  be the state of the net |
