Documentation

MIPRE.Background.QLD.CLExplicitSeed

Pauli sampling with the explicit binary seed enumeration #

The sampler retains its canonical binary seed and uses the efficient high-bit selector. Only the mathematical decoder permutes that seed to the enumeration used in qldGame. A permutation of the common random content proves equality with the existing QLD question law, including the line seeds in the questions.

noncomputable def MIPRE.QLD.PauliCL.ExplicitSeed.presentation {F : Type u_1} [Field F] {m : ℕ} (χ : F → Fin m) (t : Ty) :
CL.CLFun F (Coord m) 3

The concrete three-stage presentation with a specified seed selector.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Permute just the shared seed; all other random content stays fixed.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MIPRE.QLD.PauliCL.ExplicitSeed.decode_presentation {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m : ℕ} [NeZero m] (hm : m ∣ Fintype.card F) (χ : F → Fin m) (π : F ≃ F) (hχ : ∀ (s : F), LIDT.CL.chi hm (π s) = χ s) (t : Ty) (c : Content F m) :

      Literal equality of the full decoded questions, not merely equality of the chosen direction index.

      noncomputable def MIPRE.QLD.PauliCL.ExplicitSeed.binaryPresentation {F : Type u_1} [Field F] {m : ℕ} [Algebra (ZMod 2) F] {t : ℕ} (χ : F → Fin m) (b : Module.Basis (Fin t) (ZMod 2) F) (T : Ty) :
      CL.CLFun (ZMod 2) (Fin ((3 * m + 3) * t)) 3
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MIPRE.QLD.PauliCL.ExplicitSeed.binaryPresentation_exactlyOn {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m : ℕ} [NeZero m] [Algebra (ZMod 2) F] {t : ℕ} (χ : F → Fin m) (b : Module.Basis (Fin t) (ZMod 2) F) (T : Ty) :
        theorem MIPRE.QLD.PauliCL.ExplicitSeed.binaryPresentation_eval {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m : ℕ} [NeZero m] [Algebra (ZMod 2) F] {t : ℕ} (χ : F → Fin m) (b : Module.Basis (Fin t) (ZMod 2) F) (T : Ty) (x : Coord m → F) :
        noncomputable def MIPRE.QLD.PauliCL.ExplicitSeed.binaryDecode {F : Type u_1} [Field F] {m : ℕ} [Algebra (ZMod 2) F] {t : ℕ} (π : F ≃ F) (b : Module.Basis (Fin t) (ZMod 2) F) (T : Ty) (x : Fin ((3 * m + 3) * t) → ZMod 2) :
        Equations
        Instances For
          theorem MIPRE.QLD.PauliCL.ExplicitSeed.binaryDecode_presentation {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m : ℕ} [NeZero m] [Algebra (ZMod 2) F] {t : ℕ} (hm : m ∣ Fintype.card F) (χ : F → Fin m) (π : F ≃ F) (hχ : ∀ (s : F), LIDT.CL.chi hm (π s) = χ s) (b : Module.Basis (Fin t) (ZMod 2) F) (T : Ty) (c : Content F m) :
          noncomputable def MIPRE.QLD.PauliCL.ExplicitSeed.binarySamplePermutation {F : Type u_1} [Field F] {m : ℕ} [Algebra (ZMod 2) F] {t : ℕ} (π : F ≃ F) (b : Module.Basis (Fin t) (ZMod 2) F) :
          Sample F m ≃ TyEdge × (Fin ((3 * m + 3) * t) → ZMod 2)
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MIPRE.QLD.PauliCL.ExplicitSeed.qldGame_mu_binaryPresentation {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m : ℕ} [NeZero m] [Algebra (ZMod 2) F] {t d : ℕ} (hm : m ∣ Fintype.card F) (χ : F → Fin m) (π : F ≃ F) (hχ : ∀ (s : F), LIDT.CL.chi hm (π s) = χ s) (b : Module.Basis (Fin t) (ZMod 2) F) (x y : Question F m) :
            (qldGame hm).μ x y = SampledGame.dist (fun (p : TyEdge × (Fin ((3 * m + 3) * t) → ZMod 2)) => binaryDecode π b (↑p.1).1 ((binaryPresentation χ b (↑p.1).1).eval p.2)) (fun (p : TyEdge × (Fin ((3 * m + 3) * t) → ZMod 2)) => binaryDecode π b (↑p.1).2 ((binaryPresentation χ b (↑p.1).2).eval p.2)) x y

            The concrete permutation from canonical bit rank to the legacy numbering.

            Equations
            Instances For

              The arbitrary legacy enumeration appears only in the seed relabelling. The branch chosen by the actual presentation is computed by selectorProg.

              theorem MIPRE.QLD.PauliCL.ExplicitSeed.qldGame_mu_selector_binary {k j : ℕ} (E : SAT.BinField k) (hj : j ≤ k) [Algebra (ZMod 2) E.carrier] {t d : ℕ} (b : Module.Basis (Fin t) (ZMod 2) E.carrier) (x y : Question E.carrier (2 ^ j)) :
              (qldGame ⋯).μ x y = SampledGame.dist (fun (p : TyEdge × (Fin ((3 * 2 ^ j + 3) * t) → ZMod 2)) => binaryDecode (seedPermutation E) b (↑p.1).1 ((binaryPresentation (Introspection.SeedProgram.selector E j hj) b (↑p.1).1).eval p.2)) (fun (p : TyEdge × (Fin ((3 * 2 ^ j + 3) * t) → ZMod 2)) => binaryDecode (seedPermutation E) b (↑p.1).2 ((binaryPresentation (Introspection.SeedProgram.selector E j hj) b (↑p.1).2).eval p.2)) x y

              The instantiated explicit sampler has the actual legacy QLD law. The selector correspondence has been proved, rather than supplied as a premise.