Documentation

MIPRE.Foundations.Introspection.HonestMagicSquare

The Magic Square extension of an arbitrary anticommuting pair #

This is the concrete operator construction needed by the honest Pauli test. It adds one qubit and retains the original observables at cells zero and four. The row and column identities use the actual Magic Square layout and parity. No game completeness statement is assumed.

The actual Magic Square cell, with its fixed nine-cell carrier exposed.

Equations
Instances For
    theorem MIPRE.Introspection.HonestMagicSquare.tensor_commute {I : Type u_1} [Fintype I] {A B : Matrix I I ℂ} {C D : Matrix (Fin 2) (Fin 2) ℂ} (hAB : Commute A B) (hCD : Commute C D) :
    Commute (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) A C) (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) B D)
    theorem MIPRE.Introspection.HonestMagicSquare.tensor_anticommute {I : Type u_1} [Fintype I] {A B : Matrix I I ℂ} {C D : Matrix (Fin 2) (Fin 2) ℂ} (hAB : A * B = -(B * A)) (hCD : C * D = -(D * C)) :
    Commute (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) A C) (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) B D)
    @[simp]
    theorem MIPRE.Introspection.HonestMagicSquare.grid_zero {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) :
    grid A B 0 = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) A 1
    @[simp]
    theorem MIPRE.Introspection.HonestMagicSquare.grid_four {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) :
    grid A B 4 = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) B 1
    theorem MIPRE.Introspection.HonestMagicSquare.grid_isObservable {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (j : Fin 9) :
    theorem MIPRE.Introspection.HonestMagicSquare.first_second_commute {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) :
    Commute (grid A B (cellIndex c 0)) (grid A B (cellIndex c 1))

    The first two observables in each actual row or column commute.

    The last cell is the signed product of the first two cells.

    theorem MIPRE.Introspection.HonestMagicSquare.cells_commute {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (s t : Fin 3) :
    Commute (grid A B (cellIndex c s)) (grid A B (cellIndex c t))
    theorem MIPRE.Introspection.HonestMagicSquare.row_product {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) :
    grid A B (cellIndex c 0) * grid A B (cellIndex c 1) * grid A B (cellIndex c 2) = (-1) ^ (LCS.MagicSquare.game.b c).val • 1

    Every row has even parity and the last column has odd parity.

    noncomputable def MIPRE.Introspection.HonestMagicSquare.variableOp {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) (j : Fin 9) (b : ZMod 2) :
    Matrix (I × Fin 2) (I × Fin 2) ℂ

    The binary measurement of an arbitrary cell.

    Equations
    Instances For
      theorem MIPRE.Introspection.HonestMagicSquare.variableOp_isPVM {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (j : Fin 9) :
      noncomputable def MIPRE.Introspection.HonestMagicSquare.constraintOp {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) :
      Matrix (I × Fin 2) (I × Fin 2) ℂ

      The joint measurement of the three cells of a row or column.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MIPRE.Introspection.HonestMagicSquare.variable_constraint_commute {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) (a : Fin 3 → ZMod 2) (b : ZMod 2) :
          Commute (variableOp A B (cellIndex c j) b) (constraintOp A B c a)
          theorem MIPRE.Introspection.HonestMagicSquare.constraint_eigen {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) (j : Fin 3) :
          grid A B (cellIndex c j) * constraintOp A B c a = (-1) ^ (a j).val • constraintOp A B c a
          theorem MIPRE.Introspection.HonestMagicSquare.constraint_wrong_parity {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) (ha : a 0 + a 1 + a 2 ≠ LCS.MagicSquare.game.b c) :
          constraintOp A B c a = 0

          A parity-violating constraint answer has zero effect.

          theorem MIPRE.Introspection.HonestMagicSquare.constraint_disagreement {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) (j : Fin 3) (b : ZMod 2) (hab : a j ≠ b) :
          constraintOp A B c a * variableOp A B (cellIndex c j) b = 0

          A disagreement on an incident cell has zero joint effect.

          theorem MIPRE.Introspection.HonestMagicSquare.constraint_reject_zero {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hA : LCS.IsObservable A) (hB : LCS.IsObservable B) (hAB : A * B = -(B * A)) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) (j : Fin 3) (b : ZMod 2) (hr : ¬(a 0 + a 1 + a 2 = LCS.MagicSquare.game.b c ∧ a j = b)) :
          constraintOp A B c a * variableOp A B (cellIndex c j) b = 0

          Both parts of the actual Magic Square incidence check are enforced.

          theorem MIPRE.Introspection.HonestMagicSquare.variableOp_zero {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) (b : ZMod 2) :
          variableOp A B 0 b = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (LCS.observableToProjector A b) 1

          The first distinguished cell retains the original binary measurement.

          theorem MIPRE.Introspection.HonestMagicSquare.variableOp_four {I : Type u_1} [Fintype I] [DecidableEq I] (A B : Matrix I I ℂ) (b : ZMod 2) :
          variableOp A B 4 b = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (LCS.observableToProjector B b) 1

          The second distinguished cell retains the original binary measurement.

          theorem MIPRE.Introspection.HonestMagicSquare.grid_transpose {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (hA : A.transpose = A) (hB : B.transpose = B) (j : Fin 9) :
          (grid A B j).transpose = grid A B j

          Symmetric input observables give symmetric operators throughout the extension.

          theorem MIPRE.Introspection.HonestMagicSquare.variableOp_transpose {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (hA : A.transpose = A) (hB : B.transpose = B) (j : Fin 9) (b : ZMod 2) :
          (variableOp A B j b).transpose = variableOp A B j b
          theorem MIPRE.Introspection.HonestMagicSquare.constraintOp_transpose {I : Type u_1} [Fintype I] [DecidableEq I] {A B : Matrix I I ℂ} (hAB : A * B = -(B * A)) (hA : A.transpose = A) (hB : B.transpose = B) (c : Fin LCS.MagicSquare.layout.r) (a : Fin 3 → ZMod 2) :