pub enum RCell {
Sum {
inputs: Vec<RSrc>,
weights: Vec<f64>,
},
Mul {
a: RSrc,
b: RSrc,
},
Gain {
a: RSrc,
k: f64,
},
Select {
c: RSrc,
t: RSrc,
f: RSrc,
},
Exp {
a: RSrc,
},
Log {
a: RSrc,
},
Tanh {
a: RSrc,
},
Sqrt {
a: RSrc,
},
Div {
a: RSrc,
b: RSrc,
},
}Expand description
The neutral cell vocabulary the checker replays. Mirrors (but does not import) the analog lane’s tile set; the producer converts its netlist into this form to be judged.
Variants§
Sum
v = Σ wᵢ·xᵢ — weighted Kirchhoff sum.
Mul
v = a·b — four-quadrant multiplier.
Gain
v = k·a — programmed constant gain.
Select
v = if c < 0 then t else f — comparator-driven switch. The replay rule is the
decided branch when the condition’s box clears zero, else the branch HULL (the
comparator’s ambiguity is an accuracy question for the budget, not a range one).
Exp
v = eˣ — monotone image box (translinear).
Log
v = ln x — monotone; a box touching the nonpositive axis is REJECTED, fail-closed.
Tanh
v = tanh x — monotone.
Sqrt
v = √x — monotone; a box touching zero is REJECTED (unbounded error slope).
Div
v = a / b — the divisor’s box must CLEAR zero or the claim is rejected.