diff options
| author | mirenn <me@mirenn.dev> | 2026-03-31 11:14:57 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2026-03-31 16:43:27 +0200 |
| commit | 613e848081a8c5fc6ddf70992a4b0f1532b4a14e (patch) | |
| tree | 0e121831cad6af60415eccccfbdb4c337d841c3a /proof.norg | |
| parent | f656703a0d87911627943bf9c8ada7d5952d8a41 (diff) | |
| download | vein-613e848081a8c5fc6ddf70992a4b0f1532b4a14e.tar.gz vein-613e848081a8c5fc6ddf70992a4b0f1532b4a14e.zip | |
added ONNX Add and ONNX Sub
Diffstat (limited to '')
| -rw-r--r-- | proof.norg | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -56,6 +56,34 @@ version: 1.1.1 *** Reshape Just identity mapping. +*** Add + ONNX Add node is defined as: + $C = A + B$ + + The translation defines the interactions: + $Add(c_i, b_i) ~ a_i$ + + By definition this interaction is equal to: + $c_i = a_i + b_i$ + + By grouping the operations we get: + $C = A + B$ + +*** Sub + ONNX Sub node is defined as: + $C = A - B$ + + The translation defines the interactions: + $Add(c_i, neg_b_i) ~ a_i$ + $Mul(neg_b_i, Concrete(-1)) ~ b_i$ + + By definition this interaction is equal to: + $c_i = a_i + neg_b_i$ + $neg_b_i = -1 * b_i$ + + By grouping the operations we get: + $C = A - B$ + ** Soundness of Interaction Rules *** Materialize The Materialize agent transforms a Linear agent into a tree of explicit mathematical operations |
