Documentation

MIPRE.Foundations.ValueApprox.RawStrategy

Raw candidates and the certificate check #

The enumeration behind lem:value-lower-approx ranges over raw candidates (MIPRE.ValueApprox.RawStrategy): a common denominator k, two dimensions, the Gaussian-integer numerators of the measurement operators as lists of list matrices, and the numerators of the state. A raw candidate denotes an exact strategy (RawStrategy.interp), with entries in (1/k) ℤ[i]; the predicate Check g p q r says, in exact integer arithmetic, that the candidate is a valid strategy for the game described by g and that its value exceeds p / q:

All of it is primitive recursive (MIPRE.Foundations.ValueApprox.RawPrimrec), and MIPRE.Foundations.ValueApprox.RawSemantics proves that Check g p q r holds iff interp r is valid with value above p / q.

Matrices and vectors as lists #

@[reducible, inline]

A matrix as a list of rows; missing entries read as 0.

Equations
Instances For

    The (i, j) entry of a list matrix, 0 when missing.

    Equations
    Instances For

      The i-th entry of a list vector, 0 when missing.

      Equations
      Instances For
        def MIPRE.ValueApprox.gsum (n : ℕ) (f : ℕ → GInt) :

        ∑_{l < n} f l in GInt.

        Equations
        Instances For
          def MIPRE.ValueApprox.psum (n : ℕ) (f : ℕ → PInt) :

          ∑_{l < n} f l in PInt.

          Equations
          Instances For
            theorem MIPRE.ValueApprox.toC_gsum (n : ℕ) (f : ℕ → GInt) :
            (gsum n f).toC = ∑ i ∈ Finset.range n, (f i).toC
            theorem MIPRE.ValueApprox.toInt_psum (n : ℕ) (f : ℕ → PInt) :
            (psum n f).toInt = ∑ i ∈ Finset.range n, (f i).toInt

            Raw candidates #

            The raw data of a candidate: a common denominator k, the two dimensions, the numerators of the first and second players' operators (indexed by question, then answer), and the numerators of the state, in row-major order (i, j) ↦ i * dB + j.

            Instances For

              Raw candidates are tuples.

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

                The numerator matrix of the first player's operator for question x and answer a.

                Equations
                Instances For

                  The numerator matrix of the second player's operator for question y and answer b.

                  Equations
                  Instances For
                    noncomputable def MIPRE.ValueApprox.RawStrategy.interp (nX nA : ℕ) (r : RawStrategy) :
                    ExactStrategy (Fin (nX + 1)) (Fin (nX + 1)) (Fin (nA + 1)) (Fin (nA + 1))

                    The exact strategy denoted by raw data, for question alphabet Fin (nX + 1) and answer alphabet Fin (nA + 1): every numerator divided by k.

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

                      The certificate check #

                      The d × d matrix M is Hermitian.

                      Equations
                      Instances For

                        M² = k M, i.e. M / k is idempotent.

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

                          ∑_{a ≤ nA} Mₐ = k · 1.

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

                            (Mₐ / k)_{a ≤ nA} is a projective measurement on ℂ^d.

                            Equations
                            Instances For
                              def MIPRE.ValueApprox.quadRaw (A B : GMat) (dA dB : ℕ) (v : List GInt) :

                              The Born numerator ⟨v, (A ⊗ B) v⟩ for v of length dA * dB in row-major order.

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

                                The real part of ⟨v, v⟩ for v of length dA * dB in row-major order.

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

                                  The unnormalized question weight of the description on (x, y), with the point mass on (0, 0) when the total weight vanishes, as in GameData.toGame.

                                  Equations
                                  Instances For

                                    The normalizing weight: 1 when the total weight vanishes.

                                    Equations
                                    Instances For

                                      The decision predicate of the description, on naturals.

                                      Equations
                                      Instances For

                                        ∑_{x, y} wt(x, y) ∑_{a, b} D(x, y, a, b) · re ⟨v, (A^x_a ⊗ B^y_b) v⟩.

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

                                          p / q < value, cleared of denominators: p · W · k² · ⟨v, v⟩ < q · numer; for q = 0, where p / q = 0, the test is 0 < numer.

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

                                            The candidate r certifies p / q < val*(G_g): positive denominator, projective measurements on both sides, a nonzero state, and the value test.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              @[instance_reducible]
                                              instance MIPRE.ValueApprox.instDecidableIsSumRaw (Ms : List GMat) (nA d k : ℕ) :
                                              Decidable (IsSumRaw Ms nA d k)
                                              Equations
                                              @[instance_reducible]
                                              instance MIPRE.ValueApprox.instDecidableIsPVMRaw (Ms : List GMat) (nA d k : ℕ) :
                                              Decidable (IsPVMRaw Ms nA d k)
                                              Equations