Documentation

LeanPool.InflationTermination.TriangleInflation.Defs

Inflation for the classical triangle: definitions #

Definitions for the manuscript Inflation for the Classical Triangle: Nontermination and Quantitative Complexity (papers/inflation-nontermination). This file carries definitions only; the statements live in Finner.lean, Defect.lean, Main.lean, Fan.lean, Exponent.lean and Rate.lean.

Representational decisions #

Laws as weight functions #

def TriangleInflation.IsLaw {α : Type u_1} [Fintype α] (w : α → ℝ) :

A probability weight function on a finite type: nonnegative and summing to one.

Equations
Instances For
    def TriangleInflation.pushforward {α : Type u_1} {β : Type u_2} [Fintype α] [DecidableEq β] (w : α → ℝ) (F : α → β) :
    β → ℝ

    Pushforward of a weight function along a map of finite types.

    Equations
    Instances For
      def TriangleInflation.prodLaw {ι : Type u_1} [Fintype ι] (w : ι → Bool → ℝ) :
      (ι → Bool) → ℝ

      The product of independent per-coordinate weight functions on ι → Bool.

      Equations
      Instances For

        Three-bit laws #

        @[reducible, inline]

        The outcome type of the triangle: the three observed bits (A, B, C). false is the paper's outcome 0.

        Equations
        Instances For

          The three observed parties of the triangle.

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

              P(000): the all-zero atom.

              Equations
              Instances For

                P_A(0): the zero marginal of the first bit.

                Equations
                Instances For

                  P_B(0): the zero marginal of the second bit.

                  Equations
                  Instances For

                    P_C(0): the zero marginal of the third bit.

                    Equations
                    Instances For
                      def TriangleInflation.tensorPow (t : ℕ) (P : ThreeBit → ℝ) :
                      (Fin t → ThreeBit) → ℝ

                      The t-fold tensor power P^{⊗t}, as a law on Fin t → ThreeBit.

                      Equations
                      Instances For

                        The copied observations of the order-t inflation #

                        Paper Section 2.3. A^{ij} has X-index i and Z-index j; B^{ik} has X-index i and Y-index k; C^{jk} has Z-index j and Y-index k.

                        inductive TriangleInflation.Obs (t : ℕ) :

                        The 3t² copied observations of the order-t inflation.

                        Instances For
                          @[instance_reducible]
                          Equations
                          @[reducible, inline]

                          A deterministic assignment of the copied observations, an element of {0,1}^{3t²}.

                          Equations
                          Instances For

                            The copied latent variables of the order-t inflation: X_i, Z_j, Y_k.

                            Instances For

                              The copied latent ancestors of a copied observation: A^{ij} ↦ {X_i, Z_j}, B^{ik} ↦ {X_i, Y_k}, C^{jk} ↦ {Z_j, Y_k}.

                              Equations
                              Instances For

                                The copied latent ancestors of a set of copied observations.

                                Equations
                                Instances For

                                  Paper Definition 2.4: two sets of copied observations are ancestrally independent when their copied latent ancestors are disjoint.

                                  Equations
                                  Instances For

                                    The copied triangle Δ_{ijk} = {A^{ij}, B^{ik}, C^{jk}} (paper Section 2.3).

                                    Equations
                                    Instances For

                                      The diagonal triangle Δ_{lll} (paper Section 2.3).

                                      Equations
                                      Instances For
                                        def TriangleInflation.readTriangle {t : ℕ} (i j k : Fin t) (ω : Assign t) :

                                        The three-bit outcome that an assignment gives to the copied triangle Δ_{ijk}.

                                        Equations
                                        Instances For

                                          The tuple of three-bit outcomes of the t diagonal triangles (Δ_{lll})_{l ∈ [t]}.

                                          Equations
                                          Instances For

                                            The symmetry group #

                                            The action of (σ_X, σ_Z, σ_Y) ∈ S_t × S_t × S_t on copied observations. The first component permutes X-copy indices, the second Z-copy indices, the third Y-copy indices, exactly as in Definition 2.3(i).

                                            Equations
                                            Instances For

                                              Relabelling an assignment by an index permutation.

                                              Equations
                                              Instances For

                                                Paper Definition 2.3(i): invariance under independent permutations of the three index families.

                                                Equations
                                                Instances For

                                                  Injectable sets #

                                                  Paper Definition 2.4 and Appendix A.

                                                  The primitive condition of Wolfe–Spekkens–Fritz Definition 4, specialized to the triangle: erasing copy indices is injective on the set, and any two members that are copies of variables sharing a source in the triangle agree in the copy index of that source.

                                                  Equations
                                                  Instances For

                                                    The primitive definition of an injectable set (paper Appendix A.3).

                                                    Equations
                                                    Instances For

                                                      Paper Definition 2.4 together with Appendix A: for the triangle the injectable sets are exactly the subsets of copied triangles. This characterization is the working definition here; Main.injectable_iff_injectableRaw records its equivalence with InjectableRaw.

                                                      Equations
                                                      Instances For
                                                        def TriangleInflation.restrictAssign {t : ℕ} (S : Finset (Obs t)) (ω : Assign t) :
                                                        ↥S → Bool

                                                        The restriction of an assignment to a set of copied observations.

                                                        Equations
                                                        Instances For
                                                          def TriangleInflation.partyRead {t : ℕ} (S : Finset (Obs t)) (w : ThreeBit) :
                                                          ↥S → Bool

                                                          The outcome pattern that a three-bit law prescribes on an injectable set: each member reads the bit of the party it is a copy of.

                                                          Equations
                                                          Instances For

                                                            The defect cube (paper Section 5.1) #

                                                            Cell t indexes the cube [t]³ of defect bits D_{ijk}; Obs t indexes the private bits N_v. The root bits are indexed by Root t = Cell t ⊕ Obs t.

                                                            @[reducible, inline]

                                                            The cells (i,j,k) ∈ [t]³ of the defect cube.

                                                            Equations
                                                            Instances For
                                                              @[reducible, inline]

                                                              The root bits of the defect cube: defects on cells, private bits on observations.

                                                              Equations
                                                              Instances For
                                                                def TriangleInflation.onLine {t : ℕ} :
                                                                Obs t → Cell t → Bool

                                                                onLine v c says the cell c lies on the line Λ(v) read by the observation v: Λ(A^{ij}) = {(i,j,k) : k ∈ [t]}, Λ(B^{ik}) = {(i,j,k) : j ∈ [t]}, Λ(C^{jk}) = {(i,j,k) : i ∈ [t]} (paper Section 5.1).

                                                                Equations
                                                                Instances For
                                                                  def TriangleInflation.outputs {t : ℕ} (d : Cell t → Bool) (N : Obs t → Bool) :

                                                                  The output map of paper equation (eq:outputs): an observation outputs 1 exactly when its private bit and every defect on its line are 0.

                                                                  Equations
                                                                  Instances For

                                                                    The output map read off a joint root assignment.

                                                                    Equations
                                                                    Instances For

                                                                      The root bits that a set of copied observations reads: the defect cells on their lines, together with their own private bits (paper Lemma 5.4, "disjoint inputs").

                                                                      Equations
                                                                      Instances For
                                                                        def TriangleInflation.inDiagRegion {t : ℕ} (l : Fin t) (c : Cell t) :

                                                                        R_l, the union of the three lines of the diagonal triangle Δ_{lll}: the cells with at least two coordinates equal to l (paper equation (eq:Rl)).

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

                                                                          The paper's explicit laws #

                                                                          Bern(r), with Bern(r)(true) = r.

                                                                          Equations
                                                                          Instances For

                                                                            Paper equation (eq:Q): Q(ε,r) = ε δ_{000} + (1-ε) Bern(r)^{⊗3}.

                                                                            Equations
                                                                            Instances For
                                                                              noncomputable def TriangleInflation.epsFam (t : ℕ) :

                                                                              ε_t = 1/(2t³) (paper Theorem 5.2).

                                                                              Equations
                                                                              Instances For
                                                                                noncomputable def TriangleInflation.rFam (t : ℕ) :

                                                                                r_t = (1 - ε_t)^{t-1} (paper Theorem 5.2).

                                                                                Equations
                                                                                Instances For
                                                                                  noncomputable def TriangleInflation.Pfam (t : ℕ) :

                                                                                  The nontermination family P_t = Q(ε_t, r_t) (paper Theorem 5.2).

                                                                                  Equations
                                                                                  Instances For
                                                                                    noncomputable def TriangleInflation.Peps (ε : ℝ) :

                                                                                    The divergent-rejecting-order family P_ε = Q(ε, 1 - ε^{2/3}/2) (paper Proposition 5.13).

                                                                                    Equations
                                                                                    Instances For

                                                                                      R_p = (1-p) δ_{111} + p δ_{000} (paper Proposition 5.12).

                                                                                      Equations
                                                                                      Instances For
                                                                                        noncomputable def TriangleInflation.sParam (t : ℕ) (ε r : ℝ) :

                                                                                        s = 1 - r/(1-ε)^{t-1}, the private-bit parameter of paper equation (eq:s).

                                                                                        Equations
                                                                                        Instances For

                                                                                          Triangle compatibility #

                                                                                          A triangle model with finite latent alphabets: three latent spaces with weight functions, and the three response probabilities f(x,z) = Pr(A = 0 | x,z), g(x,y) = Pr(B = 0 | x,y), h(z,y) = Pr(C = 0 | z,y).

                                                                                          • X : Type

                                                                                            Latent alphabet shared by parties A and B.

                                                                                          • Y : Type

                                                                                            Latent alphabet shared by parties B and C.

                                                                                          • Z : Type

                                                                                            Latent alphabet shared by parties A and C.

                                                                                          • fintypeX : Fintype self.X
                                                                                          • fintypeY : Fintype self.Y
                                                                                          • fintypeZ : Fintype self.Z
                                                                                          • μX : self.X → ℝ

                                                                                            Probability weight of the source shared by A and B.

                                                                                          • μY : self.Y → ℝ

                                                                                            Probability weight of the source shared by B and C.

                                                                                          • μZ : self.Z → ℝ

                                                                                            Probability weight of the source shared by A and C.

                                                                                          • f : self.X × self.Z → ℝ

                                                                                            Conditional probability of outcome zero at A, given sources X and Z.

                                                                                          • g : self.X × self.Y → ℝ

                                                                                            Conditional probability of outcome zero at B, given sources X and Y.

                                                                                          • h : self.Z × self.Y → ℝ

                                                                                            Conditional probability of outcome zero at C, given sources Z and Y.

                                                                                          Instances For

                                                                                            The response law of a party: probability q of the outcome 0 = false.

                                                                                            Equations
                                                                                            Instances For

                                                                                              A triangle model is valid when the three source weights are laws and the three response probabilities take values in [0,1].

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

                                                                                                The observed law of a triangle model: the sources are independent and the responses are conditionally independent given the sources (paper Section 2.3).

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

                                                                                                  Paper Section 2.3: the triangle-compatible set C_tri, with the finite-latent-alphabet formalization boundary described in the file header.

                                                                                                  Equations
                                                                                                  Instances For

                                                                                                    The finite inflation tests #

                                                                                                    Paper Definition 2.3: the Navascués–Wolfe feasible set I^NW_t. A law Γ_t on the copied observations, invariant under S_t³, whose diagonal law is the tensor power P^{⊗t}.

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

                                                                                                      The injectable-marginal prescriptions of paper Definition 2.4: every injectable set has the corresponding marginal of P.

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

                                                                                                        The ancestral-independence prescriptions of paper Definition 2.4: every union of pairwise ancestrally independent injectable sets has the product of the corresponding marginals. The union is presented as a finite family, whose joint restriction law is required to factor.

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

                                                                                                          Paper Definition 2.4: the ancestral-independence feasible set I^AI_t.

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

                                                                                                            The defect-cube witness #

                                                                                                            def TriangleInflation.rootWeight (t : ℕ) (ε s : ℝ) :
                                                                                                            Root t → Bool → ℝ

                                                                                                            The per-root Bernoulli weights: defects are Bern(ε), private bits are Bern(s).

                                                                                                            Equations
                                                                                                            Instances For
                                                                                                              def TriangleInflation.rootLaw (t : ℕ) (ε s : ℝ) :
                                                                                                              (Root t → Bool) → ℝ

                                                                                                              The joint law of the independent root bits of the defect cube.

                                                                                                              Equations
                                                                                                              Instances For
                                                                                                                def TriangleInflation.defectLaw (t : ℕ) (ε s : ℝ) :
                                                                                                                Assign t → ℝ

                                                                                                                Paper Section 5.1: the defect-cube law Γ_t, the pushforward of the independent defect and private bits under the output map (eq:outputs). Unfolding pushforward and prodLaw gives the explicit finite sum of product weights of paper equation (eq:table): Γ_t(w) = ∑_{x : outputsOf x = w} ∏_{roots} bern _ (x _).

                                                                                                                Equations
                                                                                                                Instances For

                                                                                                                  First rejecting order #

                                                                                                                  Paper Section 2.3: t_min^H(P) = min {t ≥ 1 : P ∉ I^H_t}. Formalized as Nat.sInf, which returns the junk value 0 when the set is empty. The set is nonempty exactly when some finite order rejects P; that this happens for every incompatible P is the asymptotic completeness of the hierarchy, which is quoted from Navascués–Wolfe in the paper and is not formalized here. Every statement about t_min below therefore either exhibits a rejecting order or assumes one.

                                                                                                                  noncomputable def TriangleInflation.tminNW (P : ThreeBit → ℝ) :

                                                                                                                  t_min^NW(P), the first order of the Navascués–Wolfe hierarchy that rejects P.

                                                                                                                  Equations
                                                                                                                  Instances For
                                                                                                                    noncomputable def TriangleInflation.tminAI (P : ThreeBit → ℝ) :

                                                                                                                    t_min^AI(P), the first order of the ancestral-independence hierarchy that rejects P.

                                                                                                                    Equations
                                                                                                                    Instances For