NLA-lib Explorer

Test case: a noisy product by a matrix (hidden randomness)

Library · Source module

Test case: a noisy product by a matrix (hidden randomness)

At the level of the algorithm the noisy product is nmv [n] [x] [y]: one input block, one output block, no random operand. Its contract (NLAlib.Ops.Examples.IsNoisy, with the mathematics NLAlib.Ops.Examples.IsNoisyMv) is conditional on the history: the output decodes to N v w, where v is the decoded input and w is a window of the tape that the operation reads for itself; given v, over a fresh window, N v w has the law of A v + σ ‖v‖ g.

The algorithm NLAlib.Ops.Examples.npow is the noisy power iteration, 2 k products that alternate between two blocks. Each input is the previous output, so it depends on all the earlier noise.

Main results

* NLAlib.Ops.Examples.runs_npow: the run, for every interpretation satisfying the contract and every tape: 2 k calls, the workspace of one call, the result is noisyIter of the tape. * NLAlib.Ops.Examples.runsLaw_npow: the abstract theorem, for every law of the tape: 𝔼 x = A^(2k) x₀ and 𝔼 ‖x‖² ≤ (a + n σ²)^(2k) ‖x₀‖².

Declarations