memoOps function
lean memoOps + theorem equal_memo_suppresses_downstream /
changed_memo_publishes_then_invalidates: memo equality suppression. An
equal recompute is silent; a changed recompute publishes a DeltaOpSlotValue
then invalidates the downstream frontier.
Implementation
List<DeltaOp> memoOps(
NodeId node,
IpcValue oldValue,
IpcValue newValue,
List<NodeId> downstream,
) {
if (oldValue == newValue) return const <DeltaOp>[];
return <DeltaOp>[
DeltaOpSlotValue(node, newValue),
...downstreamInvalidations(downstream),
];
}