NLA-lib Explorer

NLAlib.SpectralBisection.normalSample_eighIdealComplex

Library · theorem

The ideal complex Gaussian sampler is exactly the two actual scalar products performed on stored Gaussian words at the node's component addresses. The square-root word belongs to the same scalar machine. No arbitrary normal sampler is assumed to implement these operations.

NLAlib.SpectralBisection.normalSample_eighIdealComplex {K : Type} (M : Ops.Machine K)
  (roundGaussian : ℝ → K) (ideal : Ops.Tape ℝ) (stored : Ops.Tape K)
  (hround : ∀ (p : ℕ), stored p Ops.Stream.gauss = roundGaussian (ideal p Ops.Stream.gauss))
  (base n d lo j side i : ℕ) (hcol : lo + j < n) (hside : side < 2) (hrow : i < n) :
  M.normalSample roundGaussian
      (eighIdealComplex (SpectralBisection.idealTape n (ideal.shift base))
        (2 * (n * n) * d + n * (2 * (lo + j) + side) + i)) =
    M.normalWords
      (stored
        (base +
          (d * SpectralBisection.levelSampleSize n + n +
            SpectralBisection.gaussianWord n lo j side i 0))
        Ops.Stream.gauss)
      (stored
        (base +
          (d * SpectralBisection.levelSampleSize n + n +
            SpectralBisection.gaussianWord n lo j side i 1))
        Ops.Stream.gauss)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.StoredSamples.