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
- NLAlib.Ops.Examples.IsNoisy
- NLAlib.Ops.Examples.NOp
- NLAlib.Ops.Examples.NOp.ofNat
- NLAlib.Ops.Examples.NOp.ofNat_ctorIdx
- NLAlib.Ops.Examples.NpowOperands
- NLAlib.Ops.Examples.NpowPost
- NLAlib.Ops.Examples.nmvRel
- NLAlib.Ops.Examples.nmvRel_dom
- NLAlib.Ops.Examples.nmvRel_inLens
- NLAlib.Ops.Examples.nmvRel_nd
- NLAlib.Ops.Examples.nmvRel_outLens
- NLAlib.Ops.Examples.nmvRel_rel
- NLAlib.Ops.Examples.nmvRel_stream
- NLAlib.Ops.Examples.nmvRel_win
- NLAlib.Ops.Examples.noisyIter_congr
- NLAlib.Ops.Examples.npow
- NLAlib.Ops.Examples.npowCount
- NLAlib.Ops.Examples.npowRel
- NLAlib.Ops.Examples.npowRel_dom
- NLAlib.Ops.Examples.npowRel_inLens
- NLAlib.Ops.Examples.npowRel_nd
- NLAlib.Ops.Examples.npowRel_outLens
- NLAlib.Ops.Examples.npowRel_rel
- NLAlib.Ops.Examples.npowRel_stream
- NLAlib.Ops.Examples.npowRel_win
- NLAlib.Ops.Examples.npowRoutine
- NLAlib.Ops.Examples.npowRoutine_implements
- NLAlib.Ops.Examples.npowRoutine_meets
- NLAlib.Ops.Examples.npow_satisfies
- NLAlib.Ops.Examples.npow_wp
- NLAlib.Ops.Examples.runsLaw_npow
- NLAlib.Ops.Examples.staticCost_npow
- NLAlib.Ops.Examples.staticPeak_npow_le
- NLAlib.Ops.Examples.vec_window_eq_windowFn