Introspection contributes exactly 2ℓ + 6 vertices
ProvedMIPRE.Introspection.QuestionType.cardA statement of the module MIPRE.Foundations.Introspection.Types of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). The introspection question types. The source's type set consists of the Pauli types and two copies of Introspect, Sample, Read, and Hide₁, ..., Hideℓ. The Pauli type is a parameter so the foundational construction can be instantiated with the concrete Pauli test without importing a Background module.
Introspection contributes exactly 2ℓ + 6 vertices.
Formal statement. In Lean, with the scope shown:
open MIPRE
open MIPRE.Introspection
open MIPRE.Introspection.QuestionType
variable {PauliType : Type*} {ℓ : ℕ}
theorem MIPRE.Introspection.QuestionType.card [Fintype PauliType] (ℓ : ℕ) :
Fintype.card (QuestionType PauliType ℓ) = Fintype.card PauliType + 2 * ℓ + 6
Formalization Note MIPRE.Introspection.QuestionType.card is declared in MIPRE/Foundations/Introspection/Types.lean, lines 100–104. The binders, hypotheses and conclusion are exactly those of the Lean statement above; the uploaded statement elaborates to the same type as the declaration in the repository. The definitions it mentions are those of the published definition bundles of the module's import closure.
import Mathlib.Data.Fintype.Option
import Mathlib.Data.Fintype.Prod
import Mathlib.Data.Fintype.Sum
import Mathlib.Data.List.Basic
import Mathlib.Data.Nat.Bits
import Mathlib.Data.Nat.Notation
import Mathlib.Data.Nat.Size
import Mathlib.Tactic.DeriveFintype
import Definitions.Def_MIPRE_Foundations_Cost_Basic_B
import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B
import Definitions.Def_MIPRE_Foundations_Introspection_Types
open MIPRE
open MIPRE.Introspection
open MIPRE.Introspection.QuestionType
variable {PauliType : Type*} {ℓ : ℕ}theorem MIPRE.Introspection.QuestionType.card [Fintype PauliType] (ℓ : ℕ) :
Fintype.card (QuestionType PauliType ℓ) = Fintype.card PauliType + 2 * ℓ + 6 := by sorry