Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Extended formulations: the core

Sebastian Pokutta
v1 2026-12-01 · last 2026-12-02

Abstract. The shared foundation of the archive’s entries on extended formulations. It defines nonnegative and LP factorizations of a real matrix with their ranks, polyhedra, LP formulations, extensions of a set and the extension complexity, also for pairs of nested sets, and the semidefinite counterparts: PSD and SDP factorizations and ranks, spectrahedra, SDP formulations and PSD extensions. Rows and columns are indexed by arbitrary sets, equations are free, and sizes count inequalities or sizes of matrices. It proves Farkas’ lemma for finitely many linear functionals over an ordered field, its affine form, linear programming duality with attainment, and a Farkas lemma for spectrahedra that needs no strictly feasible point. From these it derives the factorization theorem in three forms, for linear and semidefinite formulations: the LP rank of a matrix is the least size of an LP formulation; the extension complexity of a pair is the LP rank of the slack matrix; and for a polytope with two distinct points it is the nonnegative rank of any slack matrix, which is Yannakakis’ theorem. For optimization problems with completeness and soundness guarantees, the formulation complexity is the corresponding rank of the slack matrix and, for every linear encoding, the extension complexity of a pair; affine reductions and reductions with distortion bound it. The entry proves the rules for complexities and ranks under the usual operations and the standard lower bounds on the nonnegative rank: the rank, rectangle coverings with fooling sets and weights, and hyperplane separation. It also develops entropy and mutual information for finite random variables, with the direct sum inequality, and common information given a condition, which is at most the logarithm of the nonnegative rank. For formulations that are symmetric under a group it proves the factorization theorem and the certificate of Braun and Pokutta.

An extended formulation describes a polytope as the projection of a polyhedron in a larger space. The polyhedron may have far fewer inequalities than the polytope has facets, and lower bounds on the number of inequalities limit what linear programs can express. This entry defines the objects of the theory once, for the entries of the archive on extended formulations: nonnegative and LP factorizations of a matrix and their ranks, polyhedra, LP formulations, extensions and the extension complexity, their semidefinite counterparts, optimization problems with their formulations and reductions, the common information of a matrix with the calculus of entropies it rests on, and symmetric formulations. It proves the facts that every argument in the area starts from, among them the standard lower bounds on the nonnegative rank. Entries import these definitions instead of restating them.

The central result is the factorization theorem of Yannakakis (1991): the extension complexity of a polytope is the nonnegative rank of its slack matrix. It is proved here in three forms. The first is for matrices, as in the work of Braun, Pokutta and Zink Braun et al., 2014 and of Braun, Pokutta and Roy Braun et al., 2015. The second is for pairs of a polytope inside a polyhedron, as in Pashkovich (2012) and in the work of Braun, Fiorini, Pokutta and Steurer Braun et al., 2015. The third is for polytopes, as in Fiorini et al. (2015). All three rest on Farkas’ lemma, which is proved first, by the algebraic argument of Bartl (2008). The same three forms hold for semidefinite formulations, with the PSD rank of Gouveia et al. (2013); they rest on a Farkas lemma for spectrahedra. Numbers of results in the cited papers refer to their arXiv versions.

Three conventions hold throughout. Matrices have real entries, and their rows and columns are indexed by arbitrary sets, which need not be finite. A polyhedron is cut out of an affine subspace by finitely many inequalities; the equations of the subspace are free, and the size of a formulation is its number of inequalities. Ranks and complexities take values in the natural numbers with a top element ∞\infty, which is the value when no factorization or extension exists.

Linear inequalities

The space may have any dimension, and no topology is involved. The proof is by induction on nn. If the condition already holds without ana_n, the induction hypothesis applies. Otherwise some zz has ai(z)≤0a_i(z) \le 0 for i<ni \lt n and c(z)>0c(z) \gt 0, hence an(z)>0a_n(z) \gt 0, and we may scale zz so that an(z)=1a_n(z) = 1. The functionals ai′=ai−ai(z) ana_i' = a_i - a_i(z)\, a_n and c′=c−c(z) anc' = c - c(z)\, a_n vanish at zz and satisfy the condition for n−1n - 1 functionals, because ai′(x)=ai(x−an(x)z)a_i'(x) = a_i(x - a_n(x) z). So c′=∑i<ntiai′c' = \sum_{i \lt n} t_i a_i', and the coefficient of ana_n in the resulting expression for cc is c(z)−∑i<ntiai(z)≥c(z)>0c(z) - \sum_{i \lt n} t_i a_i(z) \ge c(z) \gt 0. The Frank–Wolfe core states the lemma in its other form, as the separation of a point from a finitely generated cone in a finite-dimensional normed space.

For a point x0x_0 of the polyhedron, the functions (y,r)↦r si(x0+y/r)(y, r) \mapsto r\, s_i(x_0 + y/r) extend to linear functionals on pairs of a direction yy of LL and a number rr. The affine form is Farkas’ lemma for these functionals and the functional (y,r)↦r(y, r) \mapsto r. Nonemptiness is used for the pairs with r=0r = 0: these are directions along which the polyhedron is unbounded, and ww cannot decrease along them.

So x⋆x^\star minimizes ww over the polyhedron, the multipliers tt are an optimal dual solution, and tisi(x⋆)=0t_i s_i(x^\star) = 0 for all ii. For the proof let β\beta be the infimum of ww over the polyhedron. The affine form gives w−β=t0+∑itisiw - \beta = t_0 + \sum_i t_i s_i, and t0=0t_0 = 0 because β\beta is the infimum. If no point of the polyhedron had tisi(x)=0t_i s_i(x) = 0 for all ii, a certificate of infeasibility would bound w−βw - \beta away from 0 on the polyhedron.

Nonnegative rank and LP rank

Both ranks are ∞\infty for a matrix with a negative entry. The next two statements connect the ranks, which are defined through factorizations indexed by {1,…,r}\{1, \dots, r\}, with factorizations indexed by any finite set.

A nonnegative factorization is an LP factorization without shift, and the shift μ1⊤\mu \mathbb{1}^\top is one more nonnegative factor.

A row with a zero entry has μi=0\mu_i = 0. So the two rows add up to c 1⊤=(Ti1+Ti2) Uc\, \mathbb{1}^\top = (T_{i_1} + T_{i_2})\, U, which writes the row of ones as a nonnegative combination of the rows of UU.

The algebra of the two ranks

The LP rank treats rows and columns differently, because the shift is added to the rows.

With M=TU+μ1⊤M = TU + \mu \mathbb{1}^\top the products are AM=(AT)U+(Aμ)1⊤AM = (AT)U + (A\mu)\mathbb{1}^\top and MB=T(UB)+μ 1⊤BMB = T(UB) + \mu\, \mathbb{1}^\top B, and 1⊤B=1⊤\mathbb{1}^\top B = \mathbb{1}^\top when the columns of BB sum to one. These rules are what reductions between optimization problems use: the rows of the slack matrix of one problem are nonnegative combinations of those of another, and its columns are convex combinations Braun et al., 2014.

So scaling by positive numbers leaves the nonnegative rank unchanged. In particular the nonnegative rank of a slack matrix does not depend on the scaling of the inequalities.

LP formulations of a matrix

In the terms of Braun, Pokutta and Roy Braun et al., 2015 the matrix is a nonnegativity problem and the formulation is an LP proof of it: the polyhedron certifies that all entries are nonnegative. Formulations of optimization problems, with solutions as columns and instances as rows of the slack matrix, are treated in the section on optimization problems below.

By the affine form of Farkas’ lemma, wi=μi+∑kTikskw_i = \mu_i + \sum_k T_{ik} s_k on LL with nonnegative coefficients. Evaluating at pjp_j gives the factorization.

This is the factorization theorem of Braun, Pokutta and Roy Braun et al., 2015, Theorem 2.20, and the matrix form of the one of Braun et al. (2014, Theorem 3.5): the least size of an LP formulation is a property of the matrix, its LP rank. The first direction holds for formulations in any real vector space.

Extensions

Points of the polyhedron above the vjv_j and the functions hi∘πh_i \circ \pi form an LP formulation of the slack matrix.

For hi(x)=bi−⟨ai,x⟩h_i(x) = b_i - \langle a_i, x \rangle and μ=0\mu = 0 the relaxation is the projection of {(x,y):Ax+Ty=b, y≥0}\{(x, y) : Ax + Ty = b,\ y \ge 0\}, the extension in slack form of Yannakakis (1991). The point vjv_j lies in it with yy the jj-th column of UU.

Neither family has to be finite. If some hi(vj)h_i(v_j) is negative, then P⊈QP \not\subseteq Q, and both sides are ∞\infty. With the bounds between the two ranks this is the theorem of Pashkovich (2012) and of Braun, Fiorini, Pokutta and Steurer Braun et al., 2015, Theorem 1: rank⁡+S−1≤xc⁡(P,Q)≤rank⁡+S\operatorname{rank}_+ S - 1 \le \operatorname{xc}(P, Q) \le \operatorname{rank}_+ S for the slack matrix SS of the pair. The LP rank removes the ambiguity, as observed in Braun et al. (2014).

This is the form in which lower bounds are proved: the functions hih_i are any inequalities that are valid for the polytope, and they need not describe it. To absorb the shift, take a linear functional uu that is not constant on the points and add the two inequalities u≤max⁡ju(vj)u \le \max_j u(v_j) and u≥min⁡ju(vj)u \ge \min_j u(v_j) to the family. Their rows in the slack matrix have a zero entry each and add up to a positive constant, so the lemma on the shift applies.

This is the factorization theorem of Yannakakis (1991) in the form of Fiorini et al. (2015, Theorem 3), for a polytope of dimension at least one and any of its slack matrices. The polytope is given by both of its descriptions, so the equivalence of the two descriptions of a polytope is not needed. For a single point the two sides can differ: its extension complexity is 0, and a slack matrix with a positive entry has nonnegative rank 1.

Rules for the extension complexity

In particular a face of a polytope, the set where a valid inequality is tight, has at most the extension complexity of the polytope. With the rule for affine images this is the monotonicity used in the reductions between polytopes Fiorini et al., 2015, Lemma 9.

The intersection is the image of the slice of P×QP \times Q by the diagonal.

So a face of a convex hull is the convex hull of the given points on it, whether or not they are vertices.

This is the extension of Balas (1998). Replace each extension {y∈Li:sk(y)≥0}\{y \in L_i : s_k(y) \ge 0\} by the cone over it, the set of all (y,λ)(y, \lambda) with λ≥0\lambda \ge 0 that satisfy the homogenized equations and inequalities, and ask that λ1+λ2=1\lambda_1 + \lambda_2 = 1. A point of the cone with λ>0\lambda > 0 is λ\lambda times a point of the extension. A point with λ=0\lambda = 0 is a direction along which the extension is unbounded; it projects to zero because PiP_i contains no half-line. So the new polyhedron projects onto the points λ1x1+λ2x2\lambda_1 x_1 + \lambda_2 x_2 with xi∈Pix_i \in P_i, and it has one inequality λi≥0\lambda_i \ge 0 more for each of the two sets. Without the hypothesis the image can be larger than the convex hull, which need not be closed.

So the theorem applies to polytopes.

All three follow from the definition of the extension complexity of a pair as an infimum over the sets in between, the third together with the rule for images. They are the rules behind approximate extended formulations, where the outer set is a dilate of a relaxation Braun et al., 2015.

Lower bounds on the nonnegative rank

A lower bound on the extension complexity of a polytope is a lower bound on the nonnegative rank of a slack matrix. The rank is one such bound. The bounds of this section use that the terms of a nonnegative factorization cannot cancel.

The rectangle of kk is the support of the kk-th term T⋅kUk⋅T_{\cdot k} U_{k \cdot} of the factorization. A term is at most MM entrywise, so its support lies in that of MM, and a positive entry of MM needs a positive term.

This is the bound of Yannakakis (1991); the logarithm of the rectangle covering number is the nondeterministic communication complexity of the support Fiorini et al., 2015, Theorem 4. It only sees which entries vanish.

A rectangle inside SS that contains (i,j)(i, j) and (i′,j′)(i', j') also contains (i,j′)(i, j') and (i′,j)(i', j). So it contains at most one position of a fooling set.

With the weights 1 on a subset S′S' of SS and 0 elsewhere, a rectangle cover has at least ∣S′∣/c|S'| / c rectangles when no rectangle inside SS contains more than cc positions of S′S'. This is how Kaibel & Weltge (2015) bound the rectangle covering number of the unique disjointness matrix.

This is the bound of Rothvoss (2013), rank⁡+M≥⟨W,M⟩/(α∥M∥∞)\operatorname{rank}_+ M \ge \langle W, M \rangle / (\alpha \|M\|_\infty). Unlike the rectangle covering bound it uses the values of the entries, and WW may have negative entries. For the proof, each term uv⊤u v^\top of the factorization has entries at most mm, so max⁡iui⋅max⁡jvj≤m\max_i u_i \cdot \max_j v_j \le m. The pairing of WW with xy⊤x y^\top is linear in xx and in yy, so over 0≤x≤max⁡iui0 \le x \le \max_i u_i and 0≤y≤max⁡jvj0 \le y \le \max_j v_j it is largest at vectors with entries 0 or the maximum, where it is max⁡iui⋅max⁡jvj\max_i u_i \cdot \max_j v_j times a sum of WW over a rectangle.

Farkas’ lemma for spectrahedra

The semidefinite side replaces the nonnegative orthant by the cone of positive semidefinite matrices. Matrices are real, and a positive semidefinite matrix is symmetric.

For polyhedra the certificate of the affine form of Farkas’ lemma holds on all of LL. For spectrahedra a certificate on all of LL needs a strictly feasible point, a point where GG is positive definite. The theorem asks for no such point, and its certificate holds on the spectrahedron, which is what the factorization theorem uses.

The proof first reduces to a strictly feasible point. Let x0x_0 be a point of the spectrahedron for which the kernel of G(x0)G(x_0) has the smallest dimension. For every other point xx the kernel of GG at the midpoint of x0x_0 and xx is the intersection of the two kernels, so the kernel of G(x0)G(x_0) lies in that of G(x)G(x). Let the columns of BB be orthonormal eigenvectors of G(x0)G(x_0) for its positive eigenvalues. Then B⊤G(x0)BB^\top G(x_0) B is a positive diagonal matrix, and G(x)=B (B⊤G(x)B) B⊤G(x) = B\,(B^\top G(x) B)\,B^\top on the spectrahedron. On the affine subspace of all x∈Lx \in L with this property and G(x)G(x) symmetric, the spectrahedron is the set where the smaller matrix B⊤G(x)BB^\top G(x) B is positive semidefinite, and x0x_0 is strictly feasible for it. This is the facial reduction of Borwein & Wolkowicz (1981).

With a strictly feasible point the certificate is an extension of a positive functional. The homogenization (y,r)↦r w(x0+y/r)(y, r) \mapsto r\, w(x_0 + y/r) is a linear functional on the pairs of a direction yy of LL and a number rr, and it is nonnegative where r≥0r \ge 0 and the homogenized matrix has a nonnegative quadratic form. By the extension theorem of M. Riesz it extends to a linear functional on the triples of a direction, a number and a matrix that is nonnegative whenever the number is nonnegative and the matrix has a nonnegative quadratic form. The theorem needs every matrix to be dominated by a multiple of G(x0)G(x_0), which holds because G(x0)G(x_0) is positive definite. The matrix part of the extension is the trace against TT.

PSD rank and SDP rank

These are the definitions of Fiorini et al. (2015) and Braun et al. (2014). The two ranks relate to each other as the nonnegative rank and the LP rank do, and the next statements are the counterparts of those for the linear ranks.

The shift is one more diagonal block of size one, μi\mu_i in AiA_i and 1 in BjB_j.

A nonnegative factorization M=TUM = TU is the PSD factorization by the diagonal matrices of the rows of TT and of the columns of UU.

Both products use the Kronecker products of the matrices of the two factorizations, and tr⁡((A⊗A′)(B⊗B′))=tr⁡(AB)tr⁡(A′B′)\operatorname{tr}\bigl((A \otimes A')(B \otimes B')\bigr) = \operatorname{tr}(AB) \operatorname{tr}(A'B').

The entries tr⁡(AiBj)\operatorname{tr}(A_i B_j) are inner products of symmetric matrices of size rr, which form a space of dimension (r+12)\binom{r+1}{2} Gouveia et al., 2013. So the PSD rank is at least of the order of the square root of the rank.

SDP formulations of a matrix

By Farkas’ lemma for spectrahedra, wi=tr⁡(Ai G(⋅))+μiw_i = \operatorname{tr}(A_i\, G(\cdot)) + \mu_i on the spectrahedron. No strictly feasible point is needed: the argument that a slice without interior point lies in a smaller cone Braun et al., 2014 is the facial reduction inside that lemma.

This is the matrix form of the semidefinite half of the factorization theorem of Braun et al. (2014, Theorem 3.5).

PSD extensions

A polyhedron {x∈L:sk(x)≥0}\{x \in L : s_k(x) \ge 0\} is the spectrahedron of the diagonal matrices with entries sk(x)s_k(x).

This is the theorem of Gouveia et al. (2013) for the positive semidefinite cone, in the form of Fiorini et al. (2015, Theorem 13). The proofs are those of the linear case, with Farkas’ lemma for spectrahedra in place of the affine form of Farkas’ lemma, and the shift is absorbed in the same way.

The product of two spectrahedra is the spectrahedron of the block diagonal matrices.

Optimization problems and reductions

A formulation need not start from a polytope. Following Braun, Pokutta and Zink Braun et al., 2014, an optimization problem is a function val⁡f(s)\operatorname{val}_f(s) of an instance ff and a feasible solution ss, and approximation is expressed by two functions of the instance: a formulation has to certify the completeness guarantee C(f)C(f) for the instances whose optimum is bounded by the soundness guarantee S(f)S(f). A sign τ\tau selects maximization (τ=1\tau = 1) or minimization (τ=−1\tau = -1). Exact optimization of a maximization problem is the case C(f)=S(f)=max⁡sval⁡f(s)C(f) = S(f) = \max_s \operatorname{val}_f(s).

For τ=1\tau = 1 the last condition on a formulation says that the maximum of the linearized objective wfw_f over the polyhedron is at most C(f)C(f). These are the definitions of Braun et al. (2014, Definitions 2.5 and 2.8), with the sign as in the work of Braun, Pokutta and Roy Braun et al., 2015.

This is the factorization theorem of Braun et al. (2014, Theorem 3.5). A formulation of the problem is a formulation of its slack matrix with the functions τ (C(f)−wf)\tau\,(C(f) - w_f), and a formulation of the slack matrix with functions wf′w'_f is a formulation of the problem with wf=C(f)−wf′/τw_f = C(f) - w'_f / \tau. So the theorem is the one for matrices.

The formulation complexity does not refer to a polytope. Polytopes appear when the problem is encoded, the solutions as points and the instances as affine functions.

The slack matrix of the problem is the slack matrix of the pair, so this is the factorization theorem for pairs. In particular the two complexities of the pair are the same for all encodings of a problem.

The hypothesis P=QP = Q says that the completeness guarantees describe the convex hull of the encoded solutions. An example is the exact maximization over the vertices psp_s of a polytope, with one instance for every inequality of a description of the polytope.

A reduction from one problem to another relates the two slack matrices, and bounds the formulation complexity of the first problem by that of the second. The rules are stated for matrices first.

For finite matrices the hypothesis reads M1=RM2C+t1⊤M_1 = R M_2 C + t \mathbb{1}^\top with entrywise nonnegative RR, CC and tt, where every column of CC sums to one. This is the matrix form of an affine reduction Braun et al., 2014, Remark 4.3: an LP factorization M2=TU+μ1⊤M_2 = TU + \mu \mathbb{1}^\top gives the LP factorization M1=(RT)(UC)+(Rμ+t)1⊤M_1 = (RT)(UC) + (R\mu + t) \mathbb{1}^\top of the same size, and an SDP factorization is transformed in the same way. With finite sets AiA_i and BjB_j the same computation works for matrices with infinitely many rows and columns.

This is the reduction theorem for nonnegativity problems of Braun, Pokutta and Roy Braun et al., 2015, Theorem 2.22; a nonnegativity problem is a nonnegative matrix with the instances as rows and the solutions as columns. Write M2=M2′+a1⊤M_2 = M_2' + a \mathbb{1}^\top with a≥0a \ge 0 and rank⁡+M2′=rank⁡LPM2\operatorname{rank}_+ M_2' = \operatorname{rank}_{\mathrm{LP}} M_2. Then M1=M2′[f,g]∘N1+DN1+N2M_1 = M_2'[f, g] \circ N_1 + D N_1 + N_2 for the diagonal matrix DD with entries af(i)a_{f(i)}, and the three terms are bounded by the rule for Hadamard products, by row scaling and by subadditivity. Nothing is assumed about the signs of the entries: a matrix with a negative entry has infinite rank. The slack matrix of a fractional optimization problem [Braun et al. (2015), Section 4] has two rows for every instance, and the two statements for matrices apply to it as well.

For optimization problems P1\mathcal{P}_1 and P2\mathcal{P}_2 with signs τ1,τ2≠0\tau_1, \tau_2 \ne 0 and guarantees C1,S1C_1, S_1 and C2,S2C_2, S_2, write fc⁡(Pi)\operatorname{fc}(\mathcal{P}_i) for the formulation complexities with these guarantees.

This is the reduction of Braun et al. (2014, Definition 4.1 and Proposition 4.2): instances are rewritten as nonnegative combinations of instances plus a shift, and solutions as convex combinations of solutions. It is stated there for two maximization problems; the signs give the versions with minimization problems. The slack of P1\mathcal{P}_1 is the combination of the slacks of P2\mathcal{P}_2 plus the nonnegative number τ1C1(f)−∑gbf,gτ2C2(g)−μ(f)\tau_1 C_1(f) - \sum_g b_{f,g} \tau_2 C_2(g) - \mu(f), so the theorem for matrices applies.

This is the reduction mechanism of Braun, Pokutta and Roy [Braun et al. (2015), Definition 3.1 and Theorem 3.2]. The identity is needed only for the instances that satisfy S1S_1.

This is the common case of both mechanisms, in which instances and solutions are translated by maps and the slack is scaled and shifted; compare the simple reductions of Braun et al. (2014, Corollary 4.4). Monotonicity in the guarantees is the case of identity maps.

Hardness of approximation is usually transferred from a maximization problem with constant guarantees to a problem with an approximation factor. For a maximization problem P1\mathcal{P}_1 write fc⁡(P1,c,s)\operatorname{fc}(\mathcal{P}_1, c, s) for the formulation complexity with completeness guarantee cc and soundness guarantee ss for all instances: the formulation has value at most cc at every instance whose values are at most ss. For a second problem P2\mathcal{P}_2 with a bound opt⁡2\operatorname{opt}_2 on its values write fc⁡(P2,ρ)\operatorname{fc}(\mathcal{P}_2, \rho) for the formulation complexity with approximation factor ρ\rho: the completeness guarantee is opt⁡2/ρ\operatorname{opt}_2 / \rho for a minimization problem and ρopt⁡2\rho \operatorname{opt}_2 for a maximization problem, and the soundness guarantee is opt⁡2\operatorname{opt}_2.

These are the two forms of the reduction theorem of Bazzi, Fiorini, Pokutta and Svensson Bazzi et al., 2019, Theorem 4.4, in the framework of Braun et al. (2014). Both are reductions by maps: the slack of P1\mathcal{P}_1 is ζ(f)\zeta(f) times the slack of P2\mathcal{P}_2 plus a number that is nonnegative because the reduction is exact, which means that an instance with small optimum is mapped to an instance with large cost, or with small value in the second form.

Entropy and mutual information

The lower bounds on the nonnegative rank by common information, in the work of Braun and Pokutta Braun & Pokutta, 2013Braun & Pokutta, 2014 and of Braun, Jain, Lee and Pokutta Braun et al., 2017, are arguments about random variables. This section provides the calculus they use; the facts are standard Cover & Thomas, 2006, Chapter 2. Everything is finite and elementary. A probability space is a finite set Ω\Omega with a distribution PP, a random variable is a function on Ω\Omega with values in a finite set, and a tuple of random variables is a random variable. Entropies are measured in nats; dividing by log⁡2\log 2 gives bits.

The definitions make sense for every function PP. Most statements below need only that PP is nonnegative, so they also hold after conditioning on an event of mass zero.

This is log⁡t≤t−1\log t \le t - 1 applied to t=r(s)/q(s)t = r(s) / q(s), and it is the only analytic input of the section. With the uniform distribution as rr it gives the upper bound on the entropy.

In particular the entropy of a tuple does not depend on the order and the grouping of its members, and H[X,Z]≥H[Z]H[X, Z] \ge H[Z].

Apply Gibbs’ inequality to the joint law qq of (X,Y,Z)(X, Y, Z) and to r(x,y,z)=P[x,z] P[y,z]/P[z]r(x, y, z) = P[x, z]\, P[y, z] / P[z]. Both have the total mass of PP, and ∑qlog⁡r=−H[X,Z]−H[Y,Z]+H[Z]\sum q \log r = -H[X, Z] - H[Y, Z] + H[Z].

The first statement is the case of equality in Gibbs’ inequality. Random variables with I[X;Y∣Z]=0I[X; Y \mid Z] = 0 are conditionally independent given ZZ.

This is the usual definition of the conditional quantities, as expectations over the condition. Conditioning on an event and on a random variable at once is conditioning on the random variable under the distribution conditioned on the event.

The next three statements are the direct sum property: independent random variables together carry at least the sum of their information about another random variable.

It follows from the identity I[X1,X2;Y∣Z]+I[X1;X2∣Z]=I[X1;Y∣Z]+I[X2;Y∣Z]+I[X1;X2∣Y,Z]I[X_1, X_2; Y \mid Z] + I[X_1; X_2 \mid Z] = I[X_1; Y \mid Z] + I[X_2; Y \mid Z] + I[X_1; X_2 \mid Y, Z].

The hypothesis says that the XiX_i are mutually independent given ZZ; any product representation will do, the factors need not be the conditional laws. Then I[X;Y∣Z]=H[X∣Z]−H[X∣Y,Z]I[X; Y \mid Z] = H[X \mid Z] - H[X \mid Y, Z], where the first term is the sum of the H[Xi∣Z]H[X_i \mid Z] and the second is at most the sum of the H[Xi∣Y,Z]H[X_i \mid Y, Z].

All entropies in the definition are entropies of marginals of the joint law. The second form moves a computation from one probability space to another along any map, which need not be injective.

Common information

Wyner’s common information Wyner, 1975 of two random variables AA and BB is the least information I[A,B;Π]I[A, B; \Pi] that a third random variable Π\Pi must have about them to make them conditionally independent. Braun and Pokutta Braun & Pokutta, 2013 use it for matrices. A nonnegative matrix MM with finitely many rows and columns is the distribution of a random row AA and a random column BB, up to scaling, and a nonnegative factorization M=TUM = TU is a seed Π\Pi: the index of the rank-one term, with joint weights TaπUπbT_{a\pi} U_{\pi b}. Since a seed with rr values carries at most log⁡r\log r of information, common information bounds the nonnegative rank from below.

Lower bounds on common information are proved for a conditional version Braun & Pokutta, 2013, Definition 3.1: I[A,B;Π∣Z]I[A, B; \Pi \mid Z] for a condition ZZ, an event or a random variable or both, where the seed must be independent of ZZ given (A,B)(A, B). Then the joint distribution of the condition and of (A,B,Π)(A, B, \Pi) depends on ZZ only through the conditional probabilities ωz(a,b)\omega_z(a, b) of the condition zz given the row aa and the column bb. So a condition is here a finite family ω=(ωz)\omega = (\omega_z) of nonnegative matrices of the format of MM.

Seeds have finitely many values here, while Braun & Pokutta (2013) allow arbitrary seeds. So the quantity defined here is at least theirs, and it serves the same purpose: a lower bound proved for all seeds holds for the finite ones, and the bound by the nonnegative rank below is about finite seeds. Numbers of results of Braun & Pokutta (2013) and of Braun et al. (2017) refer to the full versions, ECCC TR13-056 (revision 5) and TR13-158 (revision 3).

For the trivial condition, (A,B)(A, B) has the induced distribution of MM. In general I[A;B∣Z]I[A; B \mid Z] and the conditional entropies of AA and BB are properties of MM and ω\omega, and only the seed varies.

The trivial condition is of this form, and so are the conditions that restrict rows and columns separately, as in the lower bound for unique disjointness of Braun & Pokutta (2013, Theorem 4.1).

This is Lemma 3.4 of Braun & Pokutta (2013): the seed Π\Pi of a factorization of size rr has I[A,B;Π∣Z]≤H[Π∣Z]≤H[Π]≤log⁡rI[A, B; \Pi \mid Z] \le H[\Pi \mid Z] \le H[\Pi] \le \log r. In bits it reads rank⁡+M≥2C[M∣ω]\operatorname{rank}_+ M \ge 2^{C[M \mid \omega]}. To bound the nonnegative rank from below one bounds I[A,B;Π∣Z]I[A, B; \Pi \mid Z] from below for an arbitrary factorization, with the calculus of the previous section on the seed distribution.

These are the general bounds of Braun et al. (2017, Fact 2.6). The lower bound holds for every seed by the previous proposition. For the upper bounds, the factorizations M=1⋅MM = 1 \cdot M and M=M⋅1M = M \cdot 1 have the seeds Π=A\Pi = A and Π=B\Pi = B.

Here I[A;B]=H[A]=log⁡nI[A; B] = H[A] = \log n, and the nonnegative rank is nn: the bound of the theorem is attained.

A factorization of the renamed matrix is a renamed factorization, and its seed distribution is the image of the original one under a bijection of the probability space.

Symmetric formulations

The first lower bounds on extended formulations were for symmetric ones Yannakakis, 1991, and requiring symmetry can increase the size of a formulation Kaibel et al., 2012. This section follows the algebraic approach of Braun and Pokutta Braun & Pokutta, 2012, in the language of factorizations. A group GG acts on the rows and the columns of a matrix, or by affine maps on the space of a set.

In a symmetric formulation the group permutes the inequalities, so it maps the polyhedron to itself. The symmetric extensions of Braun & Pokutta (2012, Definition 2.2) ask only that the polyhedron, there a polytope, is mapped to itself and that the projection is compatible with the actions. An irredundant description of such a polytope, normalized at a point fixed by the group, is then permuted by the group; the entry Symmetric formulations of the spanning-tree polytope contains a reduction of this kind. It is not part of this entry.

The slacks sk(pj)s_k(p_j) of the points are invariant by the definition of a symmetric formulation, and so is MM. The multipliers of Farkas’ lemma need not be, and averaging repairs this. Together the two theorems are the factorization theorem for symmetric formulations: a matrix has a symmetric LP formulation with inequalities indexed by a GG-set KK if and only if it has a symmetric LP factorization indexed by KK.

This is the invariant section of Braun & Pokutta (2012, Lemma 2.5): for arbitrary preimages uj∈Qu_j \in Q take pj=1∣G∣∑gρg(ug−1j)p_j = \frac{1}{|G|} \sum_g \rho_g(u_{g^{-1}j}).

These two theorems are the symmetric form of the factorization theorem for pairs. The relaxation defined by the factorization contains the points vjv_j, and all hih_i are nonnegative on it, as for factorizations without symmetry.

The second statement is the orbit-stabilizer theorem Braun & Pokutta, 2012, Lemma 2.6 and Observation 2.7. So in a symmetric factorization of size rr, every row of the right factor is invariant under a subgroup of index at most rr.

This is the lower bound black box of Braun & Pokutta (2012, Theorem 5.1). With an equivariant section pjp_j, the slack sk(pj)s_k(p_j) is constant on the blocks of kk, so sk(∑jcjpj)=∑Fsk(F)∑j∈Fcj≥0s_k(\sum_j c_j p_j) = \sum_F s_k(F) \sum_{j \in F} c_j \ge 0, and the point ∑jcjpj\sum_j c_j p_j of the polyhedron projects to ∑jcjvj\sum_j c_j v_j. An affine combination of the points with negative coefficients is thus forced into PP, as long as the sums over the blocks are nonnegative. A lower bound follows by exhibiting such a combination outside PP Braun & Pokutta, 2012, Remark 5.2: if the extension has few inequalities, their stabilizers have small index, hence are large and have few orbits. For symmetric and alternating groups the subgroups of small index contain large alternating groups Dixon & Mortimer, 1996, Theorems 5.2A and 5.2B; this group theory is not part of this entry.

Entries building on the core

The entries on papers about extended formulations import the core.

Earlier entries

Several entries of the archive predate this core and defined what they needed themselves. They now use the notions of this page. Nonnegative rank of the spanning-tree slack matrix states its bound for the nonnegative rank defined here and keeps a bundled form of nonnegative factorizations, a family of rank-one summands, in which the entries that build on it construct their factorizations. LP hardness of approximation for polynomial-time solvable problems works with linear programs that carry dual certificates as data, for the slack matrix of a minimization problem. It proves with the affine form of Farkas’ lemma above that such certificates always exist, and takes its rank bound for the matching matrix from The matching polytope does not admit fully-polynomial size relaxation schemes. Common information and hyperplane separation are incomparable defines the hyperplane separation bound as a number, normalized by the largest entry. Its common information is the one defined here, in bits, and the entry proves that this is the infimum over the product seeds of the normalized matrix. SDP hardness of approximation via shifted matching reductions assumes a lower bound on the PSD rank defined here and works with semidefinite programs that carry dual certificates as data. Exact LP extension complexity of planar Steiner tree polytopes states its bounds for the extension complexity defined here and proves that it can be computed from extensions with a list of equations in a coordinate space. Symmetric formulations of the spanning-tree polytope defines symmetric linear programs for the spanning-tree polytope, with a group action on the space but none on the inequalities; this notion is not the one of the section on symmetric formulations above.

The formal statements at a glance

Main.lean
/-- Farkas' lemma for finitely many functionals on a vector space over an ordered field. -/
theorem farkas_lemma : FarkasLemma := fun a c h => Proof.farkas a c h

/-- Farkas' lemma for an affine function that is nonnegative on a nonempty polyhedron. -/
theorem affine_farkas : AffineFarkas := fun s w hne hw => Proof.affine_farkas s w hne hw

/-- The affine form of Farkas' lemma on an affine subspace. -/
theorem affine_farkas_on : AffineFarkasOn := fun L s w hne hw =>
  Proof.affine_farkas_on L s w hne hw

/-- The certificate of an infeasible system of affine inequalities. -/
theorem farkas_infeasible : FarkasInfeasible := fun s => Proof.farkas_infeasible s

/-- Linear programming duality, with attainment. -/
theorem lp_duality : LPDuality := fun s w hne hb => Proof.lp_duality s w hne hb

/-- The nonnegative rank through factorizations. -/
theorem nonnegRank_spec : NonnegRankSpec := fun _ =>
  ⟨fun _ => nonnegRank_le_iff, fun _ _ h => h.nonnegRank_le⟩

/-- The LP rank through factorizations. -/
theorem lpRank_spec : LPRankSpec := fun _ =>
  ⟨fun _ => lpRank_le_iff, fun _ _ _ h => h.lpRank_le⟩

/-- LP rank and nonnegative rank differ by at most one. -/
theorem lpRank_bounds : LPRankBounds := fun M =>
  ⟨Proof.lpRank_le_nonnegRank M, Proof.nonnegRank_le_lpRank_add_one M⟩

/-- Two rows with zeros and constant sum absorb the shift of an LP factorization. -/
theorem absorb_shift : AbsorbShift := fun _ _ _ _ h _ _ _ hc hsum hz₁ hz₂ =>
  h.absorb hc hsum hz₁ hz₂

/-- Neither rank increases when rows and columns are selected. -/
theorem rank_submatrix : RankSubmatrix := fun M f g =>
  ⟨Proof.nonnegRank_submatrix_le M f g, Proof.lpRank_submatrix_le M f g⟩

/-- An LP formulation of a matrix gives an LP factorization of the same size. -/
theorem formulation_factorization : FormulationFactorization := fun M L s p w h =>
  Proof.formulation_factorization M L s p w h

/-- An LP factorization of a matrix is an LP formulation over the nonnegative orthant. -/
theorem factorization_formulation : FactorizationFormulation := fun M T U μ h =>
  Proof.factorization_formulation M T U μ h

/-- The LP rank is the least number of inequalities of an LP formulation. -/
theorem formulation_complexity : FormulationComplexity := fun M r =>
  Proof.formulation_complexity M r

/-- The extension complexity through extensions. -/
theorem xc_spec : XcSpec := fun _ => ⟨fun _ => xc_le_iff, fun _ _ _ h => h.xc_le⟩

/-- An extension between points and inequalities gives an LP factorization of the slack matrix. -/
theorem extension_factorization : ExtensionFactorization := fun _ _ _ _ h v hK hv hh =>
  Proof.extension_factorization hK h v hv hh

/-- An LP factorization of a slack matrix gives an extension between points and inequalities. -/
theorem factorization_extension : FactorizationExtension := fun h v T U μ hf =>
  Proof.factorization_extension h v T U μ hf

/-- The factorization theorem for pairs. -/
theorem sandwich_theorem : SandwichTheorem := fun h v => Proof.sandwich h v

/-- The LP rank of a slack matrix is a lower bound on the extension complexity. -/
theorem slack_lower_bound_lp : SlackLowerBoundLP := fun _ h v hv hh =>
  Proof.lpRank_slackMatrix_le_xc h v hv hh

/-- The nonnegative rank of a slack matrix is a lower bound on the extension complexity. -/
theorem slack_lower_bound : SlackLowerBound := fun h v hh hne =>
  Proof.nonnegRank_slackMatrix_le_xc h v hh hne

/-- Yannakakis' theorem with the LP rank. -/
theorem yannakakis_lp : YannakakisLP := fun h v hP => Proof.yannakakis_lp h v hP

/-- Yannakakis' theorem for polytopes with two distinct points. -/
theorem yannakakis_polytope : YannakakisPolytope := fun h v hP hne =>
  Proof.yannakakis_polytope h v hP hne

/-- The extension complexity does not increase under affine maps. -/
theorem xc_image : XcImage := fun g P => Proof.xc_image_le g P

/-- The extension complexity does not increase under slicing by an affine subspace. -/
theorem xc_slice : XcSlice := fun P A => Proof.xc_inter_affine_le P A

/-- Intersecting with a halfspace costs at most one inequality. -/
theorem xc_halfspace : XcHalfspace := fun P g => Proof.xc_inter_halfspace_le P g

/-- The extension complexity of a product is at most the sum. -/
theorem xc_product : XcProduct := fun P Q => Proof.xc_prod_le P Q

/-- The extension complexity of an intersection is at most the sum. -/
theorem xc_intersection : XcIntersection := fun P Q => Proof.xc_inter_le P Q

/-- A polyhedron with `m` inequalities has extension complexity at most `m`. -/
theorem xc_polyhedron : XcPolyhedron := fun h => Proof.xc_polyhedron_le h

/-- The convex hull of `n` points has extension complexity at most `n`. -/
theorem xc_convexHull : XcConvexHull := fun v => Proof.xc_convexHull_le v

/-- The faces of a convex hull are the convex hulls of the points on them. -/
theorem convexHull_face : ConvexHullFace := fun v g hg => Proof.convexHull_inter_zero v g hg

/-- Balas' bound for the convex hull of a union. -/
theorem xc_convexHull_union : XcConvexHullUnion := fun P₁ P₂ h₁ h₂ =>
  Proof.xc_convexHull_union_le P₁ P₂ h₁ h₂

/-- The convex hull of finitely many points contains no half-line. -/
theorem convexHull_no_halfLine : ConvexHullNoHalfLine := fun v x d h =>
  Proof.convexHull_no_halfLine v x d h

/-- Monotonicity, sets in between and affine images for pairs. -/
theorem xcPair_rules : XcPairRules := fun P Q =>
  ⟨fun _ _ hP hQ => (xcPair_mono_right hQ).trans (xcPair_mono_left hP),
    fun _ h1 h2 => xcPair_le_xc h1 h2, fun g => xcPair_image_le g P Q⟩

/-- The rank is at most the nonnegative rank. -/
theorem rank_le_nonnegRank : RankLeNonnegRank := fun M => Proof.rank_le_nonnegRank M

/-- The nonnegative rank is at most the number of rows and the number of columns. -/
theorem nonnegRank_le_card : NonnegRankLeCard := fun M hM =>
  ⟨Proof.nonnegRank_le_card_rows M hM, Proof.nonnegRank_le_card_cols M hM⟩

/-- A matrix and its transpose have the same nonnegative rank. -/
theorem nonnegRank_transpose : NonnegRankTranspose := fun M => Proof.nonnegRank_transpose M

/-- Both ranks are subadditive. -/
theorem rank_add : RankAdd := fun M N => ⟨Proof.nonnegRank_add_le M N, Proof.lpRank_add_le M N⟩

/-- Products with nonnegative matrices do not increase the nonnegative rank. -/
theorem nonnegRank_mul : NonnegRankMul := fun A M B hA hB =>
  ⟨Proof.nonnegRank_mul_left_le A hA M, Proof.nonnegRank_mul_right_le M B hB⟩

/-- Products with nonnegative matrices do not increase the LP rank, with unit column sums on the
right. -/
theorem lpRank_mul : LPRankMul := fun A M B hA hB hsum =>
  ⟨Proof.lpRank_mul_left_le A hA M, Proof.lpRank_mul_right_le M B hB hsum⟩

/-- The nonnegative rank is submultiplicative under the Kronecker product. -/
theorem nonnegRank_kronecker : NonnegRankKronecker := fun M N =>
  Proof.nonnegRank_kronecker_le M N

/-- The nonnegative rank is submultiplicative under the entrywise product. -/
theorem nonnegRank_hadamard : NonnegRankHadamard := fun M N => Proof.nonnegRank_hadamard_le M N

/-- Nonnegative scaling of rows and columns does not increase the nonnegative rank. -/
theorem nonnegRank_scale : NonnegRankScale := fun M d e hd he =>
  Proof.nonnegRank_scale_le M d e hd he

/-- Nonnegative rank zero and nonnegative rank at most one. -/
theorem nonnegRank_small : NonnegRankSmall := fun M =>
  ⟨nonnegRank_eq_zero_iff, Proof.nonnegRank_le_one_iff M⟩

/-- The rectangle covering number through covers. -/
theorem rectangleCover_spec : RectangleCoverSpec := fun _ =>
  ⟨fun _ => rectangleCoverNumber_le_iff, fun _ _ h => h.number_le⟩

/-- The rank-one terms of a nonnegative factorization cover the support by rectangles. -/
theorem factorization_cover : FactorizationCover := fun _ _ _ h =>
  Proof.rectangleCover_of_factorization h

/-- The rectangle covering number of the support is at most the nonnegative rank. -/
theorem rectangleCover_bound : RectangleCoverBound := fun M =>
  Proof.rectangleCoverNumber_le_nonnegRank M

/-- A fooling set bounds the rectangle covering number from below. -/
theorem foolingSet_bound : FoolingSetBound := fun _ _ hF =>
  Proof.foolingSet_le_rectangleCoverNumber hF

/-- Weights with light rectangles bound the size of a rectangle cover from below. -/
theorem weightedCover_bound : WeightedCoverBound := fun _ _ _ w c hc hw hrect =>
  Proof.weight_le_cover hc w hw c hrect

/-- The hyperplane separation bound. -/
theorem hyperplane_separation : HyperplaneSeparation := fun _ _ _ W _ _ h hm0 hm hW =>
  Proof.hyperplane_separation h W hm0 hm hW

/-- Farkas' lemma for spectrahedra, without a strictly feasible point. -/
theorem sdp_farkas : SDPFarkas := fun L G w hne hw => Proof.sdp_farkas L G w hne hw

/-- The trace of a product of two positive semidefinite matrices is nonnegative. -/
theorem trace_mul_nonneg : TraceMulNonneg := fun _ _ hA hB => Proof.trace_mul_nonneg hA hB

/-- The PSD rank through factorizations. -/
theorem psdRank_spec : PSDRankSpec := fun _ =>
  ⟨fun _ => psdRank_le_iff, fun _ _ h => h.psdRank_le⟩

/-- The SDP rank through factorizations. -/
theorem sdpRank_spec : SDPRankSpec := fun _ =>
  ⟨fun _ => sdpRank_le_iff, fun _ _ _ h => h.sdpRank_le⟩

/-- SDP rank and PSD rank differ by at most one. -/
theorem sdpRank_bounds : SDPRankBounds := fun M =>
  ⟨Proof.sdpRank_le_psdRank M, Proof.psdRank_le_sdpRank_add_one M⟩

/-- The semidefinite ranks are at most the linear ones. -/
theorem semidefinite_le_linear : SemidefiniteLeLinear := fun M =>
  ⟨Proof.psdRank_le_nonnegRank M, Proof.sdpRank_le_lpRank M⟩

/-- Neither semidefinite rank increases when rows and columns are selected. -/
theorem psdRank_submatrix : PSDRankSubmatrix := fun M f g =>
  ⟨Proof.psdRank_submatrix_le M f g, Proof.sdpRank_submatrix_le M f g⟩

/-- Two rows with zeros and constant sum absorb the shift of an SDP factorization. -/
theorem absorb_shift_sdp : AbsorbShiftSDP := fun _ _ _ _ h _ _ _ hc hsum hz₁ hz₂ =>
  h.absorb hc hsum hz₁ hz₂

/-- A matrix and its transpose have the same PSD rank. -/
theorem psdRank_transpose : PSDRankTranspose := fun M => Proof.psdRank_transpose M

/-- Both semidefinite ranks are subadditive. -/
theorem psdRank_add : PSDRankAdd := fun M N =>
  ⟨Proof.psdRank_add_le M N, Proof.sdpRank_add_le M N⟩

/-- Products with nonnegative matrices do not increase the PSD rank. -/
theorem psdRank_mul : PSDRankMul := fun R M C hR hC =>
  ⟨Proof.psdRank_mul_left_le R hR M, Proof.psdRank_mul_right_le M C hC⟩

/-- Products with nonnegative matrices do not increase the SDP rank, with unit column sums on
the right. -/
theorem sdpRank_mul : SDPRankMul := fun R M C hR hC hsum =>
  ⟨Proof.sdpRank_mul_left_le R hR M, Proof.sdpRank_mul_right_le M C hC hsum⟩

/-- The PSD rank is submultiplicative under the Kronecker product. -/
theorem psdRank_kronecker : PSDRankKronecker := fun M N => Proof.psdRank_kronecker_le M N

/-- The PSD rank is submultiplicative under the entrywise product. -/
theorem psdRank_hadamard : PSDRankHadamard := fun M N => Proof.psdRank_hadamard_le M N

/-- The rank is at most the dimension of the symmetric matrices of the size of the PSD rank. -/
theorem rank_le_psdRank : RankLePSDRank := fun M r h => Proof.rank_le_choose_of_psdRank_le M r h

/-- An SDP formulation of a matrix gives an SDP factorization of the same size. -/
theorem sdp_formulation_factorization : SDPFormulationFactorization := fun M L G p w h =>
  Proof.sdp_formulation_factorization M L G p w h

/-- An SDP factorization of a matrix is an SDP formulation over the positive semidefinite cone. -/
theorem sdp_factorization_formulation : SDPFactorizationFormulation := fun M A B μ h =>
  Proof.sdp_factorization_formulation M A B μ h

/-- The SDP rank is the least size of an SDP formulation. -/
theorem sdp_formulation_complexity : SDPFormulationComplexity := fun M r =>
  Proof.sdp_formulation_complexity M r

/-- The semidefinite extension complexity through extensions. -/
theorem xcPSD_spec : XcPSDSpec := fun _ => ⟨fun _ => xcPSD_le_iff, fun _ _ _ h => h.xcPSD_le⟩

/-- The semidefinite extension complexity is at most the extension complexity. -/
theorem xcPSD_le_xc : XcPSDLeXc := fun S => Proof.xcPSD_le_xc S

/-- A PSD extension between points and inequalities gives an SDP factorization of the slack
matrix. -/
theorem psd_extension_factorization : PSDExtensionFactorization := fun _ _ _ _ h v hK hv hh =>
  Proof.psd_extension_factorization hK h v hv hh

/-- An SDP factorization of a slack matrix gives a PSD extension between points and
inequalities. -/
theorem psd_factorization_extension : PSDFactorizationExtension := fun h v A B μ hf =>
  Proof.psd_factorization_extension h v A B μ hf

/-- The factorization theorem for pairs, semidefinite case. -/
theorem psd_sandwich_theorem : PSDSandwichTheorem := fun h v => Proof.psd_sandwich h v

/-- The SDP rank of a slack matrix is a lower bound on the semidefinite extension complexity. -/
theorem psd_slack_lower_bound_sdp : PSDSlackLowerBoundSDP := fun _ h v hv hh =>
  Proof.sdpRank_slackMatrix_le_xcPSD h v hv hh

/-- The PSD rank of a slack matrix is a lower bound on the semidefinite extension complexity. -/
theorem psd_slack_lower_bound : PSDSlackLowerBound := fun h v hh hne =>
  Proof.psdRank_slackMatrix_le_xcPSD h v hh hne

/-- Yannakakis' theorem, semidefinite case with the SDP rank. -/
theorem yannakakis_sdp : YannakakisSDP := fun h v hP => Proof.yannakakis_sdp h v hP

/-- Yannakakis' theorem, semidefinite case, for polytopes with two distinct points. -/
theorem yannakakis_psd : YannakakisPSD := fun h v hP hne => Proof.yannakakis_psd h v hP hne

/-- The semidefinite extension complexity does not increase under affine maps. -/
theorem xcPSD_image : XcPSDImage := fun g S => Proof.xcPSD_image_le g S

/-- The semidefinite extension complexity does not increase under slicing. -/
theorem xcPSD_slice : XcPSDSlice := fun S A => Proof.xcPSD_inter_affine_le S A

/-- The semidefinite extension complexity of a product is at most the sum. -/
theorem xcPSD_product : XcPSDProduct := fun S S' => Proof.xcPSD_prod_le S S'

/-- The semidefinite extension complexity of an intersection is at most the sum. -/
theorem xcPSD_intersection : XcPSDIntersection := fun S S' => Proof.xcPSD_inter_le S S'

/-- Shifts and row scaling increase neither the LP rank nor the SDP rank. -/
theorem row_operations : RowOperations := fun M t ht =>
  ⟨Proof.lpRank_shift_le M t ht, Proof.sdpRank_shift_le M t ht,
    Proof.lpRank_scaleRows_le M t ht, Proof.sdpRank_scaleRows_le M t ht⟩

/-- Affine reductions bound the LP rank and the SDP rank. -/
theorem affine_reduction_rank : AffineReductionRank :=
  fun M₁ M₂ A B R C t hR hC hsum ht h =>
    ⟨Proof.lpRank_affine_combination M₁ M₂ A B R C t hR hC hsum ht h,
      Proof.sdpRank_affine_combination M₁ M₂ A B R C t hR hC hsum ht h⟩

/-- Reductions with distortion bound the LP rank and the SDP rank. -/
theorem reduction_rank : ReductionRank := fun M₂ f g N₁ N₂ =>
  ⟨Proof.lpRank_reduction M₂ f g N₁ N₂, Proof.sdpRank_reduction M₂ f g N₁ N₂⟩

/-- The LP formulation complexity through formulations. -/
theorem fcLP_spec : FcLPSpec := fun _ hτ val C Sd =>
  ⟨fun r => Proof.fcLP_le_iff hτ val C Sd r, fun _ _ _ _ h => Proof.fcLP_le_card hτ h⟩

/-- The SDP formulation complexity through formulations. -/
theorem fcSDP_spec : FcSDPSpec := fun _ hτ val C Sd =>
  ⟨fun r => Proof.fcSDP_le_iff hτ val C Sd r, fun _ _ _ _ h => Proof.fcSDP_le_card hτ h⟩

/-- The formulation complexities of a problem are the LP rank and the SDP rank of its slack
matrix. -/
theorem problem_factorization : ProblemFactorization := fun _ hτ val C Sd =>
  ⟨Proof.fcLP_eq hτ val C Sd, Proof.fcSDP_eq hτ val C Sd⟩

/-- The formulation complexities of a problem are the extension complexities of a pair, for
every linear encoding. -/
theorem problem_encoding : ProblemEncoding := fun _ hτ val C Sd p w hw =>
  Proof.problem_encoding hτ val C Sd p w hw

/-- If the guarantees describe the convex hull of the encoded solutions, the formulation
complexities are its extension complexities. -/
theorem problem_exact : ProblemExact := fun _ hτ val C Sd p w hw hP =>
  Proof.problem_exact hτ val C Sd p w hw hP

/-- The formulation complexities are monotone in the guarantees. -/
theorem guarantee_monotone : GuaranteeMonotone := fun _ hτ val C₁ Sd₁ C₂ Sd₂ hC hS =>
  Proof.fc_mono hτ val C₁ Sd₁ C₂ Sd₂ hC hS

/-- Affine reductions between optimization problems. -/
theorem affine_reduction : AffineReduction :=
  fun _ _ hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ A B b a μ ha h =>
    Proof.affine_reduction hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ A B b a μ ha h

/-- Reductions with distortion between optimization problems. -/
theorem problem_reduction : ProblemReduction :=
  fun _ _ hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ inst sol N₁ N₂ h =>
    Proof.problem_reduction hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ inst sol N₁ N₂ h

/-- Reductions by maps between optimization problems. -/
theorem map_reduction : MapReduction :=
  fun _ _ hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ inst sol ρ σ h =>
    Proof.map_reduction hτ₁ hτ₂ val₁ C₁ Sd₁ val₂ C₂ Sd₂ inst sol ρ σ h

/-- From completeness and soundness to an approximation factor of a minimization problem. -/
theorem reduction_to_min : ReductionToMin :=
  fun val₁ val₂ opt₂ inst sol μ ζ _ _ hc hs hζ hopt hval hexact =>
    Proof.reduction_to_min val₁ val₂ opt₂ inst sol μ ζ hc hs hζ hopt hval hexact

/-- From completeness and soundness to an approximation factor of a maximization problem. -/
theorem reduction_to_max : ReductionToMax :=
  fun val₁ val₂ opt₂ inst sol μ ζ _ _ hc hs hζ hopt hval hexact =>
    Proof.reduction_to_max val₁ val₂ opt₂ inst sol μ ζ hc hs hζ hopt hval hexact

/-- The entropy of a distribution lies between zero and the logarithm of the number of points. -/
theorem entropy_bounds : EntropyBounds := fun _ hp => ⟨entropy_nonneg hp, entropy_le_log_card hp⟩

/-- Laws of random variables. -/
theorem law_spec : LawSpec := fun P X =>
  ⟨fun hP => hP.law X, fun g => sum_law_mul P X g, fun f => law_comp P X f⟩

/-- Gibbs' inequality, with its case of equality. -/
theorem gibbs_inequality : GibbsInequality := fun q r hq hr hac =>
  ⟨gibbs q r hq hr hac, fun h => gibbs_eq q r hq hr hac h⟩

/-- A function of a random variable has less entropy. -/
theorem entropy_of_function : EntropyOfFunction := fun _ hP X f =>
  ⟨entropy_law_comp_le hP X f, fun g hg =>
    entropy_law_congr hP f g (fun _ => rfl) fun ω => (hg ω).symm⟩

/-- Conditional mutual information is nonnegative. -/
theorem strong_subadditivity : StrongSubadditivity := fun _ hP X Y Z =>
  condMutualInfo_nonneg hP X Y Z

/-- The bounds on the conditional entropy. -/
theorem condEntropy_bounds : CondEntropyBounds := fun _ hP X Y Z =>
  ⟨condEntropy_nonneg hP.1 X _, condEntropy_pair_le hP.1 X Y Z, condEntropy_le_entropy hP X Z,
    entropy_law_le_log_card hP X⟩

/-- The bounds on mutual information. -/
theorem mutualInfo_bounds : MutualInfoBounds := fun _ hP X Y Z =>
  ⟨condMutualInfo_comm hP.1 X Y Z, condMutualInfo_le_condEntropy hP.1 X Y Z,
    condMutualInfo_const hP X Y, mutualInfo_nonneg hP X Y⟩

/-- The chain rules for entropy and mutual information. -/
theorem chain_rule : ChainRule := fun _ hP X X' Y Z =>
  ⟨condEntropy_pair hP X Y Z, condMutualInfo_pair hP X X' Y Z,
    condMutualInfo_pair_right hP Y X X' Z⟩

/-- The data processing inequality. -/
theorem data_processing : DataProcessing := fun _ hP X f Y Z =>
  ⟨condMutualInfo_comp_le hP X f Y Z, condMutualInfo_comp_right_le hP Y X f Z,
    condEntropy_comp_le hP X f Z⟩

/-- Conditional independence through the joint law. -/
theorem conditional_independence : ConditionalIndependence := fun _ hP X Y Z =>
  ⟨condMutualInfo_eq_zero_iff hP X Y Z, fun f g h =>
    condMutualInfo_eq_zero_of_prod hP X Y Z f g h⟩

/-- Conditioning on an independent variable does not increase the information. -/
theorem conditioning_monotone : ConditioningMonotone := fun _ hP X Y C Z h =>
  condMutualInfo_cond_le hP X Y C Z h

/-- The direct sum inequality for two variables. -/
theorem direct_sum_pair : DirectSumPair := fun _ hP X₁ X₂ Y Z h =>
  condMutualInfo_pair_ge hP X₁ X₂ Y Z h

/-- The conditional entropy of a family is subadditive, and additive for product laws. -/
theorem condEntropy_subadditive : CondEntropySubadditive := fun _ hP X W =>
  ⟨condEntropy_pi_le hP X W, fun g h => condEntropy_pi_of_prod X W hP g h⟩

/-- The direct sum inequality. -/
theorem direct_sum : DirectSum := fun _ hP X Y Z g h =>
  sum_condMutualInfo_le_of_prod hP X Y Z g h

/-- Conditional entropy and conditional mutual information as averages. -/
theorem conditioning_average : ConditioningAverage := fun _ hP X Y Z =>
  ⟨fun _ hc => isDistribution_condOn hP hc, condEntropy_eq_sum_condOn hP X Z,
    condMutualInfo_eq_sum_condOn hP X Y Z⟩

/-- The entropy of a product distribution. -/
theorem entropy_product : EntropyProduct := fun _ _ hp hq => entropy_prod hp hq

/-- Conditional mutual information depends only on the joint law. -/
theorem information_of_law : InformationOfLaw := fun P =>
  ⟨fun P' X Y Z X' Y' Z' h => condMutualInfo_eq_of_law P P' X Y Z X' Y' Z' h,
    fun Φ A B C => condMutualInfo_law_comp P Φ A B C⟩

/-- The condition, the row and the column of a seed have a law that depends only on the matrix
and the condition. -/
theorem seed_marginal : SeedMarginal := fun _ ω _ _ h z a b => law_seedLaw_condition ω h z a b

/-- Rows and columns are independent given the seed, for product conditions. -/
theorem seed_independence : SeedIndependence := fun _ _ _ f g hω hT hU hprod =>
  ⟨condMutualInfo_seedLaw_eq_zero hω hT hU f g hprod,
    condMutualInfo_le_seedInfo hω hT hU f g hprod⟩

/-- The information of a seed is between zero and the logarithm of the number of its values. -/
theorem seedInfo_bounds : SeedInfoBounds := fun _ _ _ hω hT hU =>
  ⟨seedInfo_nonneg hω hT hU, seedInfo_le_log_card hω hT hU⟩

/-- The common information through seeds. -/
theorem commonInfo_spec : CommonInfoSpec := fun M _ hω =>
  ⟨commonInfoGiven_nonneg hω M, fun _ _ h => commonInfoGiven_le hω h, fun _ hM h =>
    le_commonInfoGiven hM h⟩

/-- The common information is at most the logarithm of the nonnegative rank. -/
theorem commonInfo_le_log_rank : CommonInfoLeLogRank := fun M _ hω r hr =>
  Proof.commonInfoGiven_le_log_rank hω M r hr

/-- The common information is invariant under positive scaling. -/
theorem commonInfo_scale : CommonInfoScale := fun M ω _ hc => Proof.commonInfoGiven_smul M ω hc

/-- The common information lies between the mutual information and the entropies of the row and
the column. -/
theorem commonInfo_bounds : CommonInfoBounds := fun _ hM => Proof.commonInfo_bounds hM

/-- The common information of an identity matrix. -/
theorem commonInfo_identity : CommonInfoIdentity := Proof.commonInfo_one

/-- The common information does not depend on the names of rows, columns and conditions. -/
theorem commonInfo_relabel : CommonInfoRelabel := fun M ω hM hω eΛ eI eJ =>
  ⟨commonInfoGiven_reindex M ω hM hω eΛ eI eJ, commonInfo_submatrix M hM eI eJ⟩

/-- Averaging the left factor and the shift over a finite group. -/
theorem symmetric_average : SymmetricAverage := fun _ _ _ _ h hM hU =>
  ⟨_, _, h.average hM hU⟩

/-- A symmetric LP formulation gives a symmetric LP factorization. -/
theorem symmetric_formulation_factorization : SymmetricFormulationFactorization :=
  fun M L s p w ρ h => Proof.symmetric_formulation_factorization M L s p w ρ h

/-- A symmetric LP factorization is a symmetric LP formulation over the orthant. -/
theorem symmetric_factorization_formulation : SymmetricFactorizationFormulation :=
  fun M T U μ h => Proof.symmetric_factorization_formulation M T U μ h

/-- Averaging preimages gives a section that is permuted by the group. -/
theorem equivariant_section : EquivariantSection := fun Q hQ ρ η π v hstable hπ hv hpre =>
  exists_equivariant_section Q hQ ρ η π v hstable hπ hv hpre

/-- A symmetric extension gives symmetric LP factorizations of invariant slack matrices. -/
theorem symmetric_extension_factorization : SymmetricExtensionFactorization :=
  fun P L s π ρ η h v hext hv hh hvG hhG =>
    Proof.symmetric_extension_factorization P L s π ρ η hext h v hv hh hvG hhG

/-- A symmetric LP factorization of a slack matrix gives a symmetric extension. -/
theorem symmetric_factorization_extension : SymmetricFactorizationExtension :=
  fun η h v T U μ hf hhG => Proof.symmetric_factorization_extension η h v T U μ hf hhG

/-- Rows are invariant under stabilizers, which have small index. -/
theorem stabilizer_rows : StabilizerRows := fun _ k =>
  ⟨fun hU _ hg j => hU.apply_stabilizer k hg j, stabilizer_index_le k⟩

/-- The certificate of Braun and Pokutta, for matrices. -/
theorem symmetric_certificate_matrix : SymmetricCertificateMatrix :=
  fun M T U μ c blocks hf hU hc hblocks hsum i =>
    Proof.symmetric_certificate_matrix M T U μ hf hU c hc blocks hblocks hsum i

/-- The certificate of Braun and Pokutta against small symmetric extensions. -/
theorem symmetric_certificate : SymmetricCertificate :=
  fun P L s π ρ η v c blocks hext hv hvG hc hblocks hsum =>
    Proof.symmetric_certificate P L s π ρ η hext v hv hvG c hc blocks hblocks hsum
Formal verification — ✅ all 177 formal results are kernel-checked

Checked at commit 55192f735d5d. The formal statement is machine-checked; that it matches the prose is checked by review. What “checked” means.

Lean IsNonnegFactorization · ◇ elaborated · source

Definition in Lean
/-- `T` and `U` form a **nonnegative factorization** of `M`: both are entrywise nonnegative and
`M = T U`, that is, `M i j = ∑ k, T i k * U k j`. The number of elements of `κ` is the size of the
factorization. -/
def IsNonnegFactorization (M : Matrix I J ℝ) (T : Matrix I κ ℝ) (U : Matrix κ J ℝ) : Prop :=
  (∀ i k, 0 ≤ T i k) ∧ (∀ k j, 0 ≤ U k j) ∧ ∀ i j, M i j = ∑ k, T i k * U k j

Lean IsLPFactorization · ◇ elaborated · source

Definition in Lean
/-- `T`, `U` and the shift `μ` form an **LP factorization** of `M`: they are entrywise
nonnegative and `M = T U + μ 𝟙ᵀ`, that is, `M i j = ∑ k, T i k * U k j + μ i`. The shift adds the
same nonnegative number to all entries of a row and does not count towards the size. -/
def IsLPFactorization (M : Matrix I J ℝ) (T : Matrix I κ ℝ) (U : Matrix κ J ℝ)
    (μ : I → ℝ) : Prop :=
  (∀ i k, 0 ≤ T i k) ∧ (∀ k j, 0 ≤ U k j) ∧ (∀ i, 0 ≤ μ i) ∧
    ∀ i j, M i j = ∑ k, T i k * U k j + μ i

Lean nonnegRank · ◇ elaborated · source

Definition in Lean
/-- The **nonnegative rank** of `M`: the least size of a nonnegative factorization of `M`, and
`⊤` if there is none. -/
noncomputable def nonnegRank (M : Matrix I J ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (T : Matrix I (Fin r) ℝ) (U : Matrix (Fin r) J ℝ),
    IsNonnegFactorization M T U), (r : ℕ∞)

Lean lpRank · ◇ elaborated · source

Definition in Lean
/-- The **LP rank** of `M`: the least size of an LP factorization of `M`, and `⊤` if there is
none. -/
noncomputable def lpRank (M : Matrix I J ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (T : Matrix I (Fin r) ℝ) (U : Matrix (Fin r) J ℝ) (μ : I → ℝ),
    IsLPFactorization M T U μ), (r : ℕ∞)

Lean polyhedron · ◇ elaborated · source

Definition in Lean
/-- The **polyhedron** cut out of the affine subspace `L` by the inequalities `0 ≤ s k x`. -/
def polyhedron (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) : Set F :=
  {x | x ∈ L ∧ ∀ k, 0 ≤ s k x}

Lean IsLPFormulation · ◇ elaborated · source

Definition in Lean
/-- An **LP formulation** of the matrix `M`: the points `p j` lie in the polyhedron
`polyhedron L s`, the affine functions `w i` are nonnegative on it, and `w i (p j) = M i j`. Its
size is the number of inequalities, the number of elements of `κ`. -/
def IsLPFormulation (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ)
    (p : J → F) (w : I → F →ᵃ[ℝ] ℝ) : Prop :=
  (∀ j, p j ∈ polyhedron L s) ∧ (∀ i, ∀ x ∈ polyhedron L s, 0 ≤ w i x) ∧
    ∀ i j, w i (p j) = M i j

Lean slackMatrix · ◇ elaborated · source

Definition in Lean
/-- The **slack matrix** of the points `v j` with respect to the affine functions `h i`: its entry
at `(i, j)` is `h i (v j)`. For `h i x = b i - ⟨a i, x⟩` this is the slack of the point `v j` in
the inequality `⟨a i, x⟩ ≤ b i`. -/
def slackMatrix (h : I → E →ᵃ[ℝ] ℝ) (v : J → E) : Matrix I J ℝ :=
  fun i j => h i (v j)

Lean IsExtension · ◇ elaborated · source

Definition in Lean
/-- The polyhedron `polyhedron L s` with the affine map `π` is an **extension** of the set `P`:
the image of the polyhedron under `π` is `P`. Its size is the number of inequalities, the number
of elements of `κ`. -/
def IsExtension (P : Set E) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ)
    (π : F →ᵃ[ℝ] E) : Prop :=
  π '' polyhedron L s = P

Lean HasExtension · ◇ elaborated · source

Definition in Lean
/-- The set `P` has an extension with `r` inequalities, in some `ℝ^d`. -/
def HasExtension (P : Set E) (r : ℕ) : Prop :=
  ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ)) (s : Fin r → (Fin d → ℝ) →ᵃ[ℝ] ℝ)
    (π : (Fin d → ℝ) →ᵃ[ℝ] E), IsExtension P L s π

Lean xc · ◇ elaborated · source

Definition in Lean
/-- The **extension complexity** of the set `P`: the least number of inequalities of an extension
of `P`, and `⊤` if `P` has no extension. -/
noncomputable def xc (P : Set E) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : HasExtension P r), (r : ℕ∞)

Lean xcPair · ◇ elaborated · source

Definition in Lean
/-- The **extension complexity of a pair** `P ⊆ Q`: the least extension complexity of a set `K`
with `P ⊆ K ⊆ Q`. -/
noncomputable def xcPair (P Q : Set E) : ℕ∞ :=
  ⨅ (K : Set E) (_ : P ⊆ K ∧ K ⊆ Q), xc K

Lean factorRelaxation · ◇ elaborated · source

Definition in Lean
/-- The **relaxation defined by a factorization**: the set of all `x` for which some `y ≥ 0`
satisfies `h i x = ∑ k, T i k * y k + μ i` for all `i`. -/
def factorRelaxation [Fintype κ] (h : I → E →ᵃ[ℝ] ℝ) (T : Matrix I κ ℝ) (μ : I → ℝ) : Set E :=
  {x | ∃ y : κ → ℝ, (∀ k, 0 ≤ y k) ∧ ∀ i, h i x = ∑ k, T i k * y k + μ i}

Lean support · ◇ elaborated · source

Definition in Lean
/-- The **support** of a matrix: the set of positions of its nonzero entries. -/
def support (M : Matrix I J ℝ) : Set (I × J) :=
  {p | M p.1 p.2 ≠ 0}

Lean IsRectangleCover · ◇ elaborated · source

Definition in Lean
/-- The rectangles `A k ×ˢ B k` form a **rectangle cover** of the set `S` of positions: every
rectangle lies in `S`, and together they cover `S`. -/
def IsRectangleCover (S : Set (I × J)) (A : κ → Set I) (B : κ → Set J) : Prop :=
  (∀ k, A k ×ˢ B k ⊆ S) ∧ S ⊆ ⋃ k, A k ×ˢ B k

Lean rectangleCoverNumber · ◇ elaborated · source

Definition in Lean
/-- The **rectangle covering number** of a set `S` of positions: the least number of rectangles
in a rectangle cover of `S`, and `⊤` if there is no finite cover. -/
noncomputable def rectangleCoverNumber (S : Set (I × J)) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (A : Fin r → Set I) (B : Fin r → Set J), IsRectangleCover S A B), (r : ℕ∞)

Lean IsFoolingSet · ◇ elaborated · source

Definition in Lean
/-- `F` is a **fooling set** for the set `S` of positions: it is contained in `S`, and for two
different positions `(i, j)` and `(i', j')` of `F`, one of `(i, j')` and `(i', j)` is not
in `S`. -/
def IsFoolingSet (S F : Set (I × J)) : Prop :=
  F ⊆ S ∧ ∀ p ∈ F, ∀ q ∈ F, p ≠ q → (p.1, q.2) ∉ S ∨ (q.1, p.2) ∉ S

Lean spectrahedron · ◇ elaborated · source

Definition in Lean
/-- The **spectrahedron** cut out of the affine subspace `L` by the condition that the matrix
`P x` is positive semidefinite, for an affine map `P` into the matrices indexed by `κ`. -/
def spectrahedron (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ) : Set F :=
  {x | x ∈ L ∧ (P x).PosSemidef}

Lean IsPSDFactorization · ◇ elaborated · source

Definition in Lean
/-- `A` and `B` form a **PSD factorization** of `M`: the matrices `A i` and `B j` are positive
semidefinite and `M i j = tr (A i * B j)`. The size of the factorization is the size of these
matrices, the number of elements of `κ`. -/
def IsPSDFactorization (M : Matrix I J ℝ) (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) : Prop :=
  (∀ i, (A i).PosSemidef) ∧ (∀ j, (B j).PosSemidef) ∧ ∀ i j, M i j = (A i * B j).trace

Lean IsSDPFactorization · ◇ elaborated · source

Definition in Lean
/-- `A`, `B` and the shift `μ` form an **SDP factorization** of `M`: the matrices `A i` and `B j`
are positive semidefinite, `μ` is nonnegative and `M i j = tr (A i * B j) + μ i`. The shift does
not count towards the size. -/
def IsSDPFactorization (M : Matrix I J ℝ) (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ)
    (μ : I → ℝ) : Prop :=
  (∀ i, (A i).PosSemidef) ∧ (∀ j, (B j).PosSemidef) ∧ (∀ i, 0 ≤ μ i) ∧
    ∀ i j, M i j = (A i * B j).trace + μ i

Lean psdRank · ◇ elaborated · source

Definition in Lean
/-- The **PSD rank** of `M`: the least size of a PSD factorization of `M`, and `⊤` if there is
none. -/
noncomputable def psdRank (M : Matrix I J ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (A : I → Matrix (Fin r) (Fin r) ℝ) (B : J → Matrix (Fin r) (Fin r) ℝ),
    IsPSDFactorization M A B), (r : ℕ∞)

Lean sdpRank · ◇ elaborated · source

Definition in Lean
/-- The **SDP rank** of `M`: the least size of an SDP factorization of `M`, and `⊤` if there is
none. -/
noncomputable def sdpRank (M : Matrix I J ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (A : I → Matrix (Fin r) (Fin r) ℝ) (B : J → Matrix (Fin r) (Fin r) ℝ)
    (μ : I → ℝ), IsSDPFactorization M A B μ), (r : ℕ∞)

Lean IsSDPFormulation · ◇ elaborated · source

Definition in Lean
/-- An **SDP formulation** of the matrix `M`: the points `p j` lie in the spectrahedron
`spectrahedron L P`, the affine functions `w i` are nonnegative on it, and `w i (p j) = M i j`.
Its size is the size of the matrices `P x`, the number of elements of `κ`. -/
def IsSDPFormulation (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
    (p : J → F) (w : I → F →ᵃ[ℝ] ℝ) : Prop :=
  (∀ j, p j ∈ spectrahedron L P) ∧ (∀ i, ∀ x ∈ spectrahedron L P, 0 ≤ w i x) ∧
    ∀ i j, w i (p j) = M i j

Lean IsPSDExtension · ◇ elaborated · source

Definition in Lean
/-- The spectrahedron `spectrahedron L P` with the affine map `π` is a **PSD extension** of the
set `S`: the image of the spectrahedron under `π` is `S`. Its size is the number of elements
of `κ`. -/
def IsPSDExtension (S : Set E) (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
    (π : F →ᵃ[ℝ] E) : Prop :=
  π '' spectrahedron L P = S

Lean HasPSDExtension · ◇ elaborated · source

Definition in Lean
/-- The set `S` has a PSD extension of size `r`, in some `ℝ^d`. -/
def HasPSDExtension (S : Set E) (r : ℕ) : Prop :=
  ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ)) (P : (Fin d → ℝ) →ᵃ[ℝ] Matrix (Fin r) (Fin r) ℝ)
    (π : (Fin d → ℝ) →ᵃ[ℝ] E), IsPSDExtension S L P π

Lean xcPSD · ◇ elaborated · source

Definition in Lean
/-- The **semidefinite extension complexity** of the set `S`: the least size of a PSD extension
of `S`, and `⊤` if `S` has no PSD extension. -/
noncomputable def xcPSD (S : Set E) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : HasPSDExtension S r), (r : ℕ∞)

Lean xcPSDPair · ◇ elaborated · source

Definition in Lean
/-- The **semidefinite extension complexity of a pair** `S ⊆ Q`: the least semidefinite extension
complexity of a set `K` with `S ⊆ K ⊆ Q`. -/
noncomputable def xcPSDPair (S Q : Set E) : ℕ∞ :=
  ⨅ (K : Set E) (_ : S ⊆ K ∧ K ⊆ Q), xcPSD K

Lean psdRelaxation · ◇ elaborated · source

Definition in Lean
/-- The **semidefinite relaxation defined by a factorization**: the set of all `x` for which some
positive semidefinite `Y` satisfies `h i x = tr (A i * Y) + μ i` for all `i`. -/
def psdRelaxation (h : I → E →ᵃ[ℝ] ℝ) (A : I → Matrix κ κ ℝ) (μ : I → ℝ) : Set E :=
  {x | ∃ Y : Matrix κ κ ℝ, Y.PosSemidef ∧ ∀ i, h i x = (A i * Y).trace + μ i}

Lean IsSoundInstance · ◇ elaborated · source

Definition in Lean
/-- The instance `f` **satisfies the soundness guarantee** `Sd`: `τ * val f s ≤ τ * Sd f` for all
solutions `s`. For `τ = 1` the values of `f` are at most `Sd f`, and for `τ = -1` they are at
least `Sd f`. -/
def IsSoundInstance (τ : ℝ) (val : Inst → Sol → ℝ) (Sd : Inst → ℝ) (f : Inst) : Prop :=
  ∀ s, τ * val f s ≤ τ * Sd f

Lean problemSlack · ◇ elaborated · source

Definition in Lean
/-- The **slack matrix of an optimization problem** with objective `val`, completeness guarantee
`C` and soundness guarantee `Sd`. Its rows are the instances that satisfy the soundness
guarantee, its columns are the solutions, and its entries are `τ * (C f - val f s)`: for `τ = 1`
this is `C f - val f s`, and for `τ = -1` it is `val f s - C f`. -/
def problemSlack (τ : ℝ) (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ) :
    Matrix {f : Inst // IsSoundInstance τ val Sd f} Sol ℝ :=
  fun f s => τ * (C f - val f s)

Lean IsLPFormulationOf · ◇ elaborated · source

Definition in Lean
/-- An **LP formulation of an optimization problem**: a polyhedron `polyhedron L s`, a point
`p t` of it for every solution `t`, and for every instance `f` that satisfies the soundness
guarantee an affine function `w f` with `w f (p t) = val f t` whose values on the polyhedron
respect the completeness guarantee: `τ * w f x ≤ τ * C f`. Its size is the number of
inequalities, the number of elements of `κ`. -/
def IsLPFormulationOf (τ : ℝ) (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ)
    (L : AffineSubspace ℝ V) (s : κ → V →ᵃ[ℝ] ℝ) (p : Sol → V) (w : Inst → V →ᵃ[ℝ] ℝ) : Prop :=
  (∀ t, p t ∈ polyhedron L s) ∧
    ∀ f, IsSoundInstance τ val Sd f →
      (∀ t, w f (p t) = val f t) ∧ ∀ x ∈ polyhedron L s, τ * w f x ≤ τ * C f

Lean IsSDPFormulationOf · ◇ elaborated · source

Definition in Lean
/-- An **SDP formulation of an optimization problem**: as an LP formulation, with a spectrahedron
`spectrahedron L G` in place of the polyhedron. Its size is the size of the matrices `G x`, the
number of elements of `κ`. -/
def IsSDPFormulationOf (τ : ℝ) (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ)
    (L : AffineSubspace ℝ V) (G : V →ᵃ[ℝ] Matrix κ κ ℝ) (p : Sol → V)
    (w : Inst → V →ᵃ[ℝ] ℝ) : Prop :=
  (∀ t, p t ∈ spectrahedron L G) ∧
    ∀ f, IsSoundInstance τ val Sd f →
      (∀ t, w f (p t) = val f t) ∧ ∀ x ∈ spectrahedron L G, τ * w f x ≤ τ * C f

Lean fcLP · ◇ elaborated · source

Definition in Lean
/-- The **LP formulation complexity** of an optimization problem with guarantees `C` and `Sd`:
the least number of inequalities of an LP formulation in some `ℝ^d`, and `⊤` if there is none. -/
noncomputable def fcLP (τ : ℝ) (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ))
    (s : Fin r → (Fin d → ℝ) →ᵃ[ℝ] ℝ) (p : Sol → Fin d → ℝ)
    (w : Inst → (Fin d → ℝ) →ᵃ[ℝ] ℝ), IsLPFormulationOf τ val C Sd L s p w), (r : ℕ∞)

Lean fcSDP · ◇ elaborated · source

Definition in Lean
/-- The **SDP formulation complexity** of an optimization problem with guarantees `C` and `Sd`:
the least size of an SDP formulation in some `ℝ^d`, and `⊤` if there is none. -/
noncomputable def fcSDP (τ : ℝ) (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ) : ℕ∞ :=
  ⨅ (r : ℕ) (_ : ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ))
    (G : (Fin d → ℝ) →ᵃ[ℝ] Matrix (Fin r) (Fin r) ℝ) (p : Sol → Fin d → ℝ)
    (w : Inst → (Fin d → ℝ) →ᵃ[ℝ] ℝ), IsSDPFormulationOf τ val C Sd L G p w), (r : ℕ∞)

Lean IsDistribution · ◇ elaborated · source

Definition in Lean
/-- A **probability distribution** on a finite type: a nonnegative function with sum one. -/
def IsDistribution [Fintype Ω] (P : Ω → ℝ) : Prop :=
  (∀ ω, 0 ≤ P ω) ∧ ∑ ω, P ω = 1

Lean entropy · ◇ elaborated · source

Definition in Lean
/-- The **entropy** of a function `p` on a finite type, in nats: `∑ a, -p a * log (p a)`, with
`0 * log 0 = 0`. -/
noncomputable def entropy [Fintype α] (p : α → ℝ) : ℝ :=
  ∑ a, Real.negMulLog (p a)

Lean law · ◇ elaborated · source

Definition in Lean
/-- The **law** of the random variable `X` under `P`: the value at `a` is the total mass of the
points `ω` with `X ω = a`. -/
noncomputable def law [Fintype Ω] (P : Ω → ℝ) (X : Ω → α) (a : α) : ℝ :=
  ∑ ω, (X ⁻¹' {a}).indicator P ω

Lean condEntropy · ◇ elaborated · source

Definition in Lean
/-- The **conditional entropy** `H[X | Z] = H[X, Z] - H[Z]`. -/
noncomputable def condEntropy [Fintype Ω] [Fintype α] [Fintype γ] (P : Ω → ℝ) (X : Ω → α)
    (Z : Ω → γ) : ℝ :=
  entropy (law P fun ω => (X ω, Z ω)) - entropy (law P Z)

Lean mutualInfo · ◇ elaborated · source

Definition in Lean
/-- The **mutual information** `I[X; Y] = H[X] + H[Y] - H[X, Y]`. -/
noncomputable def mutualInfo [Fintype Ω] [Fintype α] [Fintype β] (P : Ω → ℝ) (X : Ω → α)
    (Y : Ω → β) : ℝ :=
  entropy (law P X) + entropy (law P Y) - entropy (law P fun ω => (X ω, Y ω))

Lean condMutualInfo · ◇ elaborated · source

Definition in Lean
/-- The **conditional mutual information**
`I[X; Y | Z] = H[X, Z] + H[Y, Z] - H[X, Y, Z] - H[Z]`. -/
noncomputable def condMutualInfo [Fintype Ω] [Fintype α] [Fintype β] [Fintype γ] (P : Ω → ℝ)
    (X : Ω → α) (Y : Ω → β) (Z : Ω → γ) : ℝ :=
  entropy (law P fun ω => (X ω, Z ω)) + entropy (law P fun ω => (Y ω, Z ω)) -
    entropy (law P fun ω => (X ω, Y ω, Z ω)) - entropy (law P Z)

Lean condOn · ◇ elaborated · source

Definition in Lean
/-- The distribution `P` **conditioned on the event** `E`: the restriction of `P` to `E`, divided
by the mass of `E`. It is zero if `E` has mass zero. -/
noncomputable def condOn [Fintype Ω] (P : Ω → ℝ) (E : Set Ω) (ω : Ω) : ℝ :=
  E.indicator P ω / ∑ ω', E.indicator P ω'

Lean inducedLaw · ◇ elaborated · source

Definition in Lean
/-- The **induced distribution** of the matrix `M`: the pair `(a, b)` has probability
`M a b / ∑ M`. -/
noncomputable def inducedLaw (M : Matrix I J ℝ) (x : I × J) : ℝ :=
  M x.1 x.2 / ∑ a, ∑ b, M a b

Lean seedLaw · ◇ elaborated · source

Definition in Lean
/-- The **seed distribution** of a factorization `(T, U)` under a condition `ω`: the distribution
on the points `(z, a, b, π)` proportional to `ω z a b * (T a π * U π b)`. Its coordinates are the
condition `Z`, the row `A`, the column `B` and the seed `Π`. -/
noncomputable def seedLaw [Fintype K] (ω : Λ → Matrix I J ℝ) (T : Matrix I K ℝ)
    (U : Matrix K J ℝ) (x : Λ × I × J × K) : ℝ :=
  seedWeight ω T U x / ∑ y, seedWeight ω T U y

Lean seedInfo · ◇ elaborated · source

Definition in Lean
/-- The **information of a seed** given a condition: the conditional mutual information
`I[A, B; Π | Z]` under the seed distribution. -/
noncomputable def seedInfo [Fintype K] (ω : Λ → Matrix I J ℝ) (T : Matrix I K ℝ)
    (U : Matrix K J ℝ) : ℝ :=
  condMutualInfo (seedLaw ω T U) (fun x => (x.2.1, x.2.2.1)) (fun x => x.2.2.2) fun x => x.1

Lean commonInfoGiven · ◇ elaborated · source

Definition in Lean
/-- The **common information** of the matrix `M` given the condition `ω`: the infimum of the
information of the seeds, over all nonnegative factorizations of `M`. -/
noncomputable def commonInfoGiven (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ) : ℝ :=
  sInf {v | ∃ (k : ℕ) (T : Matrix I (Fin k) ℝ) (U : Matrix (Fin k) J ℝ),
    IsNonnegFactorization M T U ∧ seedInfo ω T U = v}

omit [Fintype I] [Fintype J] [Fintype Λ] in

Lean commonInfo · ◇ elaborated · source

Definition in Lean
/-- The **common information** of the matrix `M`: the common information given the trivial
condition. -/
noncomputable def commonInfo (M : Matrix I J ℝ) : ℝ :=
  commonInfoGiven M trivialCondition

omit [Fintype Λ] in

Lean IsInvariantMatrix · ◇ elaborated · source

Definition in Lean
/-- The matrix `M` is **invariant** under the group `G` acting on its rows and columns:
`M (g • i) (g • j) = M i j`. -/
def IsInvariantMatrix (G : Type*) [Group G] [MulAction G I] [MulAction G J]
    (M : Matrix I J ℝ) : Prop :=
  ∀ (g : G) (i : I) (j : J), M (g • i) (g • j) = M i j

Lean IsSymmetricLPFactorization · ◇ elaborated · source

Definition in Lean
/-- A **symmetric LP factorization** of `M` for the group `G`, which acts on the rows, the
columns and the index set of the factorization: an LP factorization `M = T U + μ 𝟙ᵀ` in which
`T`, `U` and `μ` are invariant under `G`. -/
def IsSymmetricLPFactorization (G : Type*) [Group G] [MulAction G I] [MulAction G J]
    [MulAction G κ] [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ) (U : Matrix κ J ℝ)
    (μ : I → ℝ) : Prop :=
  IsLPFactorization M T U μ ∧ IsInvariantMatrix G T ∧ IsInvariantMatrix G U ∧
    ∀ (g : G) (i : I), μ (g • i) = μ i

Lean IsSymmetricLPFormulation · ◇ elaborated · source

Definition in Lean
/-- A **symmetric LP formulation** of `M` for the group `G`, which acts on the rows and the
columns of `M`, on the inequalities, and on the space by the affine maps `ρ g`: an LP
formulation such that on the polyhedron the maps `ρ g` stay in the affine subspace and permute
the inequalities, `s (g • k) (ρ g x) = s k x`, the points satisfy `p (g • j) = ρ g (p j)`, and
the functions satisfy `w (g • i) (ρ g x) = w i x`. -/
def IsSymmetricLPFormulation (G : Type*) [Group G] [MulAction G I] [MulAction G J]
    [MulAction G κ] (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ)
    (p : J → F) (w : I → F →ᵃ[ℝ] ℝ) (ρ : G →* (F ≃ᵃ[ℝ] F)) : Prop :=
  IsLPFormulation M L s p w ∧
    (∀ g, ∀ x ∈ polyhedron L s, ρ g x ∈ L) ∧
    (∀ (g : G) (k : κ), ∀ x ∈ polyhedron L s, s (g • k) (ρ g x) = s k x) ∧
    (∀ (g : G) (j : J), p (g • j) = ρ g (p j)) ∧
    ∀ (g : G) (i : I), ∀ x ∈ polyhedron L s, w (g • i) (ρ g x) = w i x

Lean IsSymmetricExtension · ◇ elaborated · source

Definition in Lean
/-- A **symmetric extension** of the set `P` for the group `G`, which acts on the space of `P`
by the affine maps `η g`, on the space of the extension by the affine maps `ρ g`, and on the
inequalities: an extension such that on the polyhedron the maps `ρ g` stay in the affine
subspace and permute the inequalities, and the projection satisfies `π (ρ g x) = η g (π x)`. -/
def IsSymmetricExtension (G : Type*) [Group G] [MulAction G κ] (P : Set E)
    (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) (π : F →ᵃ[ℝ] E) (ρ : G →* (F ≃ᵃ[ℝ] F))
    (η : G →* (E ≃ᵃ[ℝ] E)) : Prop :=
  IsExtension P L s π ∧
    (∀ g, ∀ x ∈ polyhedron L s, ρ g x ∈ L) ∧
    (∀ (g : G) (k : κ), ∀ x ∈ polyhedron L s, s (g • k) (ρ g x) = s k x) ∧
    ∀ g, ∀ x ∈ polyhedron L s, π (ρ g x) = η g (π x)

Lean farkas_lemma · ✅ kernel-checked · source

Statement in Lean
/-- Farkas' lemma for finitely many functionals on a vector space over an ordered field. -/
theorem farkas_lemma : FarkasLemma

where FarkasLemma is (source):

/-- **Farkas' lemma.** Let `a i` be finitely many linear functionals and `c` a linear functional
on a vector space over an ordered field. If `c x ≤ 0` whenever `a i x ≤ 0` for all `i`, then `c`
is a nonnegative combination of the `a i`. -/
def FarkasLemma : Prop :=
  ∀ {𝕜 : Type u} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {E : Type v}
    [AddCommGroup E] [Module 𝕜 E] {ι : Type w} [Fintype ι] (a : ι → E →ₗ[𝕜] 𝕜)
    (c : E →ₗ[𝕜] 𝕜),
    (∀ x, (∀ i, a i x ≤ 0) → c x ≤ 0) → ∃ t : ι → 𝕜, (∀ i, 0 ≤ t i) ∧ c = ∑ i, t i • a i

Lean affine_farkas · ✅ kernel-checked · source

Statement in Lean
/-- Farkas' lemma for an affine function that is nonnegative on a nonempty polyhedron. -/
theorem affine_farkas : AffineFarkas

where AffineFarkas is (source):

/-- **Farkas' lemma, affine form.** An affine function `w` that is nonnegative on a nonempty
polyhedron `{x | ∀ i, 0 ≤ s i x}` is a nonnegative combination of the `s i` plus a nonnegative
constant. -/
def AffineFarkas : Prop :=
  ∀ {𝕜 : Type u} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {E : Type v}
    [AddCommGroup E] [Module 𝕜 E] {ι : Type w} [Fintype ι] (s : ι → E →ᵃ[𝕜] 𝕜)
    (w : E →ᵃ[𝕜] 𝕜),
    (∃ x, ∀ i, 0 ≤ s i x) → (∀ x, (∀ i, 0 ≤ s i x) → 0 ≤ w x) →
      ∃ (t : ι → 𝕜) (t₀ : 𝕜), (∀ i, 0 ≤ t i) ∧ 0 ≤ t₀ ∧ ∀ x, w x = ∑ i, t i * s i x + t₀

Lean affine_farkas_on · ✅ kernel-checked · source

Statement in Lean
/-- The affine form of Farkas' lemma on an affine subspace. -/
theorem affine_farkas_on : AffineFarkasOn

where AffineFarkasOn is (source):

/-- **Farkas' lemma, affine form with equations.** If the affine function `w` is nonnegative on
the nonempty polyhedron cut out of the affine subspace `L` by the inequalities `0 ≤ s i x`, then
on `L` it is a nonnegative combination of the `s i` plus a nonnegative constant. -/
def AffineFarkasOn : Prop :=
  ∀ {𝕜 : Type u} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {E : Type v}
    [AddCommGroup E] [Module 𝕜 E] {ι : Type w} [Fintype ι] (L : AffineSubspace 𝕜 E)
    (s : ι → E →ᵃ[𝕜] 𝕜) (w : E →ᵃ[𝕜] 𝕜),
    (∃ x ∈ L, ∀ i, 0 ≤ s i x) → (∀ x ∈ L, (∀ i, 0 ≤ s i x) → 0 ≤ w x) →
      ∃ (t : ι → 𝕜) (t₀ : 𝕜), (∀ i, 0 ≤ t i) ∧ 0 ≤ t₀ ∧
        ∀ x ∈ L, w x = ∑ i, t i * s i x + t₀

Lean farkas_infeasible · ✅ kernel-checked · source

Statement in Lean
/-- The certificate of an infeasible system of affine inequalities. -/
theorem farkas_infeasible : FarkasInfeasible

where FarkasInfeasible is (source):

/-- **Infeasible systems.** A finite system of affine inequalities `0 ≤ s i x` has no solution if
and only if a nonnegative combination of the `s i` is the constant `-1`. -/
def FarkasInfeasible : Prop :=
  ∀ {𝕜 : Type u} [Field 𝕜] [LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] {E : Type v}
    [AddCommGroup E] [Module 𝕜 E] {ι : Type w} [Fintype ι] (s : ι → E →ᵃ[𝕜] 𝕜),
    (¬∃ x, ∀ i, 0 ≤ s i x) ↔ ∃ t : ι → 𝕜, (∀ i, 0 ≤ t i) ∧ ∀ x, ∑ i, t i * s i x = -1

Lean lp_duality · ✅ kernel-checked · source

Statement in Lean
/-- Linear programming duality, with attainment. -/
theorem lp_duality : LPDuality

where LPDuality is (source):

/-- **Linear programming duality.** If the affine function `w` is bounded below on the nonempty
polyhedron `{x | ∀ i, 0 ≤ s i x}` of a real vector space, then there are a point `x⋆` of the
polyhedron and multipliers `t ≥ 0` with `w x = w x⋆ + ∑ i, t i * s i x` for all `x`. So `x⋆`
minimizes `w` over the polyhedron, and the multipliers certify it. -/
def LPDuality : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] {ι : Type v} [Fintype ι] (s : ι → E →ᵃ[ℝ] ℝ)
    (w : E →ᵃ[ℝ] ℝ),
    (∃ x, ∀ i, 0 ≤ s i x) → (∃ β, ∀ x, (∀ i, 0 ≤ s i x) → β ≤ w x) →
      ∃ xStar, (∀ i, 0 ≤ s i xStar) ∧ ∃ t : ι → ℝ, (∀ i, 0 ≤ t i) ∧
        ∀ x, w x = w xStar + ∑ i, t i * s i x

/-! ### Nonnegative rank and LP rank -/

Lean nonnegRank_spec · ✅ kernel-checked · source

Statement in Lean
/-- The nonnegative rank through factorizations. -/
theorem nonnegRank_spec : NonnegRankSpec

where NonnegRankSpec is (source):

/-- **The nonnegative rank through factorizations.** The nonnegative rank is at most `r` exactly
when there is a nonnegative factorization indexed by `Fin r`, and a nonnegative factorization with
any finite index type bounds it by the number of indices. -/
def NonnegRankSpec : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    (∀ r : ℕ, nonnegRank M ≤ r ↔
      ∃ (T : Matrix I (Fin r) ℝ) (U : Matrix (Fin r) J ℝ), IsNonnegFactorization M T U) ∧
    ∀ {κ : Type w} [Fintype κ] (T : Matrix I κ ℝ) (U : Matrix κ J ℝ),
      IsNonnegFactorization M T U → nonnegRank M ≤ Fintype.card κ

Lean lpRank_spec · ✅ kernel-checked · source

Statement in Lean
/-- The LP rank through factorizations. -/
theorem lpRank_spec : LPRankSpec

where LPRankSpec is (source):

/-- **The LP rank through factorizations.** The LP rank is at most `r` exactly when there is an LP
factorization indexed by `Fin r`, and an LP factorization with any finite index type bounds it by
the number of indices. -/
def LPRankSpec : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    (∀ r : ℕ, lpRank M ≤ r ↔
      ∃ (T : Matrix I (Fin r) ℝ) (U : Matrix (Fin r) J ℝ) (μ : I → ℝ),
        IsLPFactorization M T U μ) ∧
    ∀ {κ : Type w} [Fintype κ] (T : Matrix I κ ℝ) (U : Matrix κ J ℝ) (μ : I → ℝ),
      IsLPFactorization M T U μ → lpRank M ≤ Fintype.card κ

Lean lpRank_bounds · ✅ kernel-checked · source

Statement in Lean
/-- LP rank and nonnegative rank differ by at most one. -/
theorem lpRank_bounds : LPRankBounds

where LPRankBounds is (source):

/-- **LP rank and nonnegative rank differ by at most one.** -/
def LPRankBounds : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    lpRank M ≤ nonnegRank M ∧ nonnegRank M ≤ lpRank M + 1

Lean rank_submatrix · ✅ kernel-checked · source

Statement in Lean
/-- Neither rank increases when rows and columns are selected. -/
theorem rank_submatrix : RankSubmatrix

where RankSubmatrix is (source):

/-- **Submatrices.** Neither rank increases when rows and columns are selected, and possibly
repeated, by arbitrary maps. -/
def RankSubmatrix : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} (M : Matrix I J ℝ) (f : I' → I)
    (g : J' → J),
    nonnegRank (M.submatrix f g) ≤ nonnegRank M ∧ lpRank (M.submatrix f g) ≤ lpRank M

/-! ### LP formulations of a matrix -/

Lean absorb_shift · ✅ kernel-checked · source

Statement in Lean
/-- Two rows with zeros and constant sum absorb the shift of an LP factorization. -/
theorem absorb_shift : AbsorbShift

where AbsorbShift is (source):

/-- **Absorbing the shift.** Let `(T, U, μ)` be an LP factorization of `M`. If two rows of `M`
have a zero entry each and add up to a positive constant `c`, then
`T i k + μ i * (T i₁ k + T i₂ k) / c` and `U` form a nonnegative factorization of `M`, of the
same size. -/
def AbsorbShift : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ), IsLPFactorization M T U μ →
    ∀ (i₁ i₂ : I) (c : ℝ), 0 < c → (∀ j, M i₁ j + M i₂ j = c) → (∃ j, M i₁ j = 0) →
      (∃ j, M i₂ j = 0) →
      IsNonnegFactorization M (fun i k => T i k + μ i * ((T i₁ k + T i₂ k) / c)) U

Lean formulation_factorization · ✅ kernel-checked · source

Statement in Lean
/-- An LP formulation of a matrix gives an LP factorization of the same size. -/
theorem formulation_factorization : FormulationFactorization

where FormulationFactorization is (source):

/-- **From a formulation to a factorization.** In an LP formulation of `M`, the rows of `M` are
nonnegative combinations of the constraints plus nonnegative constants: with the slacks
`s k (p j)` of the points as right factor, `M` has an LP factorization. -/
def FormulationFactorization : Prop :=
  ∀ {I : Type u} {J : Type v} {F : Type w} {κ : Type x} [AddCommGroup F] [Module ℝ F]
    [Fintype κ] (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) (p : J → F)
    (w : I → F →ᵃ[ℝ] ℝ),
    IsLPFormulation M L s p w →
      ∃ (T : Matrix I κ ℝ) (μ : I → ℝ), IsLPFactorization M T (fun k j => s k (p j)) μ

Lean factorization_formulation · ✅ kernel-checked · source

Statement in Lean
/-- An LP factorization of a matrix is an LP formulation over the nonnegative orthant. -/
theorem factorization_formulation : FactorizationFormulation

where FactorizationFormulation is (source):

/-- **From a factorization to a formulation.** An LP factorization `M = T U + μ 𝟙ᵀ` is an LP
formulation of `M` over the nonnegative orthant of `κ → ℝ`: the points are the columns of `U`,
and the function of row `i` is `x ↦ ∑ k, T i k * x k + μ i`. -/
def FactorizationFormulation : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ),
    IsLPFactorization M T U μ →
      IsLPFormulation M ⊤ coord (fun j k => U k j) (fun i => affineForm (T i) (μ i))

Lean formulation_complexity · ✅ kernel-checked · source

Statement in Lean
/-- The LP rank is the least number of inequalities of an LP formulation. -/
theorem formulation_complexity : FormulationComplexity

where FormulationComplexity is (source):

/-- **Formulation complexity.** The LP rank of `M` is at most `r` if and only if `M` has an LP
formulation with `r` inequalities in some `ℝ^d`. -/
def FormulationComplexity : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ) (r : ℕ),
    lpRank M ≤ r ↔ ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ))
      (s : Fin r → (Fin d → ℝ) →ᵃ[ℝ] ℝ) (p : J → Fin d → ℝ)
      (w : I → (Fin d → ℝ) →ᵃ[ℝ] ℝ), IsLPFormulation M L s p w

/-! ### Extensions -/

Lean xc_spec · ✅ kernel-checked · source

Statement in Lean
/-- The extension complexity through extensions. -/
theorem xc_spec : XcSpec

where XcSpec is (source):

/-- **The extension complexity through extensions.** The extension complexity is at most `r`
exactly when there is an extension with `r` inequalities in some `ℝ^d`, and an extension in any
finite-dimensional space with finitely many inequalities bounds it by their number. -/
def XcSpec : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (P : Set E),
    (∀ r : ℕ, xc P ≤ r ↔ HasExtension P r) ∧
    ∀ {F : Type v} {κ : Type w} [AddCommGroup F] [Module ℝ F] [FiniteDimensional ℝ F]
      [Fintype κ] (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) (π : F →ᵃ[ℝ] E),
      IsExtension P L s π → xc P ≤ Fintype.card κ

Lean extension_factorization · ✅ kernel-checked · source

Statement in Lean
/-- An extension between points and inequalities gives an LP factorization of the slack matrix. -/
theorem extension_factorization : ExtensionFactorization

where ExtensionFactorization is (source):

/-- **From an extension to a factorization.** If the set `K` has an extension with inequalities
indexed by `κ`, contains the points `v j`, and the affine functions `h i` are nonnegative on it,
then the slack matrix has an LP factorization indexed by `κ`. -/
def ExtensionFactorization : Prop :=
  ∀ {E : Type u} {F : Type v} {I : Type w} {J : Type x} {κ : Type y} [AddCommGroup E]
    [Module ℝ E] [AddCommGroup F] [Module ℝ F] [Fintype κ] (K : Set E)
    (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) (π : F →ᵃ[ℝ] E) (h : I → E →ᵃ[ℝ] ℝ)
    (v : J → E),
    IsExtension K L s π → (∀ j, v j ∈ K) → (∀ i, ∀ x ∈ K, 0 ≤ h i x) →
      ∃ (T : Matrix I κ ℝ) (U : Matrix κ J ℝ) (μ : I → ℝ),
        IsLPFactorization (slackMatrix h v) T U μ

Lean factorization_extension · ✅ kernel-checked · source

Statement in Lean
/-- An LP factorization of a slack matrix gives an extension between points and inequalities. -/
theorem factorization_extension : FactorizationExtension

where FactorizationExtension is (source):

/-- **From a factorization to an extension.** An LP factorization `(T, U, μ)` of the slack matrix
of the points `v j` and the functions `h i` defines the set `factorRelaxation h T μ`. It contains
all `v j`, all `h i` are nonnegative on it, and it has an extension with one inequality for each
index of the factorization. -/
def FactorizationExtension : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} {κ : Type x} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] [Fintype κ] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ),
    IsLPFactorization (slackMatrix h v) T U μ →
      (∀ j, v j ∈ factorRelaxation h T μ) ∧ (∀ x ∈ factorRelaxation h T μ, ∀ i, 0 ≤ h i x) ∧
        HasExtension (factorRelaxation h T μ) (Fintype.card κ)

Lean sandwich_theorem · ✅ kernel-checked · source

Statement in Lean
/-- The factorization theorem for pairs. -/
theorem sandwich_theorem : SandwichTheorem

where SandwichTheorem is (source):

/-- **The factorization theorem for pairs.** For points `v j` and affine functions `h i` in a
finite-dimensional space, the extension complexity of the pair formed by the convex hull of the
points and the set `{x | ∀ i, 0 ≤ h i x}` is the LP rank of the slack matrix. -/
def SandwichTheorem : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    xcPair (convexHull ℝ (Set.range v)) {x | ∀ i, 0 ≤ h i x} = lpRank (slackMatrix h v)

Lean slack_lower_bound_lp · ✅ kernel-checked · source

Statement in Lean
/-- The LP rank of a slack matrix is a lower bound on the extension complexity. -/
theorem slack_lower_bound_lp : SlackLowerBoundLP

where SlackLowerBoundLP is (source):

/-- **The lower bound from a slack matrix, with the LP rank.** If the set `K` contains the points
`v j` and the affine functions `h i` are nonnegative on it, then the LP rank of the slack matrix
is at most the extension complexity of `K`. -/
def SlackLowerBoundLP : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E] (K : Set E)
    (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    (∀ j, v j ∈ K) → (∀ i, ∀ x ∈ K, 0 ≤ h i x) → lpRank (slackMatrix h v) ≤ xc K

Lean slack_lower_bound · ✅ kernel-checked · source

Statement in Lean
/-- The nonnegative rank of a slack matrix is a lower bound on the extension complexity. -/
theorem slack_lower_bound : SlackLowerBound

where SlackLowerBound is (source):

/-- **The lower bound from a slack matrix.** For finitely many points `v j`, two of them
distinct, and affine functions `h i` that are nonnegative at these points, the nonnegative rank
of the slack matrix is at most the extension complexity of the convex hull of the points. The
functions need not describe the convex hull. -/
def SlackLowerBound : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E] [Finite J]
    (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    (∀ i j, 0 ≤ h i (v j)) → (∃ j₁ j₂, v j₁ ≠ v j₂) →
      nonnegRank (slackMatrix h v) ≤ xc (convexHull ℝ (Set.range v))

Lean yannakakis_lp · ✅ kernel-checked · source

Statement in Lean
/-- Yannakakis' theorem with the LP rank. -/
theorem yannakakis_lp : YannakakisLP

where YannakakisLP is (source):

/-- **Yannakakis' theorem, with the LP rank.** If the convex hull of the points `v j` is the set
`{x | ∀ i, 0 ≤ h i x}`, its extension complexity is the LP rank of the slack matrix. -/
def YannakakisLP : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    convexHull ℝ (Set.range v) = {x | ∀ i, 0 ≤ h i x} →
      xc (convexHull ℝ (Set.range v)) = lpRank (slackMatrix h v)

Lean yannakakis_polytope · ✅ kernel-checked · source

Statement in Lean
/-- Yannakakis' theorem for polytopes with two distinct points. -/
theorem yannakakis_polytope : YannakakisPolytope

where YannakakisPolytope is (source):

/-- **Yannakakis' theorem.** If the convex hull of finitely many points `v j`, two of them
distinct, is the set `{x | ∀ i, 0 ≤ h i x}`, its extension complexity is the nonnegative rank of
the slack matrix. -/
def YannakakisPolytope : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] [Finite J] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    convexHull ℝ (Set.range v) = {x | ∀ i, 0 ≤ h i x} → (∃ j₁ j₂, v j₁ ≠ v j₂) →
      xc (convexHull ℝ (Set.range v)) = nonnegRank (slackMatrix h v)

/-! ### Rules for the extension complexity -/

Lean xc_image · ✅ kernel-checked · source

Statement in Lean
/-- The extension complexity does not increase under affine maps. -/
theorem xc_image : XcImage

where XcImage is (source):

/-- **Affine images.** The extension complexity does not increase under affine maps. -/
def XcImage : Prop :=
  ∀ {E : Type u} {E' : Type v} [AddCommGroup E] [Module ℝ E] [AddCommGroup E'] [Module ℝ E']
    (g : E →ᵃ[ℝ] E') (P : Set E), xc (g '' P) ≤ xc P

Lean xc_slice · ✅ kernel-checked · source

Statement in Lean
/-- The extension complexity does not increase under slicing by an affine subspace. -/
theorem xc_slice : XcSlice

where XcSlice is (source):

/-- **Slices.** The extension complexity does not increase when a set is intersected with an
affine subspace. -/
def XcSlice : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (P : Set E) (A : AffineSubspace ℝ E),
    xc (P ∩ A) ≤ xc P

Lean xc_halfspace · ✅ kernel-checked · source

Statement in Lean
/-- Intersecting with a halfspace costs at most one inequality. -/
theorem xc_halfspace : XcHalfspace

where XcHalfspace is (source):

/-- **Halfspaces.** Intersecting with a halfspace costs at most one inequality. -/
def XcHalfspace : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (P : Set E) (g : E →ᵃ[ℝ] ℝ),
    xc (P ∩ {x | 0 ≤ g x}) ≤ xc P + 1

Lean xc_product · ✅ kernel-checked · source

Statement in Lean
/-- The extension complexity of a product is at most the sum. -/
theorem xc_product : XcProduct

where XcProduct is (source):

/-- **Products.** The extension complexity of a product is at most the sum. -/
def XcProduct : Prop :=
  ∀ {E : Type u} {E' : Type v} [AddCommGroup E] [Module ℝ E] [AddCommGroup E'] [Module ℝ E']
    (P : Set E) (Q : Set E'), xc (P ×ˢ Q) ≤ xc P + xc Q

Lean xc_intersection · ✅ kernel-checked · source

Statement in Lean
/-- The extension complexity of an intersection is at most the sum. -/
theorem xc_intersection : XcIntersection

where XcIntersection is (source):

/-- **Intersections.** The extension complexity of an intersection is at most the sum. -/
def XcIntersection : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (P Q : Set E), xc (P ∩ Q) ≤ xc P + xc Q

Lean xc_polyhedron · ✅ kernel-checked · source

Statement in Lean
/-- A polyhedron with `m` inequalities has extension complexity at most `m`. -/
theorem xc_polyhedron : XcPolyhedron

where XcPolyhedron is (source):

/-- **Polyhedra.** A polyhedron given by `m` inequalities in a finite-dimensional space has
extension complexity at most `m`. -/
def XcPolyhedron : Prop :=
  ∀ {E : Type u} {I : Type v} [AddCommGroup E] [Module ℝ E] [FiniteDimensional ℝ E]
    [Fintype I] (h : I → E →ᵃ[ℝ] ℝ), xc {x | ∀ i, 0 ≤ h i x} ≤ Fintype.card I

Lean xc_convexHull · ✅ kernel-checked · source

Statement in Lean
/-- The convex hull of `n` points has extension complexity at most `n`. -/
theorem xc_convexHull : XcConvexHull

where XcConvexHull is (source):

/-- **Convex hulls.** The convex hull of `n` points has extension complexity at most `n`. -/
def XcConvexHull : Prop :=
  ∀ {E : Type u} {J : Type v} [AddCommGroup E] [Module ℝ E] [Fintype J] (v : J → E),
    xc (convexHull ℝ (Set.range v)) ≤ Fintype.card J

Lean convexHull_face · ✅ kernel-checked · source

Statement in Lean
/-- The faces of a convex hull are the convex hulls of the points on them. -/
theorem convexHull_face : ConvexHullFace

where ConvexHullFace is (source):

/-- **Faces of a convex hull.** If the affine function `g` is nonnegative at the points `v j`,
the points of their convex hull where `g` vanishes form the convex hull of those `v j` where `g`
vanishes. -/
def ConvexHullFace : Prop :=
  ∀ {E : Type u} {J : Type v} [AddCommGroup E] [Module ℝ E] (v : J → E) (g : E →ᵃ[ℝ] ℝ),
    (∀ j, 0 ≤ g (v j)) →
      convexHull ℝ (Set.range v) ∩ {x | g x = 0} = convexHull ℝ (v '' {j | g (v j) = 0})

Lean xc_convexHull_union · ✅ kernel-checked · source

Statement in Lean
/-- Balas' bound for the convex hull of a union. -/
theorem xc_convexHull_union : XcConvexHullUnion

where XcConvexHullUnion is (source):

/-- **The convex hull of a union.** For two sets that contain no half-line, the extension
complexity of the convex hull of their union is at most the sum of their extension complexities
plus two. -/
def XcConvexHullUnion : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (P₁ P₂ : Set E),
    (∀ x ∈ P₁, ∀ d : E, (∀ t : ℝ, 0 ≤ t → x + t • d ∈ P₁) → d = 0) →
    (∀ x ∈ P₂, ∀ d : E, (∀ t : ℝ, 0 ≤ t → x + t • d ∈ P₂) → d = 0) →
      xc (convexHull ℝ (P₁ ∪ P₂)) ≤ xc P₁ + xc P₂ + 2

Lean convexHull_no_halfLine · ✅ kernel-checked · source

Statement in Lean
/-- The convex hull of finitely many points contains no half-line. -/
theorem convexHull_no_halfLine : ConvexHullNoHalfLine

where ConvexHullNoHalfLine is (source):

/-- **Polytopes contain no half-line.** If `x + t • d` lies in the convex hull of finitely many
points for all `t ≥ 0`, then `d = 0`. -/
def ConvexHullNoHalfLine : Prop :=
  ∀ {E : Type u} {J : Type v} [AddCommGroup E] [Module ℝ E] [Fintype J] (v : J → E) (x d : E),
    (∀ t : ℝ, 0 ≤ t → x + t • d ∈ convexHull ℝ (Set.range v)) → d = 0

Lean xcPair_rules · ✅ kernel-checked · source

Statement in Lean
/-- Monotonicity, sets in between and affine images for pairs. -/
theorem xcPair_rules : XcPairRules

where XcPairRules is (source):

/-- **Rules for pairs.** The extension complexity of a pair `(P, Q)` does not increase when `P`
shrinks or `Q` grows, it is at most the extension complexity of every set between `P` and `Q`,
and it does not increase under affine maps. -/
def XcPairRules : Prop :=
  ∀ {E : Type u} {E' : Type v} [AddCommGroup E] [Module ℝ E] [AddCommGroup E'] [Module ℝ E']
    (P Q : Set E),
    (∀ P' Q' : Set E, P' ⊆ P → Q ⊆ Q' → xcPair P' Q' ≤ xcPair P Q) ∧
    (∀ K : Set E, P ⊆ K → K ⊆ Q → xcPair P Q ≤ xc K) ∧
    ∀ g : E →ᵃ[ℝ] E', xcPair (g '' P) (g '' Q) ≤ xcPair P Q

/-! ### The algebra of the nonnegative rank -/

Lean rank_le_nonnegRank · ✅ kernel-checked · source

Statement in Lean
/-- The rank is at most the nonnegative rank. -/
theorem rank_le_nonnegRank : RankLeNonnegRank

where RankLeNonnegRank is (source):

/-- **Rank.** The rank of a real matrix is at most its nonnegative rank. -/
def RankLeNonnegRank : Prop :=
  ∀ {I : Type u} {J : Type v} [Fintype J] (M : Matrix I J ℝ), (M.rank : ℕ∞) ≤ nonnegRank M

Lean nonnegRank_le_card · ✅ kernel-checked · source

Statement in Lean
/-- The nonnegative rank is at most the number of rows and the number of columns. -/
theorem nonnegRank_le_card : NonnegRankLeCard

where NonnegRankLeCard is (source):

/-- **Rows and columns.** An entrywise nonnegative matrix has nonnegative rank at most its number
of rows and at most its number of columns. -/
def NonnegRankLeCard : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ), (∀ i j, 0 ≤ M i j) →
    (∀ [Fintype I], nonnegRank M ≤ Fintype.card I) ∧
      (∀ [Fintype J], nonnegRank M ≤ Fintype.card J)

Lean nonnegRank_transpose · ✅ kernel-checked · source

Statement in Lean
/-- A matrix and its transpose have the same nonnegative rank. -/
theorem nonnegRank_transpose : NonnegRankTranspose

where NonnegRankTranspose is (source):

/-- **Transposition.** A matrix and its transpose have the same nonnegative rank. -/
def NonnegRankTranspose : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ), nonnegRank Mᵀ = nonnegRank M

Lean rank_add · ✅ kernel-checked · source

Statement in Lean
/-- Both ranks are subadditive. -/
theorem rank_add : RankAdd

where RankAdd is (source):

/-- **Sums.** The nonnegative rank and the LP rank are subadditive. -/
def RankAdd : Prop :=
  ∀ {I : Type u} {J : Type v} (M N : Matrix I J ℝ),
    nonnegRank (M + N) ≤ nonnegRank M + nonnegRank N ∧ lpRank (M + N) ≤ lpRank M + lpRank N

Lean nonnegRank_mul · ✅ kernel-checked · source

Statement in Lean
/-- Products with nonnegative matrices do not increase the nonnegative rank. -/
theorem nonnegRank_mul : NonnegRankMul

where NonnegRankMul is (source):

/-- **Products and the nonnegative rank.** Multiplying by an entrywise nonnegative matrix, from
the left or from the right, does not increase the nonnegative rank. -/
def NonnegRankMul : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} [Fintype I] [Fintype J]
    (A : Matrix I' I ℝ) (M : Matrix I J ℝ) (B : Matrix J J' ℝ),
    (∀ i l, 0 ≤ A i l) → (∀ l j, 0 ≤ B l j) →
      nonnegRank (A * M) ≤ nonnegRank M ∧ nonnegRank (M * B) ≤ nonnegRank M

Lean lpRank_mul · ✅ kernel-checked · source

Statement in Lean
/-- Products with nonnegative matrices do not increase the LP rank, with unit column sums on the
right. -/
theorem lpRank_mul : LPRankMul

where LPRankMul is (source):

/-- **Products and the LP rank.** Multiplying from the left by an entrywise nonnegative matrix
does not increase the LP rank, and neither does multiplying from the right by an entrywise
nonnegative matrix whose columns sum to one. -/
def LPRankMul : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} [Fintype I] [Fintype J]
    (A : Matrix I' I ℝ) (M : Matrix I J ℝ) (B : Matrix J J' ℝ),
    (∀ i l, 0 ≤ A i l) → (∀ l j, 0 ≤ B l j) → (∀ j, ∑ l, B l j = 1) →
      lpRank (A * M) ≤ lpRank M ∧ lpRank (M * B) ≤ lpRank M

Lean nonnegRank_kronecker · ✅ kernel-checked · source

Statement in Lean
/-- The nonnegative rank is submultiplicative under the Kronecker product. -/
theorem nonnegRank_kronecker : NonnegRankKronecker

where NonnegRankKronecker is (source):

/-- **Kronecker products.** The nonnegative rank is submultiplicative under the Kronecker
product. -/
def NonnegRankKronecker : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} (M : Matrix I J ℝ)
    (N : Matrix I' J' ℝ), nonnegRank (M ⊗ₖ N) ≤ nonnegRank M * nonnegRank N

Lean nonnegRank_hadamard · ✅ kernel-checked · source

Statement in Lean
/-- The nonnegative rank is submultiplicative under the entrywise product. -/
theorem nonnegRank_hadamard : NonnegRankHadamard

where NonnegRankHadamard is (source):

/-- **Hadamard products.** The nonnegative rank is submultiplicative under the entrywise
product. -/
def NonnegRankHadamard : Prop :=
  ∀ {I : Type u} {J : Type v} (M N : Matrix I J ℝ),
    nonnegRank (M ⊙ N) ≤ nonnegRank M * nonnegRank N

Lean nonnegRank_scale · ✅ kernel-checked · source

Statement in Lean
/-- Nonnegative scaling of rows and columns does not increase the nonnegative rank. -/
theorem nonnegRank_scale : NonnegRankScale

where NonnegRankScale is (source):

/-- **Scaling.** Scaling rows and columns by nonnegative numbers does not increase the
nonnegative rank. -/
def NonnegRankScale : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ) (d : I → ℝ) (e : J → ℝ),
    (∀ i, 0 ≤ d i) → (∀ j, 0 ≤ e j) →
      nonnegRank (fun i j => d i * M i j * e j : Matrix I J ℝ) ≤ nonnegRank M

Lean nonnegRank_small · ✅ kernel-checked · source

Statement in Lean
/-- Nonnegative rank zero and nonnegative rank at most one. -/
theorem nonnegRank_small : NonnegRankSmall

where NonnegRankSmall is (source):

/-- **Rank zero and rank one.** The nonnegative rank is zero exactly for the zero matrix, and at
most one exactly for the outer products of two nonnegative vectors. -/
def NonnegRankSmall : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    (nonnegRank M = 0 ↔ M = 0) ∧
      (nonnegRank M ≤ 1 ↔ ∃ (u : I → ℝ) (v : J → ℝ), (∀ i, 0 ≤ u i) ∧ (∀ j, 0 ≤ v j) ∧
        ∀ i j, M i j = u i * v j)

/-! ### Lower bounds on the nonnegative rank -/

Lean rectangleCover_spec · ✅ kernel-checked · source

Statement in Lean
/-- The rectangle covering number through covers. -/
theorem rectangleCover_spec : RectangleCoverSpec

where RectangleCoverSpec is (source):

/-- **The rectangle covering number through covers.** The rectangle covering number is at most
`r` exactly when there is a rectangle cover indexed by `Fin r`, and a rectangle cover with any
finite index type bounds it by the number of indices. -/
def RectangleCoverSpec : Prop :=
  ∀ {I : Type u} {J : Type v} (S : Set (I × J)),
    (∀ r : ℕ, rectangleCoverNumber S ≤ r ↔
      ∃ (A : Fin r → Set I) (B : Fin r → Set J), IsRectangleCover S A B) ∧
    ∀ {κ : Type w} [Fintype κ] (A : κ → Set I) (B : κ → Set J),
      IsRectangleCover S A B → rectangleCoverNumber S ≤ Fintype.card κ

Lean factorization_cover · ✅ kernel-checked · source

Statement in Lean
/-- The rank-one terms of a nonnegative factorization cover the support by rectangles. -/
theorem factorization_cover : FactorizationCover

where FactorizationCover is (source):

/-- **The rectangles of a factorization.** The supports of the rank-one terms of a nonnegative
factorization form a rectangle cover of the support of the matrix. -/
def FactorizationCover : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ), IsNonnegFactorization M T U →
      IsRectangleCover (support M) (fun k => {i | 0 < T i k}) (fun k => {j | 0 < U k j})

Lean rectangleCover_bound · ✅ kernel-checked · source

Statement in Lean
/-- The rectangle covering number of the support is at most the nonnegative rank. -/
theorem rectangleCover_bound : RectangleCoverBound

where RectangleCoverBound is (source):

/-- **The rectangle covering bound.** The nonnegative rank of a matrix is at least the rectangle
covering number of its support. -/
def RectangleCoverBound : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    rectangleCoverNumber (support M) ≤ nonnegRank M

Lean foolingSet_bound · ✅ kernel-checked · source

Statement in Lean
/-- A fooling set bounds the rectangle covering number from below. -/
theorem foolingSet_bound : FoolingSetBound

where FoolingSetBound is (source):

/-- **The fooling set bound.** The rectangle covering number of a set of positions is at least
the number of elements of a fooling set for it. -/
def FoolingSetBound : Prop :=
  ∀ {I : Type u} {J : Type v} (S F : Set (I × J)),
    IsFoolingSet S F → F.encard ≤ rectangleCoverNumber S

Lean weightedCover_bound · ✅ kernel-checked · source

Statement in Lean
/-- Weights with light rectangles bound the size of a rectangle cover from below. -/
theorem weightedCover_bound : WeightedCoverBound

where WeightedCoverBound is (source):

/-- **The weighted covering bound.** Let `w` be nonnegative weights on the positions of a finite
matrix such that every rectangle inside `S` has weight at most `c`. If `S` has a rectangle cover
with `r` rectangles, then the weight of `S` is at most `r * c`. -/
def WeightedCoverBound : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype I] [Fintype J] [Fintype κ]
    (S : Set (I × J)) (A : κ → Set I) (B : κ → Set J) (w : I × J → ℝ) (c : ℝ),
    IsRectangleCover S A B → (∀ p, 0 ≤ w p) →
    (∀ (A : Set I) (B : Set J), A ×ˢ B ⊆ S → ∑ p, (A ×ˢ B).indicator w p ≤ c) →
      ∑ p, S.indicator w p ≤ Fintype.card κ * c

Lean hyperplane_separation · ✅ kernel-checked · source

Statement in Lean
/-- The hyperplane separation bound. -/
theorem hyperplane_separation : HyperplaneSeparation

where HyperplaneSeparation is (source):

/-- **The hyperplane separation bound.** Let the finite matrix `M` have a nonnegative
factorization of size `r` and entries at most `m`. If the sums of the entries of a real matrix
`W` over all rectangles are at most `α`, then `∑ i j, W i j * M i j ≤ α * m * r`. -/
def HyperplaneSeparation : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype I] [Fintype J] [Fintype κ]
    (M : Matrix I J ℝ) (T : Matrix I κ ℝ) (U : Matrix κ J ℝ) (W : Matrix I J ℝ) (α m : ℝ),
    IsNonnegFactorization M T U → 0 ≤ m → (∀ i j, M i j ≤ m) →
    (∀ (A : Finset I) (B : Finset J), ∑ i ∈ A, ∑ j ∈ B, W i j ≤ α) →
      ∑ i, ∑ j, W i j * M i j ≤ α * m * Fintype.card κ

/-! ### Farkas' lemma for spectrahedra -/

Lean sdp_farkas · ✅ kernel-checked · source

Statement in Lean
/-- Farkas' lemma for spectrahedra, without a strictly feasible point. -/
theorem sdp_farkas : SDPFarkas

where SDPFarkas is (source):

/-- **Farkas' lemma for spectrahedra.** Let `G` be an affine map into the real matrices indexed by
a finite set and `L` an affine subspace. If the affine function `w` is nonnegative on the nonempty
spectrahedron `{x ∈ L | G x is positive semidefinite}`, then there are a positive semidefinite
matrix `T` and a constant `t₀ ≥ 0` with `w x = tr (T * G x) + t₀` for all points `x` of the
spectrahedron. No strictly feasible point is assumed. -/
def SDPFarkas : Prop :=
  ∀ {F : Type u} {κ : Type v} [AddCommGroup F] [Module ℝ F] [Fintype κ]
    (L : AffineSubspace ℝ F) (G : F →ᵃ[ℝ] Matrix κ κ ℝ) (w : F →ᵃ[ℝ] ℝ),
    (∃ x ∈ L, (G x).PosSemidef) → (∀ x ∈ L, (G x).PosSemidef → 0 ≤ w x) →
      ∃ (T : Matrix κ κ ℝ) (t₀ : ℝ), T.PosSemidef ∧ 0 ≤ t₀ ∧
        ∀ x ∈ L, (G x).PosSemidef → w x = (T * G x).trace + t₀

Lean trace_mul_nonneg · ✅ kernel-checked · source

Statement in Lean
/-- The trace of a product of two positive semidefinite matrices is nonnegative. -/
theorem trace_mul_nonneg : TraceMulNonneg

where TraceMulNonneg is (source):

/-- **The trace of a product.** The trace of a product of two positive semidefinite real matrices
is nonnegative. -/
def TraceMulNonneg : Prop :=
  ∀ {κ : Type u} [Fintype κ] (A B : Matrix κ κ ℝ),
    A.PosSemidef → B.PosSemidef → 0 ≤ (A * B).trace

/-! ### PSD rank and SDP rank -/

Lean psdRank_spec · ✅ kernel-checked · source

Statement in Lean
/-- The PSD rank through factorizations. -/
theorem psdRank_spec : PSDRankSpec

where PSDRankSpec is (source):

/-- **The PSD rank through factorizations.** The PSD rank is at most `r` exactly when there is a
PSD factorization by matrices indexed by `Fin r`, and a PSD factorization by matrices with any
finite index type bounds it by the number of indices. -/
def PSDRankSpec : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    (∀ r : ℕ, psdRank M ≤ r ↔
      ∃ (A : I → Matrix (Fin r) (Fin r) ℝ) (B : J → Matrix (Fin r) (Fin r) ℝ),
        IsPSDFactorization M A B) ∧
    ∀ {κ : Type w} [Fintype κ] (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ),
      IsPSDFactorization M A B → psdRank M ≤ Fintype.card κ

Lean sdpRank_spec · ✅ kernel-checked · source

Statement in Lean
/-- The SDP rank through factorizations. -/
theorem sdpRank_spec : SDPRankSpec

where SDPRankSpec is (source):

/-- **The SDP rank through factorizations.** The SDP rank is at most `r` exactly when there is an
SDP factorization by matrices indexed by `Fin r`, and an SDP factorization by matrices with any
finite index type bounds it by the number of indices. -/
def SDPRankSpec : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    (∀ r : ℕ, sdpRank M ≤ r ↔
      ∃ (A : I → Matrix (Fin r) (Fin r) ℝ) (B : J → Matrix (Fin r) (Fin r) ℝ) (μ : I → ℝ),
        IsSDPFactorization M A B μ) ∧
    ∀ {κ : Type w} [Fintype κ] (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) (μ : I → ℝ),
      IsSDPFactorization M A B μ → sdpRank M ≤ Fintype.card κ

Lean sdpRank_bounds · ✅ kernel-checked · source

Statement in Lean
/-- SDP rank and PSD rank differ by at most one. -/
theorem sdpRank_bounds : SDPRankBounds

where SDPRankBounds is (source):

/-- **SDP rank and PSD rank differ by at most one.** -/
def SDPRankBounds : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    sdpRank M ≤ psdRank M ∧ psdRank M ≤ sdpRank M + 1

Lean semidefinite_le_linear · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite ranks are at most the linear ones. -/
theorem semidefinite_le_linear : SemidefiniteLeLinear

where SemidefiniteLeLinear is (source):

/-- **Semidefinite and linear ranks.** The PSD rank is at most the nonnegative rank, and the SDP
rank is at most the LP rank: a nonnegative factorization is a factorization by diagonal
matrices. -/
def SemidefiniteLeLinear : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ),
    psdRank M ≤ nonnegRank M ∧ sdpRank M ≤ lpRank M

Lean psdRank_submatrix · ✅ kernel-checked · source

Statement in Lean
/-- Neither semidefinite rank increases when rows and columns are selected. -/
theorem psdRank_submatrix : PSDRankSubmatrix

where PSDRankSubmatrix is (source):

/-- **Submatrices.** Neither semidefinite rank increases when rows and columns are selected. -/
def PSDRankSubmatrix : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} (M : Matrix I J ℝ) (f : I' → I)
    (g : J' → J),
    psdRank (M.submatrix f g) ≤ psdRank M ∧ sdpRank (M.submatrix f g) ≤ sdpRank M

Lean absorb_shift_sdp · ✅ kernel-checked · source

Statement in Lean
/-- Two rows with zeros and constant sum absorb the shift of an SDP factorization. -/
theorem absorb_shift_sdp : AbsorbShiftSDP

where AbsorbShiftSDP is (source):

/-- **Absorbing the shift, semidefinite case.** Let `(A, B, μ)` be an SDP factorization of `M`.
If two rows of `M` have a zero entry each and add up to a positive constant `c`, then the matrices
`A i + (μ i / c) • (A i₁ + A i₂)` and `B` form a PSD factorization of `M`, of the same size. -/
def AbsorbShiftSDP : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype κ] (M : Matrix I J ℝ)
    (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) (μ : I → ℝ), IsSDPFactorization M A B μ →
    ∀ (i₁ i₂ : I) (c : ℝ), 0 < c → (∀ j, M i₁ j + M i₂ j = c) → (∃ j, M i₁ j = 0) →
      (∃ j, M i₂ j = 0) →
      IsPSDFactorization M (fun i => A i + (μ i / c) • (A i₁ + A i₂)) B

Lean psdRank_transpose · ✅ kernel-checked · source

Statement in Lean
/-- A matrix and its transpose have the same PSD rank. -/
theorem psdRank_transpose : PSDRankTranspose

where PSDRankTranspose is (source):

/-- **Transposition.** A matrix and its transpose have the same PSD rank. -/
def PSDRankTranspose : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ), psdRank Mᵀ = psdRank M

Lean psdRank_add · ✅ kernel-checked · source

Statement in Lean
/-- Both semidefinite ranks are subadditive. -/
theorem psdRank_add : PSDRankAdd

where PSDRankAdd is (source):

/-- **Sums.** The PSD rank and the SDP rank are subadditive. -/
def PSDRankAdd : Prop :=
  ∀ {I : Type u} {J : Type v} (M N : Matrix I J ℝ),
    psdRank (M + N) ≤ psdRank M + psdRank N ∧ sdpRank (M + N) ≤ sdpRank M + sdpRank N

Lean psdRank_mul · ✅ kernel-checked · source

Statement in Lean
/-- Products with nonnegative matrices do not increase the PSD rank. -/
theorem psdRank_mul : PSDRankMul

where PSDRankMul is (source):

/-- **Products and the PSD rank.** Multiplying by an entrywise nonnegative matrix, from the left
or from the right, does not increase the PSD rank. -/
def PSDRankMul : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} [Fintype I] [Fintype J]
    (R : Matrix I' I ℝ) (M : Matrix I J ℝ) (C : Matrix J J' ℝ),
    (∀ i l, 0 ≤ R i l) → (∀ l j, 0 ≤ C l j) →
      psdRank (R * M) ≤ psdRank M ∧ psdRank (M * C) ≤ psdRank M

Lean sdpRank_mul · ✅ kernel-checked · source

Statement in Lean
/-- Products with nonnegative matrices do not increase the SDP rank, with unit column sums on
the right. -/
theorem sdpRank_mul : SDPRankMul

where SDPRankMul is (source):

/-- **Products and the SDP rank.** Multiplying from the left by an entrywise nonnegative matrix
does not increase the SDP rank, and neither does multiplying from the right by an entrywise
nonnegative matrix whose columns sum to one. -/
def SDPRankMul : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} [Fintype I] [Fintype J]
    (R : Matrix I' I ℝ) (M : Matrix I J ℝ) (C : Matrix J J' ℝ),
    (∀ i l, 0 ≤ R i l) → (∀ l j, 0 ≤ C l j) → (∀ j, ∑ l, C l j = 1) →
      sdpRank (R * M) ≤ sdpRank M ∧ sdpRank (M * C) ≤ sdpRank M

Lean psdRank_kronecker · ✅ kernel-checked · source

Statement in Lean
/-- The PSD rank is submultiplicative under the Kronecker product. -/
theorem psdRank_kronecker : PSDRankKronecker

where PSDRankKronecker is (source):

/-- **Kronecker products.** The PSD rank is submultiplicative under the Kronecker product. -/
def PSDRankKronecker : Prop :=
  ∀ {I : Type u} {J : Type v} {I' : Type w} {J' : Type x} (M : Matrix I J ℝ)
    (N : Matrix I' J' ℝ), psdRank (M ⊗ₖ N) ≤ psdRank M * psdRank N

Lean psdRank_hadamard · ✅ kernel-checked · source

Statement in Lean
/-- The PSD rank is submultiplicative under the entrywise product. -/
theorem psdRank_hadamard : PSDRankHadamard

where PSDRankHadamard is (source):

/-- **Hadamard products.** The PSD rank is submultiplicative under the entrywise product. -/
def PSDRankHadamard : Prop :=
  ∀ {I : Type u} {J : Type v} (M N : Matrix I J ℝ), psdRank (M ⊙ N) ≤ psdRank M * psdRank N

Lean rank_le_psdRank · ✅ kernel-checked · source

Statement in Lean
/-- The rank is at most the dimension of the symmetric matrices of the size of the PSD rank. -/
theorem rank_le_psdRank : RankLePSDRank

where RankLePSDRank is (source):

/-- **Rank and PSD rank.** A matrix of PSD rank at most `r` has rank at most `r (r + 1) / 2`,
the dimension of the space of symmetric matrices of size `r`. -/
def RankLePSDRank : Prop :=
  ∀ {I : Type u} {J : Type v} [Fintype J] (M : Matrix I J ℝ) (r : ℕ),
    psdRank M ≤ r → M.rank ≤ (r + 1).choose 2

/-! ### SDP formulations of a matrix -/

Lean sdp_formulation_factorization · ✅ kernel-checked · source

Statement in Lean
/-- An SDP formulation of a matrix gives an SDP factorization of the same size. -/
theorem sdp_formulation_factorization : SDPFormulationFactorization

where SDPFormulationFactorization is (source):

/-- **From an SDP formulation to a factorization.** In an SDP formulation of `M`, the rows of `M`
are traces against positive semidefinite matrices plus nonnegative constants: with the matrices
`G (p j)` of the points as right factor, `M` has an SDP factorization. -/
def SDPFormulationFactorization : Prop :=
  ∀ {I : Type u} {J : Type v} {F : Type w} {κ : Type x} [AddCommGroup F] [Module ℝ F]
    [Fintype κ] (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (G : F →ᵃ[ℝ] Matrix κ κ ℝ)
    (p : J → F) (w : I → F →ᵃ[ℝ] ℝ),
    IsSDPFormulation M L G p w →
      ∃ (A : I → Matrix κ κ ℝ) (μ : I → ℝ), IsSDPFactorization M A (fun j => G (p j)) μ

Lean sdp_factorization_formulation · ✅ kernel-checked · source

Statement in Lean
/-- An SDP factorization of a matrix is an SDP formulation over the positive semidefinite cone. -/
theorem sdp_factorization_formulation : SDPFactorizationFormulation

where SDPFactorizationFormulation is (source):

/-- **From an SDP factorization to a formulation.** An SDP factorization
`M i j = tr (A i * B j) + μ i` is an SDP formulation of `M` over the cone of positive semidefinite
matrices: the points are the matrices `B j`, and the function of row `i` is
`X ↦ tr (A i * X) + μ i`. -/
def SDPFactorizationFormulation : Prop :=
  ∀ {I : Type u} {J : Type v} {κ : Type w} [Fintype κ] (M : Matrix I J ℝ)
    (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) (μ : I → ℝ),
    IsSDPFactorization M A B μ →
      IsSDPFormulation M ⊤ (AffineMap.id ℝ (Matrix κ κ ℝ)) B (fun i => traceForm (A i) (μ i))

Lean sdp_formulation_complexity · ✅ kernel-checked · source

Statement in Lean
/-- The SDP rank is the least size of an SDP formulation. -/
theorem sdp_formulation_complexity : SDPFormulationComplexity

where SDPFormulationComplexity is (source):

/-- **Formulation complexity, semidefinite case.** The SDP rank of `M` is at most `r` if and only
if `M` has an SDP formulation of size `r` in some `ℝ^d`. -/
def SDPFormulationComplexity : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ) (r : ℕ),
    sdpRank M ≤ r ↔ ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ))
      (G : (Fin d → ℝ) →ᵃ[ℝ] Matrix (Fin r) (Fin r) ℝ) (p : J → Fin d → ℝ)
      (w : I → (Fin d → ℝ) →ᵃ[ℝ] ℝ), IsSDPFormulation M L G p w

/-! ### PSD extensions -/

Lean xcPSD_spec · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity through extensions. -/
theorem xcPSD_spec : XcPSDSpec

where XcPSDSpec is (source):

/-- **The semidefinite extension complexity through extensions.** It is at most `r` exactly when
there is a PSD extension of size `r` in some `ℝ^d`, and a PSD extension in any finite-dimensional
space bounds it by its size. -/
def XcPSDSpec : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (S : Set E),
    (∀ r : ℕ, xcPSD S ≤ r ↔ HasPSDExtension S r) ∧
    ∀ {F : Type v} {κ : Type w} [AddCommGroup F] [Module ℝ F] [FiniteDimensional ℝ F]
      [Fintype κ] (L : AffineSubspace ℝ F) (G : F →ᵃ[ℝ] Matrix κ κ ℝ) (π : F →ᵃ[ℝ] E),
      IsPSDExtension S L G π → xcPSD S ≤ Fintype.card κ

Lean xcPSD_le_xc · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity is at most the extension complexity. -/
theorem xcPSD_le_xc : XcPSDLeXc

where XcPSDLeXc is (source):

/-- **Linear and semidefinite extensions.** The semidefinite extension complexity is at most the
extension complexity. -/
def XcPSDLeXc : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (S : Set E), xcPSD S ≤ xc S

Lean psd_extension_factorization · ✅ kernel-checked · source

Statement in Lean
/-- A PSD extension between points and inequalities gives an SDP factorization of the slack
matrix. -/
theorem psd_extension_factorization : PSDExtensionFactorization

where PSDExtensionFactorization is (source):

/-- **From a PSD extension to a factorization.** If the set `K` has a PSD extension of size `κ`,
contains the points `v j`, and the affine functions `h i` are nonnegative on it, then the slack
matrix has an SDP factorization of size `κ`. -/
def PSDExtensionFactorization : Prop :=
  ∀ {E : Type u} {F : Type v} {I : Type w} {J : Type x} {κ : Type y} [AddCommGroup E]
    [Module ℝ E] [AddCommGroup F] [Module ℝ F] [Fintype κ] (K : Set E)
    (L : AffineSubspace ℝ F) (G : F →ᵃ[ℝ] Matrix κ κ ℝ) (π : F →ᵃ[ℝ] E) (h : I → E →ᵃ[ℝ] ℝ)
    (v : J → E),
    IsPSDExtension K L G π → (∀ j, v j ∈ K) → (∀ i, ∀ x ∈ K, 0 ≤ h i x) →
      ∃ (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) (μ : I → ℝ),
        IsSDPFactorization (slackMatrix h v) A B μ

Lean psd_factorization_extension · ✅ kernel-checked · source

Statement in Lean
/-- An SDP factorization of a slack matrix gives a PSD extension between points and
inequalities. -/
theorem psd_factorization_extension : PSDFactorizationExtension

where PSDFactorizationExtension is (source):

/-- **From a factorization to a PSD extension.** An SDP factorization `(A, B, μ)` of the slack
matrix of the points `v j` and the functions `h i` defines the set `psdRelaxation h A μ`. It
contains all `v j`, all `h i` are nonnegative on it, and it has a PSD extension of the size of
the factorization. -/
def PSDFactorizationExtension : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} {κ : Type x} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] [Fintype κ] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E)
    (A : I → Matrix κ κ ℝ) (B : J → Matrix κ κ ℝ) (μ : I → ℝ),
    IsSDPFactorization (slackMatrix h v) A B μ →
      (∀ j, v j ∈ psdRelaxation h A μ) ∧ (∀ x ∈ psdRelaxation h A μ, ∀ i, 0 ≤ h i x) ∧
        HasPSDExtension (psdRelaxation h A μ) (Fintype.card κ)

Lean psd_sandwich_theorem · ✅ kernel-checked · source

Statement in Lean
/-- The factorization theorem for pairs, semidefinite case. -/
theorem psd_sandwich_theorem : PSDSandwichTheorem

where PSDSandwichTheorem is (source):

/-- **The factorization theorem for pairs, semidefinite case.** For points `v j` and affine
functions `h i` in a finite-dimensional space, the semidefinite extension complexity of the pair
formed by the convex hull of the points and the set `{x | ∀ i, 0 ≤ h i x}` is the SDP rank of the
slack matrix. -/
def PSDSandwichTheorem : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    xcPSDPair (convexHull ℝ (Set.range v)) {x | ∀ i, 0 ≤ h i x} = sdpRank (slackMatrix h v)

Lean psd_slack_lower_bound_sdp · ✅ kernel-checked · source

Statement in Lean
/-- The SDP rank of a slack matrix is a lower bound on the semidefinite extension complexity. -/
theorem psd_slack_lower_bound_sdp : PSDSlackLowerBoundSDP

where PSDSlackLowerBoundSDP is (source):

/-- **The lower bound from a slack matrix, with the SDP rank.** If the set `K` contains the points
`v j` and the affine functions `h i` are nonnegative on it, then the SDP rank of the slack matrix
is at most the semidefinite extension complexity of `K`. -/
def PSDSlackLowerBoundSDP : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E] (K : Set E)
    (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    (∀ j, v j ∈ K) → (∀ i, ∀ x ∈ K, 0 ≤ h i x) → sdpRank (slackMatrix h v) ≤ xcPSD K

Lean psd_slack_lower_bound · ✅ kernel-checked · source

Statement in Lean
/-- The PSD rank of a slack matrix is a lower bound on the semidefinite extension complexity. -/
theorem psd_slack_lower_bound : PSDSlackLowerBound

where PSDSlackLowerBound is (source):

/-- **The lower bound from a slack matrix, semidefinite case.** For finitely many points `v j`,
two of them distinct, and affine functions `h i` that are nonnegative at these points, the PSD
rank of the slack matrix is at most the semidefinite extension complexity of the convex hull of
the points. -/
def PSDSlackLowerBound : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E] [Finite J]
    (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    (∀ i j, 0 ≤ h i (v j)) → (∃ j₁ j₂, v j₁ ≠ v j₂) →
      psdRank (slackMatrix h v) ≤ xcPSD (convexHull ℝ (Set.range v))

Lean yannakakis_sdp · ✅ kernel-checked · source

Statement in Lean
/-- Yannakakis' theorem, semidefinite case with the SDP rank. -/
theorem yannakakis_sdp : YannakakisSDP

where YannakakisSDP is (source):

/-- **Yannakakis' theorem, semidefinite case with the SDP rank.** If the convex hull of the points
`v j` is the set `{x | ∀ i, 0 ≤ h i x}`, its semidefinite extension complexity is the SDP rank of
the slack matrix. -/
def YannakakisSDP : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    convexHull ℝ (Set.range v) = {x | ∀ i, 0 ≤ h i x} →
      xcPSD (convexHull ℝ (Set.range v)) = sdpRank (slackMatrix h v)

Lean yannakakis_psd · ✅ kernel-checked · source

Statement in Lean
/-- Yannakakis' theorem, semidefinite case, for polytopes with two distinct points. -/
theorem yannakakis_psd : YannakakisPSD

where YannakakisPSD is (source):

/-- **Yannakakis' theorem, semidefinite case.** If the convex hull of finitely many points `v j`,
two of them distinct, is the set `{x | ∀ i, 0 ≤ h i x}`, its semidefinite extension complexity is
the PSD rank of the slack matrix. -/
def YannakakisPSD : Prop :=
  ∀ {E : Type u} {I : Type v} {J : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] [Finite J] (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    convexHull ℝ (Set.range v) = {x | ∀ i, 0 ≤ h i x} → (∃ j₁ j₂, v j₁ ≠ v j₂) →
      xcPSD (convexHull ℝ (Set.range v)) = psdRank (slackMatrix h v)

Lean xcPSD_image · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity does not increase under affine maps. -/
theorem xcPSD_image : XcPSDImage

where XcPSDImage is (source):

/-- **Affine images.** The semidefinite extension complexity does not increase under affine
maps. -/
def XcPSDImage : Prop :=
  ∀ {E : Type u} {E' : Type v} [AddCommGroup E] [Module ℝ E] [AddCommGroup E'] [Module ℝ E']
    (g : E →ᵃ[ℝ] E') (S : Set E), xcPSD (g '' S) ≤ xcPSD S

Lean xcPSD_slice · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity does not increase under slicing. -/
theorem xcPSD_slice : XcPSDSlice

where XcPSDSlice is (source):

/-- **Slices.** The semidefinite extension complexity does not increase when a set is intersected
with an affine subspace. -/
def XcPSDSlice : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (S : Set E) (A : AffineSubspace ℝ E),
    xcPSD (S ∩ A) ≤ xcPSD S

Lean xcPSD_product · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity of a product is at most the sum. -/
theorem xcPSD_product : XcPSDProduct

where XcPSDProduct is (source):

/-- **Products.** The semidefinite extension complexity of a product is at most the sum. -/
def XcPSDProduct : Prop :=
  ∀ {E : Type u} {E' : Type v} [AddCommGroup E] [Module ℝ E] [AddCommGroup E'] [Module ℝ E']
    (S : Set E) (S' : Set E'), xcPSD (S ×ˢ S') ≤ xcPSD S + xcPSD S'

Lean xcPSD_intersection · ✅ kernel-checked · source

Statement in Lean
/-- The semidefinite extension complexity of an intersection is at most the sum. -/
theorem xcPSD_intersection : XcPSDIntersection

where XcPSDIntersection is (source):

/-- **Intersections.** The semidefinite extension complexity of an intersection is at most the
sum. -/
def XcPSDIntersection : Prop :=
  ∀ {E : Type u} [AddCommGroup E] [Module ℝ E] (S S' : Set E),
    xcPSD (S ∩ S') ≤ xcPSD S + xcPSD S'

/-! ### Problems and reductions -/

Lean row_operations · ✅ kernel-checked · source

Statement in Lean
/-- Shifts and row scaling increase neither the LP rank nor the SDP rank. -/
theorem row_operations : RowOperations

where RowOperations is (source):

/-- **Shifts and row scaling.** Adding a nonnegative number to all entries of each row, and
multiplying each row by a nonnegative number, increase neither the LP rank nor the SDP rank. -/
def RowOperations : Prop :=
  ∀ {I : Type u} {J : Type v} (M : Matrix I J ℝ) (t : I → ℝ), (∀ i, 0 ≤ t i) →
    lpRank (fun i j => M i j + t i : Matrix I J ℝ) ≤ lpRank M ∧
    sdpRank (fun i j => M i j + t i : Matrix I J ℝ) ≤ sdpRank M ∧
    lpRank (fun i j => t i * M i j : Matrix I J ℝ) ≤ lpRank M ∧
    sdpRank (fun i j => t i * M i j : Matrix I J ℝ) ≤ sdpRank M

Lean affine_reduction_rank · ✅ kernel-checked · source

Statement in Lean
/-- Affine reductions bound the LP rank and the SDP rank. -/
theorem affine_reduction_rank : AffineReductionRank

where AffineReductionRank is (source):

/-- **Affine reductions, for matrices.** Let every row of `M₁` be a nonnegative combination of
finitely many rows of `M₂` plus a nonnegative shift, and every column a convex combination of
finitely many columns: `M₁ i j = ∑ l ∈ A i, ∑ m ∈ B j, R i l * M₂ l m * C m j + t i`. Then the
LP rank and the SDP rank of `M₁` are at most those of `M₂`. For finite matrices the hypothesis
reads `M₁ = R M₂ C + t 𝟙ᵀ` with entrywise nonnegative `R`, `C`, `t` and unit column sums of
`C`. -/
def AffineReductionRank : Prop :=
  ∀ {I₁ : Type u} {J₁ : Type v} {I₂ : Type w} {J₂ : Type x} (M₁ : Matrix I₁ J₁ ℝ)
    (M₂ : Matrix I₂ J₂ ℝ) (A : I₁ → Finset I₂) (B : J₁ → Finset J₂) (R : Matrix I₁ I₂ ℝ)
    (C : Matrix J₂ J₁ ℝ) (t : I₁ → ℝ),
    (∀ i, ∀ l ∈ A i, 0 ≤ R i l) → (∀ j, ∀ m ∈ B j, 0 ≤ C m j) →
    (∀ j, ∑ m ∈ B j, C m j = 1) → (∀ i, 0 ≤ t i) →
    (∀ i j, M₁ i j = ∑ l ∈ A i, ∑ m ∈ B j, R i l * M₂ l m * C m j + t i) →
      lpRank M₁ ≤ lpRank M₂ ∧ sdpRank M₁ ≤ sdpRank M₂

Lean reduction_rank · ✅ kernel-checked · source

Statement in Lean
/-- Reductions with distortion bound the LP rank and the SDP rank. -/
theorem reduction_rank : ReductionRank

where ReductionRank is (source):

/-- **Reductions with distortion, for matrices.** Let `M₁` be the entrywise product of the
submatrix of `M₂` along maps `f` and `g` with a matrix `N₁`, plus a matrix `N₂`. Then
`rank_LP M₁ ≤ rank_LP N₂ + rank_LP N₁ + rank₊ N₁ * rank_LP M₂`, and
`rank_SDP M₁ ≤ rank_SDP N₂ + rank_SDP N₁ + rank_psd N₁ * rank_SDP M₂`. -/
def ReductionRank : Prop :=
  ∀ {I₁ : Type u} {J₁ : Type v} {I₂ : Type w} {J₂ : Type x} (M₂ : Matrix I₂ J₂ ℝ)
    (f : I₁ → I₂) (g : J₁ → J₂) (N₁ N₂ : Matrix I₁ J₁ ℝ),
    lpRank ((M₂.submatrix f g) ⊙ N₁ + N₂) ≤
        lpRank N₂ + lpRank N₁ + nonnegRank N₁ * lpRank M₂ ∧
      sdpRank ((M₂.submatrix f g) ⊙ N₁ + N₂) ≤
        sdpRank N₂ + sdpRank N₁ + psdRank N₁ * sdpRank M₂

Lean fcLP_spec · ✅ kernel-checked · source

Statement in Lean
/-- The LP formulation complexity through formulations. -/
theorem fcLP_spec : FcLPSpec

where FcLPSpec is (source):

/-- **The LP formulation complexity through formulations.** For a sign `τ ≠ 0`, the LP
formulation complexity of an optimization problem is at most `r` exactly when the problem has an
LP formulation with `r` inequalities in some `ℝ^d`, and an LP formulation in any space with
finitely many inequalities bounds it by their number. -/
def FcLPSpec : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ)
    (C Sd : Inst → ℝ),
    (∀ r : ℕ, fcLP τ val C Sd ≤ r ↔
      ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ)) (s : Fin r → (Fin d → ℝ) →ᵃ[ℝ] ℝ)
        (p : Sol → Fin d → ℝ) (w : Inst → (Fin d → ℝ) →ᵃ[ℝ] ℝ),
        IsLPFormulationOf τ val C Sd L s p w) ∧
    ∀ {V : Type w} {κ : Type x} [AddCommGroup V] [Module ℝ V] [Fintype κ]
      (L : AffineSubspace ℝ V) (s : κ → V →ᵃ[ℝ] ℝ) (p : Sol → V) (w : Inst → V →ᵃ[ℝ] ℝ),
      IsLPFormulationOf τ val C Sd L s p w → fcLP τ val C Sd ≤ Fintype.card κ

Lean fcSDP_spec · ✅ kernel-checked · source

Statement in Lean
/-- The SDP formulation complexity through formulations. -/
theorem fcSDP_spec : FcSDPSpec

where FcSDPSpec is (source):

/-- **The SDP formulation complexity through formulations.** For a sign `τ ≠ 0`, the SDP
formulation complexity of an optimization problem is at most `r` exactly when the problem has an
SDP formulation of size `r` in some `ℝ^d`, and an SDP formulation in any space bounds it by its
size. -/
def FcSDPSpec : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ)
    (C Sd : Inst → ℝ),
    (∀ r : ℕ, fcSDP τ val C Sd ≤ r ↔
      ∃ (d : ℕ) (L : AffineSubspace ℝ (Fin d → ℝ))
        (G : (Fin d → ℝ) →ᵃ[ℝ] Matrix (Fin r) (Fin r) ℝ) (p : Sol → Fin d → ℝ)
        (w : Inst → (Fin d → ℝ) →ᵃ[ℝ] ℝ), IsSDPFormulationOf τ val C Sd L G p w) ∧
    ∀ {V : Type w} {κ : Type x} [AddCommGroup V] [Module ℝ V] [Fintype κ]
      (L : AffineSubspace ℝ V) (G : V →ᵃ[ℝ] Matrix κ κ ℝ) (p : Sol → V)
      (w : Inst → V →ᵃ[ℝ] ℝ),
      IsSDPFormulationOf τ val C Sd L G p w → fcSDP τ val C Sd ≤ Fintype.card κ

Lean problem_factorization · ✅ kernel-checked · source

Statement in Lean
/-- The formulation complexities of a problem are the LP rank and the SDP rank of its slack
matrix. -/
theorem problem_factorization : ProblemFactorization

where ProblemFactorization is (source):

/-- **The factorization theorem for formulation complexity.** For a sign `τ ≠ 0`, the LP
formulation complexity of an optimization problem is the LP rank of its slack matrix, and its SDP
formulation complexity is the SDP rank of its slack matrix. -/
def ProblemFactorization : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ)
    (C Sd : Inst → ℝ),
    fcLP τ val C Sd = lpRank (problemSlack τ val C Sd) ∧
      fcSDP τ val C Sd = sdpRank (problemSlack τ val C Sd)

Lean problem_encoding · ✅ kernel-checked · source

Statement in Lean
/-- The formulation complexities of a problem are the extension complexities of a pair, for
every linear encoding. -/
theorem problem_encoding : ProblemEncoding

where ProblemEncoding is (source):

/-- **Formulation complexity through an encoding.** Let the solutions of an optimization problem
be encoded as points `p s` of a finite-dimensional space and its instances as affine functions
`w f`, with `w f (p s) = val f s` for the instances that satisfy the soundness guarantee. Then
for a sign `τ ≠ 0` the LP formulation complexity is the extension complexity of the pair formed
by the convex hull of the points and the set on which all completeness guarantees hold, and the
SDP formulation complexity is the semidefinite extension complexity of this pair. -/
def ProblemEncoding : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} {E : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ)
    (p : Sol → E) (w : Inst → E →ᵃ[ℝ] ℝ),
    (∀ f, IsSoundInstance τ val Sd f → ∀ s, w f (p s) = val f s) →
      fcLP τ val C Sd =
          xcPair (convexHull ℝ (Set.range p))
            {x | ∀ f, IsSoundInstance τ val Sd f → τ * w f x ≤ τ * C f} ∧
        fcSDP τ val C Sd =
          xcPSDPair (convexHull ℝ (Set.range p))
            {x | ∀ f, IsSoundInstance τ val Sd f → τ * w f x ≤ τ * C f}

Lean problem_exact · ✅ kernel-checked · source

Statement in Lean
/-- If the guarantees describe the convex hull of the encoded solutions, the formulation
complexities are its extension complexities. -/
theorem problem_exact : ProblemExact

where ProblemExact is (source):

/-- **Exact formulations.** If, for an encoding as above, the completeness guarantees describe
the convex hull of the encoded solutions, then the LP formulation complexity of the problem is
the extension complexity of this convex hull, and its SDP formulation complexity is the
semidefinite extension complexity. -/
def ProblemExact : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} {E : Type w} [AddCommGroup E] [Module ℝ E]
    [FiniteDimensional ℝ E] (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ) (C Sd : Inst → ℝ)
    (p : Sol → E) (w : Inst → E →ᵃ[ℝ] ℝ),
    (∀ f, IsSoundInstance τ val Sd f → ∀ s, w f (p s) = val f s) →
    convexHull ℝ (Set.range p) =
        {x | ∀ f, IsSoundInstance τ val Sd f → τ * w f x ≤ τ * C f} →
      fcLP τ val C Sd = xc (convexHull ℝ (Set.range p)) ∧
        fcSDP τ val C Sd = xcPSD (convexHull ℝ (Set.range p))

Lean guarantee_monotone · ✅ kernel-checked · source

Statement in Lean
/-- The formulation complexities are monotone in the guarantees. -/
theorem guarantee_monotone : GuaranteeMonotone

where GuaranteeMonotone is (source):

/-- **Monotonicity in the guarantees.** For a sign `τ ≠ 0`, the formulation complexities do not
increase when `τ * C` is increased and `τ * Sd` is decreased: a weaker completeness guarantee has
to be certified, on fewer instances. -/
def GuaranteeMonotone : Prop :=
  ∀ {Inst : Type u} {Sol : Type v} (τ : ℝ), τ ≠ 0 → ∀ (val : Inst → Sol → ℝ)
    (C₁ Sd₁ C₂ Sd₂ : Inst → ℝ),
    (∀ f, τ * C₂ f ≤ τ * C₁ f) → (∀ f, τ * Sd₁ f ≤ τ * Sd₂ f) →
      fcLP τ val C₁ Sd₁ ≤ fcLP τ val C₂ Sd₂ ∧ fcSDP τ val C₁ Sd₁ ≤ fcSDP τ val C₂ Sd₂

Lean affine_reduction · ✅ kernel-checked · source

Statement in Lean
/-- Affine reductions between optimization problems. -/
theorem affine_reduction : AffineReduction

where AffineReduction is (source):

/-- **Affine reductions.** Let two optimization problems have signs `τ₁, τ₂ ≠ 0`. For every
instance `f` of the first problem that satisfies its soundness guarantee, let the objective be a
nonnegative combination, with weights `b f g`, of the objectives of finitely many instances
`g ∈ A f` of the second problem that satisfy the second soundness guarantee, evaluated at convex
combinations, with weights `a s u`, of finitely many solutions `u ∈ B s`, plus a shift `μ f`; and
let the completeness guarantees satisfy the same relation as an inequality. Then the LP and the
SDP formulation complexity of the first problem are at most those of the second. -/
def AffineReduction : Prop :=
  ∀ {Inst₁ : Type u} {Sol₁ : Type v} {Inst₂ : Type w} {Sol₂ : Type x} (τ₁ τ₂ : ℝ),
    τ₁ ≠ 0 → τ₂ ≠ 0 → ∀ (val₁ : Inst₁ → Sol₁ → ℝ) (C₁ Sd₁ : Inst₁ → ℝ)
    (val₂ : Inst₂ → Sol₂ → ℝ) (C₂ Sd₂ : Inst₂ → ℝ) (A : Inst₁ → Finset Inst₂)
    (B : Sol₁ → Finset Sol₂) (b : Inst₁ → Inst₂ → ℝ) (a : Sol₁ → Sol₂ → ℝ) (μ : Inst₁ → ℝ),
    (∀ s, (∀ u ∈ B s, 0 ≤ a s u) ∧ ∑ u ∈ B s, a s u = 1) →
    (∀ f, IsSoundInstance τ₁ val₁ Sd₁ f →
      (∀ g ∈ A f, IsSoundInstance τ₂ val₂ Sd₂ g ∧ 0 ≤ b f g) ∧
      (∀ s, τ₁ * val₁ f s =
        ∑ g ∈ A f, ∑ u ∈ B s, b f g * a s u * (τ₂ * val₂ g u) + μ f) ∧
      ∑ g ∈ A f, b f g * (τ₂ * C₂ g) + μ f ≤ τ₁ * C₁ f) →
      fcLP τ₁ val₁ C₁ Sd₁ ≤ fcLP τ₂ val₂ C₂ Sd₂ ∧
        fcSDP τ₁ val₁ C₁ Sd₁ ≤ fcSDP τ₂ val₂ C₂ Sd₂

Lean problem_reduction · ✅ kernel-checked · source

Statement in Lean
/-- Reductions with distortion between optimization problems. -/
theorem problem_reduction : ProblemReduction

where ProblemReduction is (source):

/-- **Reductions with distortion.** Let two optimization problems have signs `τ₁, τ₂ ≠ 0`. Let
the instances and the solutions of the first problem be mapped to those of the second, such that
every instance `f` satisfying the first soundness guarantee is mapped to an instance satisfying
the second, with
`τ₁ * (C₁ f - val₁ f s) = τ₂ * (C₂ (inst f) - val₂ (inst f) (sol s)) * N₁ f s + N₂ f s`. Then
`fc_LP 𝒫₁ ≤ rank_LP N₂ + rank_LP N₁ + rank₊ N₁ * fc_LP 𝒫₂` and
`fc_SDP 𝒫₁ ≤ rank_SDP N₂ + rank_SDP N₁ + rank_psd N₁ * fc_SDP 𝒫₂`. -/
def ProblemReduction : Prop :=
  ∀ {Inst₁ : Type u} {Sol₁ : Type v} {Inst₂ : Type w} {Sol₂ : Type x} (τ₁ τ₂ : ℝ),
    τ₁ ≠ 0 → τ₂ ≠ 0 → ∀ (val₁ : Inst₁ → Sol₁ → ℝ) (C₁ Sd₁ : Inst₁ → ℝ)
    (val₂ : Inst₂ → Sol₂ → ℝ) (C₂ Sd₂ : Inst₂ → ℝ) (inst : Inst₁ → Inst₂)
    (sol : Sol₁ → Sol₂) (N₁ N₂ : Matrix Inst₁ Sol₁ ℝ),
    (∀ f, IsSoundInstance τ₁ val₁ Sd₁ f → IsSoundInstance τ₂ val₂ Sd₂ (inst f) ∧
      ∀ s, τ₁ * (C₁ f - val₁ f s) =
        τ₂ * (C₂ (inst f) - val₂ (inst f) (sol s)) * N₁ f s + N₂ f s) →
      fcLP τ₁ val₁ C₁ Sd₁ ≤ lpRank N₂ + lpRank N₁ + nonnegRank N₁ * fcLP τ₂ val₂ C₂ Sd₂ ∧
        fcSDP τ₁ val₁ C₁ Sd₁ ≤
          sdpRank N₂ + sdpRank N₁ + psdRank N₁ * fcSDP τ₂ val₂ C₂ Sd₂

Lean map_reduction · ✅ kernel-checked · source

Statement in Lean
/-- Reductions by maps between optimization problems. -/
theorem map_reduction : MapReduction

where MapReduction is (source):

/-- **Reductions by maps.** Let two optimization problems have signs `τ₁, τ₂ ≠ 0`. Let the
instances and the solutions of the first problem be mapped to those of the second, such that
every instance `f` satisfying the first soundness guarantee is mapped to an instance satisfying
the second, with
`τ₁ * (C₁ f - val₁ f s) = ρ f * (τ₂ * (C₂ (inst f) - val₂ (inst f) (sol s))) + σ f` and
`ρ f, σ f ≥ 0`. Then the LP and the SDP formulation complexity of the first problem are at most
those of the second. -/
def MapReduction : Prop :=
  ∀ {Inst₁ : Type u} {Sol₁ : Type v} {Inst₂ : Type w} {Sol₂ : Type x} (τ₁ τ₂ : ℝ),
    τ₁ ≠ 0 → τ₂ ≠ 0 → ∀ (val₁ : Inst₁ → Sol₁ → ℝ) (C₁ Sd₁ : Inst₁ → ℝ)
    (val₂ : Inst₂ → Sol₂ → ℝ) (C₂ Sd₂ : Inst₂ → ℝ) (inst : Inst₁ → Inst₂)
    (sol : Sol₁ → Sol₂) (ρ σ : Inst₁ → ℝ),
    (∀ f, IsSoundInstance τ₁ val₁ Sd₁ f →
      IsSoundInstance τ₂ val₂ Sd₂ (inst f) ∧ 0 ≤ ρ f ∧ 0 ≤ σ f ∧
      ∀ s, τ₁ * (C₁ f - val₁ f s) =
        ρ f * (τ₂ * (C₂ (inst f) - val₂ (inst f) (sol s))) + σ f) →
      fcLP τ₁ val₁ C₁ Sd₁ ≤ fcLP τ₂ val₂ C₂ Sd₂ ∧
        fcSDP τ₁ val₁ C₁ Sd₁ ≤ fcSDP τ₂ val₂ C₂ Sd₂

Lean reduction_to_min · ✅ kernel-checked · source

Statement in Lean
/-- From completeness and soundness to an approximation factor of a minimization problem. -/
theorem reduction_to_min : ReductionToMin

where ReductionToMin is (source):

/-- **Reduction to a minimization problem.** Let the value of a maximization problem be
`μ - ζ f * cost`, where the cost is that of a minimization problem at the image of the instance
`f` and of the solution, with `ζ f ≥ 0`, and let `opt₂` be a lower bound on the costs. Assume
that the reduction is exact: every instance `f` whose values are at most `s` is mapped to an
instance with `ζ f * opt₂ ≥ μ - s`. Then an LP or SDP formulation of the minimization problem
with approximation factor `(μ - s) / (μ - c)` gives one of the same size for the maximization
problem with completeness `c` and soundness `s`. -/
def ReductionToMin : Prop :=
  ∀ {Inst₁ : Type u} {Sol₁ : Type v} {Inst₂ : Type w} {Sol₂ : Type x} (val₁ : Inst₁ → Sol₁ → ℝ)
    (val₂ : Inst₂ → Sol₂ → ℝ) (opt₂ : Inst₂ → ℝ) (inst : Inst₁ → Inst₂) (sol : Sol₁ → Sol₂)
    (μ : ℝ) (ζ : Inst₁ → ℝ) (c s : ℝ), c < μ → s < μ → (∀ f, 0 ≤ ζ f) →
    (∀ g u, opt₂ g ≤ val₂ g u) → (∀ f t, val₁ f t = μ - ζ f * val₂ (inst f) (sol t)) →
    (∀ f, (∀ t, val₁ f t ≤ s) → μ - s ≤ ζ f * opt₂ (inst f)) →
      fcLP 1 val₁ (fun _ => c) (fun _ => s) ≤
          fcLP (-1) val₂ (fun g => opt₂ g / ((μ - s) / (μ - c))) opt₂ ∧
        fcSDP 1 val₁ (fun _ => c) (fun _ => s) ≤
          fcSDP (-1) val₂ (fun g => opt₂ g / ((μ - s) / (μ - c))) opt₂

Lean reduction_to_max · ✅ kernel-checked · source

Statement in Lean
/-- From completeness and soundness to an approximation factor of a maximization problem. -/
theorem reduction_to_max : ReductionToMax

where ReductionToMax is (source):

/-- **Reduction to a maximization problem.** Let the value of a maximization problem be
`ζ f * value - μ`, where the value is that of a second maximization problem at the image of the
instance `f` and of the solution, with `ζ f ≥ 0`, and let `opt₂` be an upper bound on the
values. Assume that the reduction is exact: every instance `f` whose values are at most `s` is
mapped to an instance with `ζ f * opt₂ ≤ μ + s`. Then an LP or SDP formulation of the second
problem with approximation factor `(μ + c) / (μ + s)` gives one of the same size for the first
problem with completeness `c` and soundness `s`. -/
def ReductionToMax : Prop :=
  ∀ {Inst₁ : Type u} {Sol₁ : Type v} {Inst₂ : Type w} {Sol₂ : Type x} (val₁ : Inst₁ → Sol₁ → ℝ)
    (val₂ : Inst₂ → Sol₂ → ℝ) (opt₂ : Inst₂ → ℝ) (inst : Inst₁ → Inst₂) (sol : Sol₁ → Sol₂)
    (μ : ℝ) (ζ : Inst₁ → ℝ) (c s : ℝ), 0 ≤ μ + c → 0 < μ + s → (∀ f, 0 ≤ ζ f) →
    (∀ g u, val₂ g u ≤ opt₂ g) → (∀ f t, val₁ f t = ζ f * val₂ (inst f) (sol t) - μ) →
    (∀ f, (∀ t, val₁ f t ≤ s) → ζ f * opt₂ (inst f) ≤ μ + s) →
      fcLP 1 val₁ (fun _ => c) (fun _ => s) ≤
          fcLP 1 val₂ (fun g => (μ + c) / (μ + s) * opt₂ g) opt₂ ∧
        fcSDP 1 val₁ (fun _ => c) (fun _ => s) ≤
          fcSDP 1 val₂ (fun g => (μ + c) / (μ + s) * opt₂ g) opt₂

/-! ### Finite probability and information -/

Lean entropy_bounds · ✅ kernel-checked · source

Statement in Lean
/-- The entropy of a distribution lies between zero and the logarithm of the number of points. -/
theorem entropy_bounds : EntropyBounds

where EntropyBounds is (source):

/-- **Entropy.** The entropy of a distribution on a finite type lies between zero and the
logarithm of the number of points. -/
def EntropyBounds : Prop :=
  ∀ {α : Type u} [Fintype α] (p : α → ℝ), IsDistribution p →
    0 ≤ entropy p ∧ entropy p ≤ Real.log (Fintype.card α)

Lean law_spec · ✅ kernel-checked · source

Statement in Lean
/-- Laws of random variables. -/
theorem law_spec : LawSpec

where LawSpec is (source):

/-- **Laws.** The law of a random variable under a distribution is a distribution; a sum against
the law is a sum against the distribution; and the law of a function of a random variable is the
law of the function under the law of the random variable. -/
def LawSpec : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} [Fintype Ω] [Fintype α] (P : Ω → ℝ) (X : Ω → α),
    (IsDistribution P → IsDistribution (law P X)) ∧
    (∀ g : α → ℝ, ∑ a, law P X a * g a = ∑ ω, P ω * g (X ω)) ∧
    ∀ f : α → β, law P (f ∘ X) = law (law P X) f

Lean gibbs_inequality · ✅ kernel-checked · source

Statement in Lean
/-- Gibbs' inequality, with its case of equality. -/
theorem gibbs_inequality : GibbsInequality

where GibbsInequality is (source):

/-- **Gibbs' inequality.** For nonnegative functions `q` and `r` on a finite type, with `q`
vanishing where `r` does, `∑ q * (log r - log q) ≤ ∑ r - ∑ q`, with equality only for `q = r`. -/
def GibbsInequality : Prop :=
  ∀ {S : Type u} [Fintype S] (q r : S → ℝ), (∀ s, 0 ≤ q s) → (∀ s, 0 ≤ r s) →
    (∀ s, r s = 0 → q s = 0) →
      ∑ s, q s * (Real.log (r s) - Real.log (q s)) ≤ ∑ s, r s - ∑ s, q s ∧
      (∑ s, r s - ∑ s, q s ≤ ∑ s, q s * (Real.log (r s) - Real.log (q s)) → q = r)

Lean entropy_of_function · ✅ kernel-checked · source

Statement in Lean
/-- A function of a random variable has less entropy. -/
theorem entropy_of_function : EntropyOfFunction

where EntropyOfFunction is (source):

/-- **The entropy of a function of a random variable.** The entropy of `f ∘ X` is at most the
entropy of `X`, with equality if `X` is a function of `f ∘ X`. -/
def EntropyOfFunction : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} [Fintype Ω] [Fintype α] [Fintype β] (P : Ω → ℝ),
    (∀ ω, 0 ≤ P ω) → ∀ (X : Ω → α) (f : α → β),
      entropy (law P (f ∘ X)) ≤ entropy (law P X) ∧
      ∀ g : β → α, (∀ ω, g (f (X ω)) = X ω) → entropy (law P (f ∘ X)) = entropy (law P X)

Lean strong_subadditivity · ✅ kernel-checked · source

Statement in Lean
/-- Conditional mutual information is nonnegative. -/
theorem strong_subadditivity : StrongSubadditivity

where StrongSubadditivity is (source):

/-- **Strong subadditivity.** Conditional mutual information is nonnegative, that is,
`H[X, Y, Z] + H[Z] ≤ H[X, Z] + H[Y, Z]`. -/
def StrongSubadditivity : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} [Fintype Ω] [Fintype α] [Fintype β]
    [Fintype γ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) → ∀ (X : Ω → α) (Y : Ω → β) (Z : Ω → γ),
      0 ≤ condMutualInfo P X Y Z

Lean condEntropy_bounds · ✅ kernel-checked · source

Statement in Lean
/-- The bounds on the conditional entropy. -/
theorem condEntropy_bounds : CondEntropyBounds

where CondEntropyBounds is (source):

/-- **Bounds on the conditional entropy.** `0 ≤ H[X | Y, Z] ≤ H[X | Z] ≤ H[X] ≤ log |α|`. -/
def CondEntropyBounds : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} [Fintype Ω] [Fintype α] [Fintype β]
    [Fintype γ] (P : Ω → ℝ), IsDistribution P → ∀ (X : Ω → α) (Y : Ω → β) (Z : Ω → γ),
      0 ≤ condEntropy P X (fun ω => (Y ω, Z ω)) ∧
      condEntropy P X (fun ω => (Y ω, Z ω)) ≤ condEntropy P X Z ∧
      condEntropy P X Z ≤ entropy (law P X) ∧
      entropy (law P X) ≤ Real.log (Fintype.card α)

Lean mutualInfo_bounds · ✅ kernel-checked · source

Statement in Lean
/-- The bounds on mutual information. -/
theorem mutualInfo_bounds : MutualInfoBounds

where MutualInfoBounds is (source):

/-- **Bounds on mutual information.** Conditional mutual information is symmetric and at most
the conditional entropy of its first variable. Given a constant it is the mutual information,
which is nonnegative. -/
def MutualInfoBounds : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} [Fintype Ω] [Fintype α] [Fintype β]
    [Fintype γ] (P : Ω → ℝ), IsDistribution P → ∀ (X : Ω → α) (Y : Ω → β) (Z : Ω → γ),
      condMutualInfo P X Y Z = condMutualInfo P Y X Z ∧
      condMutualInfo P X Y Z ≤ condEntropy P X Z ∧
      condMutualInfo P X Y (fun _ => ()) = mutualInfo P X Y ∧
      0 ≤ mutualInfo P X Y

Lean chain_rule · ✅ kernel-checked · source

Statement in Lean
/-- The chain rules for entropy and mutual information. -/
theorem chain_rule : ChainRule

where ChainRule is (source):

/-- **Chain rules.** `H[X, Y | Z] = H[Y | Z] + H[X | Y, Z]`,
`I[X, X'; Y | Z] = I[X; Y | Z] + I[X'; Y | X, Z]` and
`I[Y; X, X' | Z] = I[Y; X | Z] + I[Y; X' | X, Z]`. -/
def ChainRule : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} {δ : Type y} [Fintype Ω] [Fintype α]
    [Fintype β] [Fintype γ] [Fintype δ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) →
    ∀ (X : Ω → α) (X' : Ω → δ) (Y : Ω → β) (Z : Ω → γ),
      condEntropy P (fun ω => (X ω, Y ω)) Z =
        condEntropy P Y Z + condEntropy P X (fun ω => (Y ω, Z ω)) ∧
      condMutualInfo P (fun ω => (X ω, X' ω)) Y Z =
        condMutualInfo P X Y Z + condMutualInfo P X' Y (fun ω => (X ω, Z ω)) ∧
      condMutualInfo P Y (fun ω => (X ω, X' ω)) Z =
        condMutualInfo P Y X Z + condMutualInfo P Y X' (fun ω => (X ω, Z ω))

Lean data_processing · ✅ kernel-checked · source

Statement in Lean
/-- The data processing inequality. -/
theorem data_processing : DataProcessing

where DataProcessing is (source):

/-- **Data processing.** A function of a random variable carries less information and has less
conditional entropy. -/
def DataProcessing : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} {δ : Type y} [Fintype Ω] [Fintype α]
    [Fintype β] [Fintype γ] [Fintype δ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) →
    ∀ (X : Ω → α) (f : α → δ) (Y : Ω → β) (Z : Ω → γ),
      condMutualInfo P (f ∘ X) Y Z ≤ condMutualInfo P X Y Z ∧
      condMutualInfo P Y (f ∘ X) Z ≤ condMutualInfo P Y X Z ∧
      condEntropy P (f ∘ X) Z ≤ condEntropy P X Z

Lean conditional_independence · ✅ kernel-checked · source

Statement in Lean
/-- Conditional independence through the joint law. -/
theorem conditional_independence : ConditionalIndependence

where ConditionalIndependence is (source):

/-- **Conditional independence.** `I[X; Y | Z] = 0` if and only if the joint law is the product
of the conditional laws, `P[x, y, z] * P[z] = P[x, z] * P[y, z]`. It suffices that the joint law
is a product of a function of `(x, z)` and a function of `(y, z)`. -/
def ConditionalIndependence : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} [Fintype Ω] [Fintype α] [Fintype β]
    [Fintype γ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) → ∀ (X : Ω → α) (Y : Ω → β) (Z : Ω → γ),
      (condMutualInfo P X Y Z = 0 ↔
        ∀ a b c, law P (fun ω => (X ω, Y ω, Z ω)) (a, b, c) * law P Z c =
          law P (fun ω => (X ω, Z ω)) (a, c) * law P (fun ω => (Y ω, Z ω)) (b, c)) ∧
      ∀ (f : α → γ → ℝ) (g : β → γ → ℝ),
        (∀ a b c, law P (fun ω => (X ω, Y ω, Z ω)) (a, b, c) = f a c * g b c) →
          condMutualInfo P X Y Z = 0

Lean conditioning_monotone · ✅ kernel-checked · source

Statement in Lean
/-- Conditioning on an independent variable does not increase the information. -/
theorem conditioning_monotone : ConditioningMonotone

where ConditioningMonotone is (source):

/-- **Conditioning on an independent variable.** If `X` and `C` are conditionally independent
given `Y` and `Z`, then `I[X; Y | C, Z] ≤ I[X; Y | Z]`. -/
def ConditioningMonotone : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} {δ : Type y} [Fintype Ω] [Fintype α]
    [Fintype β] [Fintype γ] [Fintype δ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) →
    ∀ (X : Ω → α) (Y : Ω → β) (C : Ω → δ) (Z : Ω → γ),
      condMutualInfo P X C (fun ω => (Y ω, Z ω)) = 0 →
        condMutualInfo P X Y (fun ω => (C ω, Z ω)) ≤ condMutualInfo P X Y Z

Lean direct_sum_pair · ✅ kernel-checked · source

Statement in Lean
/-- The direct sum inequality for two variables. -/
theorem direct_sum_pair : DirectSumPair

where DirectSumPair is (source):

/-- **Direct sum, for two variables.** If `X₁` and `X₂` are conditionally independent given `Z`,
then `I[X₁; Y | Z] + I[X₂; Y | Z] ≤ I[X₁, X₂; Y | Z]`. -/
def DirectSumPair : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} {δ : Type y} [Fintype Ω] [Fintype α]
    [Fintype β] [Fintype γ] [Fintype δ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) →
    ∀ (X₁ : Ω → α) (X₂ : Ω → δ) (Y : Ω → β) (Z : Ω → γ),
      condMutualInfo P X₁ X₂ Z = 0 →
        condMutualInfo P X₁ Y Z + condMutualInfo P X₂ Y Z ≤
          condMutualInfo P (fun ω => (X₁ ω, X₂ ω)) Y Z

Lean condEntropy_subadditive · ✅ kernel-checked · source

Statement in Lean
/-- The conditional entropy of a family is subadditive, and additive for product laws. -/
theorem condEntropy_subadditive : CondEntropySubadditive

where CondEntropySubadditive is (source):

/-- **Subadditivity of the conditional entropy.** For a family `X` of random variables,
`H[X | W] ≤ ∑ i, H[X i | W]`, with equality if the joint law of `X` and `W` is the law of `W`
times a product of functions of the single members of the family. -/
def CondEntropySubadditive : Prop :=
  ∀ {Ω : Type u} {α : Type v} {γ : Type w} {ι : Type x} [Fintype Ω] [Fintype α] [Fintype γ]
    [Fintype ι] [DecidableEq ι] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) → ∀ (X : Ω → ι → α) (W : Ω → γ),
      condEntropy P X W ≤ ∑ i, condEntropy P (fun ω => X ω i) W ∧
      ∀ g : ι → α → γ → ℝ,
        (∀ x c, law P (fun ω => (X ω, W ω)) (x, c) = law P W c * ∏ i, g i (x i) c) →
          condEntropy P X W = ∑ i, condEntropy P (fun ω => X ω i) W

Lean direct_sum · ✅ kernel-checked · source

Statement in Lean
/-- The direct sum inequality. -/
theorem direct_sum : DirectSum

where DirectSum is (source):

/-- **Direct sum.** Let the joint law of a family `X` and of `Z` be the law of `Z` times a
product of functions of the single members of the family, so that the members are mutually
independent given `Z`. Then `∑ i, I[X i; Y | Z] ≤ I[X; Y | Z]`. -/
def DirectSum : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} {ι : Type y} [Fintype Ω] [Fintype α]
    [Fintype β] [Fintype γ] [Fintype ι] [DecidableEq ι] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) →
    ∀ (X : Ω → ι → α) (Y : Ω → β) (Z : Ω → γ) (g : ι → α → γ → ℝ),
      (∀ x c, law P (fun ω => (X ω, Z ω)) (x, c) = law P Z c * ∏ i, g i (x i) c) →
        ∑ i, condMutualInfo P (fun ω => X ω i) Y Z ≤ condMutualInfo P X Y Z

Lean conditioning_average · ✅ kernel-checked · source

Statement in Lean
/-- Conditional entropy and conditional mutual information as averages. -/
theorem conditioning_average : ConditioningAverage

where ConditioningAverage is (source):

/-- **Conditioning as an average.** Conditioning on an event of nonzero mass gives a
distribution, and `H[X | Z]` and `I[X; Y | Z]` are the averages over the values `c` of `Z` of the
entropy and of the mutual information under the distribution conditioned on `Z = c`. -/
def ConditioningAverage : Prop :=
  ∀ {Ω : Type u} {α : Type v} {β : Type w} {γ : Type x} [Fintype Ω] [Fintype α] [Fintype β]
    [Fintype γ] (P : Ω → ℝ), (∀ ω, 0 ≤ P ω) → ∀ (X : Ω → α) (Y : Ω → β) (Z : Ω → γ),
      (∀ c, law P Z c ≠ 0 → IsDistribution (condOn P (Z ⁻¹' {c}))) ∧
      condEntropy P X Z = ∑ c, law P Z c * entropy (law (condOn P (Z ⁻¹' {c})) X) ∧
      condMutualInfo P X Y Z = ∑ c, law P Z c * mutualInfo (condOn P (Z ⁻¹' {c})) X Y

Lean entropy_product · ✅ kernel-checked · source

Statement in Lean
/-- The entropy of a product distribution. -/
theorem entropy_product : EntropyProduct

where EntropyProduct is (source):

/-- **Product distributions.** The entropy of a product of two functions with sum one is the sum
of their entropies. -/
def EntropyProduct : Prop :=
  ∀ {α : Type u} {β : Type v} [Fintype α] [Fintype β] (p : α → ℝ) (q : β → ℝ),
    ∑ a, p a = 1 → ∑ b, q b = 1 →
      entropy (fun x : α × β => p x.1 * q x.2) = entropy p + entropy q

Lean information_of_law · ✅ kernel-checked · source

Statement in Lean
/-- Conditional mutual information depends only on the joint law. -/
theorem information_of_law : InformationOfLaw

where InformationOfLaw is (source):

/-- **Information depends only on the joint law.** If two triples of random variables, on two
finite probability spaces, have the same joint law, they have the same conditional mutual
information. In particular, the conditional mutual information under the law of a map `Φ` is
that of the random variables composed with `Φ`. -/
def InformationOfLaw : Prop :=
  ∀ {Ω : Type u} {Ω' : Type v} {α : Type w} {β : Type x} {γ : Type y} [Fintype Ω] [Fintype Ω']
    [Fintype α] [Fintype β] [Fintype γ] (P : Ω → ℝ),
    (∀ (P' : Ω' → ℝ) (X : Ω → α) (Y : Ω → β) (Z : Ω → γ) (X' : Ω' → α) (Y' : Ω' → β)
      (Z' : Ω' → γ),
      law P (fun ω => (X ω, Y ω, Z ω)) = law P' (fun ω => (X' ω, Y' ω, Z' ω)) →
        condMutualInfo P X Y Z = condMutualInfo P' X' Y' Z') ∧
    ∀ (Φ : Ω → Ω') (A : Ω' → α) (B : Ω' → β) (C : Ω' → γ),
      condMutualInfo (law P Φ) A B C = condMutualInfo P (A ∘ Φ) (B ∘ Φ) (C ∘ Φ)

/-! ### Common information -/

Lean seed_marginal · ✅ kernel-checked · source

Statement in Lean
/-- The condition, the row and the column of a seed have a law that depends only on the matrix
and the condition. -/
theorem seed_marginal : SeedMarginal

where SeedMarginal is (source):

/-- **A seed refines the matrix.** Under the seed distribution of a nonnegative factorization of
`M`, the condition, the row and the column have the distribution proportional to
`ω z a b * M a b`, whatever the factorization. -/
def SeedMarginal : Prop :=
  ∀ {I : Type u} {J : Type v} {K : Type w} {Λ : Type x} [Fintype I] [Fintype J] [Fintype K]
    [Fintype Λ] (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ) (T : Matrix I K ℝ)
    (U : Matrix K J ℝ), IsNonnegFactorization M T U → ∀ z a b,
      law (seedLaw ω T U) (fun x => (x.1, x.2.1, x.2.2.1)) (z, a, b) =
        ω z a b * M a b / ∑ z', ∑ a', ∑ b', ω z' a' b' * M a' b'

Lean seed_independence · ✅ kernel-checked · source

Statement in Lean
/-- Rows and columns are independent given the seed, for product conditions. -/
theorem seed_independence : SeedIndependence

where SeedIndependence is (source):

/-- **Seeds make rows and columns independent.** If the weights of the condition are products
`f z a * g z b`, then under the seed distribution the row and the column are conditionally
independent given the seed and the condition, and the information of the seed is at least the
conditional mutual information of the row and the column given the condition. -/
def SeedIndependence : Prop :=
  ∀ {I : Type u} {J : Type v} {K : Type w} {Λ : Type x} [Fintype I] [Fintype J] [Fintype K]
    [Fintype Λ] (ω : Λ → Matrix I J ℝ) (T : Matrix I K ℝ) (U : Matrix K J ℝ) (f : Λ → I → ℝ)
    (g : Λ → J → ℝ),
    (∀ z a b, 0 ≤ ω z a b) → (∀ a k, 0 ≤ T a k) → (∀ k b, 0 ≤ U k b) →
    (∀ z a b, ω z a b = f z a * g z b) →
      condMutualInfo (seedLaw ω T U) (fun x => x.2.1) (fun x => x.2.2.1)
          (fun x => (x.2.2.2, x.1)) = 0 ∧
        condMutualInfo (seedLaw ω T U) (fun x => x.2.1) (fun x => x.2.2.1) (fun x => x.1) ≤
          seedInfo ω T U

Lean seedInfo_bounds · ✅ kernel-checked · source

Statement in Lean
/-- The information of a seed is between zero and the logarithm of the number of its values. -/
theorem seedInfo_bounds : SeedInfoBounds

where SeedInfoBounds is (source):

/-- **Bounds on the information of a seed.** The information of a seed is nonnegative and at
most the logarithm of the number of its values. -/
def SeedInfoBounds : Prop :=
  ∀ {I : Type u} {J : Type v} {K : Type w} {Λ : Type x} [Fintype I] [Fintype J] [Fintype K]
    [Fintype Λ] (ω : Λ → Matrix I J ℝ) (T : Matrix I K ℝ) (U : Matrix K J ℝ),
    (∀ z a b, 0 ≤ ω z a b) → (∀ a k, 0 ≤ T a k) → (∀ k b, 0 ≤ U k b) →
      0 ≤ seedInfo ω T U ∧ seedInfo ω T U ≤ Real.log (Fintype.card K)

Lean commonInfo_spec · ✅ kernel-checked · source

Statement in Lean
/-- The common information through seeds. -/
theorem commonInfo_spec : CommonInfoSpec

where CommonInfoSpec is (source):

/-- **The common information through seeds.** The common information given a condition is
nonnegative; it is at most the information of every nonnegative factorization, with any finite
index set; and for an entrywise nonnegative matrix a lower bound on the information of all seeds
is a lower bound on the common information. -/
def CommonInfoSpec : Prop :=
  ∀ {I : Type u} {J : Type v} {Λ : Type w} [Fintype I] [Fintype J] [Fintype Λ]
    (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ), (∀ z a b, 0 ≤ ω z a b) →
      0 ≤ commonInfoGiven M ω ∧
      (∀ {K : Type x} [Fintype K] (T : Matrix I K ℝ) (U : Matrix K J ℝ),
        IsNonnegFactorization M T U → commonInfoGiven M ω ≤ seedInfo ω T U) ∧
      ∀ c : ℝ, (∀ a b, 0 ≤ M a b) →
        (∀ (k : ℕ) (T : Matrix I (Fin k) ℝ) (U : Matrix (Fin k) J ℝ),
          IsNonnegFactorization M T U → c ≤ seedInfo ω T U) → c ≤ commonInfoGiven M ω

Lean commonInfo_le_log_rank · ✅ kernel-checked · source

Statement in Lean
/-- The common information is at most the logarithm of the nonnegative rank. -/
theorem commonInfo_le_log_rank : CommonInfoLeLogRank

where CommonInfoLeLogRank is (source):

/-- **Common information and the nonnegative rank.** For every condition, the common information
of a matrix is at most the logarithm of its nonnegative rank. -/
def CommonInfoLeLogRank : Prop :=
  ∀ {I : Type u} {J : Type v} {Λ : Type w} [Fintype I] [Fintype J] [Fintype Λ]
    (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ), (∀ z a b, 0 ≤ ω z a b) →
      ∀ r : ℕ, nonnegRank M ≤ r → commonInfoGiven M ω ≤ Real.log r

Lean commonInfo_scale · ✅ kernel-checked · source

Statement in Lean
/-- The common information is invariant under positive scaling. -/
theorem commonInfo_scale : CommonInfoScale

where CommonInfoScale is (source):

/-- **Scaling.** The common information does not change when the matrix or the condition is
multiplied by a positive number. -/
def CommonInfoScale : Prop :=
  ∀ {I : Type u} {J : Type v} {Λ : Type w} [Fintype I] [Fintype J] [Fintype Λ]
    (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ) (c : ℝ), 0 < c →
      commonInfoGiven (c • M) ω = commonInfoGiven M ω ∧
        commonInfoGiven M (c • ω) = commonInfoGiven M ω

Lean commonInfo_bounds · ✅ kernel-checked · source

Statement in Lean
/-- The common information lies between the mutual information and the entropies of the row and
the column. -/
theorem commonInfo_bounds : CommonInfoBounds

where CommonInfoBounds is (source):

/-- **Bounds on the common information.** For an entrywise nonnegative matrix with random row `A`
and random column `B` of the induced distribution, `I[A; B] ≤ C[M] ≤ min (H[A], H[B])`. -/
def CommonInfoBounds : Prop :=
  ∀ {I : Type u} {J : Type v} [Fintype I] [Fintype J] (M : Matrix I J ℝ),
    (∀ a b, 0 ≤ M a b) →
      mutualInfo (inducedLaw M) Prod.fst Prod.snd ≤ commonInfo M ∧
      commonInfo M ≤ entropy (law (inducedLaw M) Prod.fst) ∧
      commonInfo M ≤ entropy (law (inducedLaw M) Prod.snd)

Lean commonInfo_identity · ✅ kernel-checked · source

Statement in Lean
/-- The common information of an identity matrix. -/
theorem commonInfo_identity : CommonInfoIdentity

where CommonInfoIdentity is (source):

/-- **The identity matrix.** The common information of the identity matrix on `n ≥ 1` points is
`log n`, the logarithm of its nonnegative rank. -/
def CommonInfoIdentity : Prop :=
  ∀ {I : Type u} [Fintype I] [DecidableEq I] [Nonempty I],
    commonInfo (1 : Matrix I I ℝ) = Real.log (Fintype.card I)

Lean commonInfo_relabel · ✅ kernel-checked · source

Statement in Lean
/-- The common information does not depend on the names of rows, columns and conditions. -/
theorem commonInfo_relabel : CommonInfoRelabel

where CommonInfoRelabel is (source):

/-- **Relabelling.** The common information of an entrywise nonnegative matrix given a
nonnegative condition does not change when the rows, the columns and the values of the condition
are renamed. In particular the common information of the matrix does not depend on the names of
its rows and columns. -/
def CommonInfoRelabel : Prop :=
  ∀ {I : Type u} {J : Type v} {Λ : Type w} {I' : Type x} {J' : Type y} {Λ' : Type z}
    [Fintype I] [Fintype J] [Fintype Λ] [Fintype I'] [Fintype J'] [Fintype Λ']
    (M : Matrix I J ℝ) (ω : Λ → Matrix I J ℝ), (∀ a b, 0 ≤ M a b) → (∀ z a b, 0 ≤ ω z a b) →
    ∀ (eΛ : Λ' ≃ Λ) (eI : I' ≃ I) (eJ : J' ≃ J),
      commonInfoGiven (M.submatrix eI eJ) (fun z => (ω (eΛ z)).submatrix eI eJ) =
          commonInfoGiven M ω ∧
        commonInfo (M.submatrix eI eJ) = commonInfo M

/-! ### Symmetric formulations -/

Lean symmetric_average · ✅ kernel-checked · source

Statement in Lean
/-- Averaging the left factor and the shift over a finite group. -/
theorem symmetric_average : SymmetricAverage

where SymmetricAverage is (source):

/-- **Averaging.** If a matrix and the right factor of one of its LP factorizations are invariant
under a finite group, then the left factor and the shift can be chosen invariant as well: there
is a symmetric LP factorization with the same right factor. -/
def SymmetricAverage : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} [Group G] [Fintype G] [MulAction G I]
    [MulAction G J] [MulAction G κ] [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ),
    IsLPFactorization M T U μ → IsInvariantMatrix G M → IsInvariantMatrix G U →
      ∃ (T' : Matrix I κ ℝ) (μ' : I → ℝ), IsSymmetricLPFactorization G M T' U μ'

Lean symmetric_formulation_factorization · ✅ kernel-checked · source

Statement in Lean
/-- A symmetric LP formulation gives a symmetric LP factorization. -/
theorem symmetric_formulation_factorization : SymmetricFormulationFactorization

where SymmetricFormulationFactorization is (source):

/-- **From a symmetric formulation to a symmetric factorization.** A symmetric LP formulation of
`M` for a finite group gives a symmetric LP factorization of `M` whose right factor consists of
the slacks `s k (p j)` of the points. -/
def SymmetricFormulationFactorization : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} {F : Type y} [Group G] [Fintype G]
    [MulAction G I] [MulAction G J] [MulAction G κ] [Fintype κ] [AddCommGroup F] [Module ℝ F]
    (M : Matrix I J ℝ) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ) (p : J → F)
    (w : I → F →ᵃ[ℝ] ℝ) (ρ : G →* (F ≃ᵃ[ℝ] F)),
    IsSymmetricLPFormulation G M L s p w ρ →
      ∃ (T : Matrix I κ ℝ) (μ : I → ℝ),
        IsSymmetricLPFactorization G M T (fun k j => s k (p j)) μ

Lean symmetric_factorization_formulation · ✅ kernel-checked · source

Statement in Lean
/-- A symmetric LP factorization is a symmetric LP formulation over the orthant. -/
theorem symmetric_factorization_formulation : SymmetricFactorizationFormulation

where SymmetricFactorizationFormulation is (source):

/-- **From a symmetric factorization to a symmetric formulation.** A symmetric LP factorization
`M = T U + μ 𝟙ᵀ` is a symmetric LP formulation of `M` over the nonnegative orthant of `κ → ℝ`,
on which the group acts by permuting the coordinates. -/
def SymmetricFactorizationFormulation : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} [Group G] [MulAction G I]
    [MulAction G J] [MulAction G κ] [Fintype κ] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ),
    IsSymmetricLPFactorization G M T U μ →
      IsSymmetricLPFormulation G M ⊤ coord (fun j k => U k j)
        (fun i => affineForm (T i) (μ i)) (coordAction G κ)

Lean equivariant_section · ✅ kernel-checked · source

Statement in Lean
/-- Averaging preimages gives a section that is permuted by the group. -/
theorem equivariant_section : EquivariantSection

where EquivariantSection is (source):

/-- **Equivariant sections.** Let a finite group act by affine maps on two spaces, let `Q` be a
convex set that is mapped into itself, and let `π` be an affine map that is compatible with the
actions on `Q`. Then every family of points that is permuted by the group and has preimages in
`Q` has a family of preimages in `Q` that is permuted in the same way. -/
def EquivariantSection : Prop :=
  ∀ {G : Type u} {J : Type v} {E : Type w} {F : Type x} [Group G] [Fintype G] [MulAction G J]
    [AddCommGroup E] [Module ℝ E] [AddCommGroup F] [Module ℝ F] (Q : Set F),
    Convex ℝ Q → ∀ (ρ : G →* (F ≃ᵃ[ℝ] F)) (η : G →* (E ≃ᵃ[ℝ] E)) (π : F →ᵃ[ℝ] E) (v : J → E),
      (∀ g, ∀ x ∈ Q, ρ g x ∈ Q) → (∀ g, ∀ x ∈ Q, π (ρ g x) = η g (π x)) →
      (∀ (g : G) (j : J), v (g • j) = η g (v j)) → (∀ j, ∃ x ∈ Q, π x = v j) →
        ∃ p : J → F, (∀ j, p j ∈ Q) ∧ (∀ j, π (p j) = v j) ∧
          ∀ (g : G) (j : J), p (g • j) = ρ g (p j)

Lean symmetric_extension_factorization · ✅ kernel-checked · source

Statement in Lean
/-- A symmetric extension gives symmetric LP factorizations of invariant slack matrices. -/
theorem symmetric_extension_factorization : SymmetricExtensionFactorization

where SymmetricExtensionFactorization is (source):

/-- **From a symmetric extension to a symmetric factorization.** Let the set `P` have a symmetric
extension for a finite group. For points `v j` of `P` and affine functions `h i` that are
nonnegative on `P`, both compatible with the action of the group, the slack matrix has a
symmetric LP factorization indexed by the inequalities of the extension. -/
def SymmetricExtensionFactorization : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} {E : Type y} {F : Type z} [Group G]
    [Fintype G] [MulAction G I] [MulAction G J] [MulAction G κ] [Fintype κ] [AddCommGroup E]
    [Module ℝ E] [AddCommGroup F] [Module ℝ F] (P : Set E) (L : AffineSubspace ℝ F)
    (s : κ → F →ᵃ[ℝ] ℝ) (π : F →ᵃ[ℝ] E) (ρ : G →* (F ≃ᵃ[ℝ] F)) (η : G →* (E ≃ᵃ[ℝ] E))
    (h : I → E →ᵃ[ℝ] ℝ) (v : J → E),
    IsSymmetricExtension G P L s π ρ η → (∀ j, v j ∈ P) → (∀ i, ∀ x ∈ P, 0 ≤ h i x) →
    (∀ (g : G) (j : J), v (g • j) = η g (v j)) →
    (∀ (g : G) (i : I), ∀ x ∈ P, h (g • i) (η g x) = h i x) →
      ∃ (T : Matrix I κ ℝ) (U : Matrix κ J ℝ) (μ : I → ℝ),
        IsSymmetricLPFactorization G (slackMatrix h v) T U μ

Lean symmetric_factorization_extension · ✅ kernel-checked · source

Statement in Lean
/-- A symmetric LP factorization of a slack matrix gives a symmetric extension. -/
theorem symmetric_factorization_extension : SymmetricFactorizationExtension

where SymmetricFactorizationExtension is (source):

/-- **From a symmetric factorization to a symmetric extension.** A symmetric LP factorization
`(T, U, μ)` of the slack matrix of points `v j` and affine functions `h i`, where the functions
are compatible with the action of the group, makes the extension of `factorRelaxation h T μ`
symmetric: the group acts on the lifted space by its action on the space of the points and by
permuting the coordinates. -/
def SymmetricFactorizationExtension : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} {E : Type y} [Group G] [MulAction G I]
    [MulAction G J] [MulAction G κ] [Fintype κ] [AddCommGroup E] [Module ℝ E]
    (η : G →* (E ≃ᵃ[ℝ] E)) (h : I → E →ᵃ[ℝ] ℝ) (v : J → E) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ),
    IsSymmetricLPFactorization G (slackMatrix h v) T U μ →
    (∀ (g : G) (i : I) (x : E), h (g • i) (η g x) = h i x) →
      IsSymmetricExtension G (factorRelaxation h T μ) (zeroLocus (liftEq h T μ))
        (fun k => (coord k).comp (AffineMap.snd : (E × (κ → ℝ)) →ᵃ[ℝ] (κ → ℝ)))
        (AffineMap.fst : (E × (κ → ℝ)) →ᵃ[ℝ] E) (prodAction η (coordAction G κ)) η

Lean stabilizer_rows · ✅ kernel-checked · source

Statement in Lean
/-- Rows are invariant under stabilizers, which have small index. -/
theorem stabilizer_rows : StabilizerRows

where StabilizerRows is (source):

/-- **Stabilizers.** The row of an index `k` of an invariant matrix is invariant under the
stabilizer of `k`, and in an action on a finite set the stabilizer of `k` has index at most the
number of elements. -/
def StabilizerRows : Prop :=
  ∀ {G : Type u} {J : Type v} {κ : Type w} [Group G] [MulAction G J] [MulAction G κ]
    [Fintype κ] (U : Matrix κ J ℝ) (k : κ),
    (IsInvariantMatrix G U → ∀ g ∈ MulAction.stabilizer G k, ∀ j, U k (g • j) = U k j) ∧
      (MulAction.stabilizer G k).index ≤ Fintype.card κ

Lean symmetric_certificate_matrix · ✅ kernel-checked · source

Statement in Lean
/-- The certificate of Braun and Pokutta, for matrices. -/
theorem symmetric_certificate_matrix : SymmetricCertificateMatrix

where SymmetricCertificateMatrix is (source):

/-- **The certificate against symmetric factorizations.** Let `M = T U + μ 𝟙ᵀ` be an LP
factorization whose right factor is invariant under a group. Let `c` be a function on the
columns with sum one, and for every index `k` of the factorization let the columns be partitioned
into blocks that lie in orbits of the stabilizer of `k`, such that the sum of `c` over every
block is nonnegative. Then `M c` is entrywise nonnegative. -/
def SymmetricCertificateMatrix : Prop :=
  ∀ {G : Type u} {I : Type v} {J : Type w} {κ : Type x} {β : Type y} [Group G] [MulAction G J]
    [MulAction G κ] [Fintype κ] [Fintype J] (M : Matrix I J ℝ) (T : Matrix I κ ℝ)
    (U : Matrix κ J ℝ) (μ : I → ℝ) (c : J → ℝ) (blocks : κ → J → β),
    IsLPFactorization M T U μ → IsInvariantMatrix G U → ∑ j, c j = 1 →
    (∀ k j j', blocks k j = blocks k j' → ∃ g ∈ MulAction.stabilizer G k, g • j = j') →
    (∀ k b, 0 ≤ ∑ j, (blocks k ⁻¹' {b}).indicator c j) →
      ∀ i, 0 ≤ ∑ j, M i j * c j

Lean symmetric_certificate · ✅ kernel-checked · source

Statement in Lean
/-- The certificate of Braun and Pokutta against small symmetric extensions. -/
theorem symmetric_certificate : SymmetricCertificate

where SymmetricCertificate is (source):

/-- **The certificate against symmetric extensions.** Let the set `P` have a symmetric extension
for a finite group, and let `v j` be finitely many points of `P` that are permuted by the group.
Let `c` be a function on these points with sum one, and for every inequality `k` of the
extension let the points be partitioned into blocks that lie in orbits of the stabilizer of `k`,
such that the sum of `c` over every block is nonnegative. Then `∑ j, c j • v j` lies in `P`. -/
def SymmetricCertificate : Prop :=
  ∀ {G : Type u} {J : Type v} {κ : Type w} {E : Type x} {F : Type y} {β : Type z} [Group G]
    [Fintype G] [MulAction G J] [MulAction G κ] [Fintype J] [AddCommGroup E] [Module ℝ E]
    [AddCommGroup F] [Module ℝ F] (P : Set E) (L : AffineSubspace ℝ F) (s : κ → F →ᵃ[ℝ] ℝ)
    (π : F →ᵃ[ℝ] E) (ρ : G →* (F ≃ᵃ[ℝ] F)) (η : G →* (E ≃ᵃ[ℝ] E)) (v : J → E) (c : J → ℝ)
    (blocks : κ → J → β),
    IsSymmetricExtension G P L s π ρ η → (∀ j, v j ∈ P) →
    (∀ (g : G) (j : J), v (g • j) = η g (v j)) → ∑ j, c j = 1 →
    (∀ k j j', blocks k j = blocks k j' → ∃ g ∈ MulAction.stabilizer G k, g • j = j') →
    (∀ k b, 0 ≤ ∑ j, (blocks k ⁻¹' {b}).indicator c j) →
      ∑ j, c j • v j ∈ P

AI use. The formalization and this page were developed with Claude (Anthropic) under the author’s direction and review, on top of Mathlib.

Acknowledgements. This research was conducted in the context of the Agentic AI in Mathematics (EF-LiOpt-3) project at the Berlin Mathematics Research Center MATH+^+ (EXC-2046/2, project ID 390685689), funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy. This work has been partially supported by OpenAI’s Academic Researchers program.

License: CC BY 4.0

Comments.

Comments are external content (GitHub Discussions, shown with giscus) and need JavaScript.

References
  1. Yannakakis, M. (1991). Expressing combinatorial optimization problems by linear programs. Journal of Computer and System Sciences, 43(3), 441–466. 10.1016/0022-0000(91)90024-Y
  2. Braun, G., Pokutta, S., & Zink, D. (2014). Affine reductions for LPs and SDPs. 10.48550/arXiv.1410.8816
  3. Braun, G., Pokutta, S., & Roy, A. (2015). Strong reductions for extended formulations. 10.48550/arXiv.1512.04932
  4. Pashkovich, K. (2012). Extended formulations for combinatorial polytopes [Phdthesis, Otto-von-Guericke-Universität Magdeburg]. 10.25673/3850
  5. Braun, G., Fiorini, S., Pokutta, S., & Steurer, D. (2015). Approximation limits of linear programs (beyond hierarchies). Mathematics of Operations Research, 40(3), 756–772. 10.1287/moor.2014.0694
  6. Fiorini, S., Massar, S., Pokutta, S., Tiwary, H. R., & de Wolf, R. (2015). Exponential Lower Bounds for Polytopes in Combinatorial Optimization. Journal of the ACM, 62(2), 1–23. 10.1145/2716307
  7. Bartl, D. (2008). A short algebraic proof of the Farkas lemma. SIAM Journal on Optimization, 19(1), 234–239. 10.1137/06067438
  8. Gouveia, J., Parrilo, P. A., & Thomas, R. R. (2013). Lifts of convex sets and cone factorizations. Mathematics of Operations Research, 38(2), 248–264. 10.1287/moor.1120.0575
  9. Balas, E. (1998). Disjunctive programming: properties of the convex hull of feasible points. Discrete Applied Mathematics, 89(1–3), 3–44. 10.1016/S0166-218X(98)00136-X
  10. Kaibel, V., & Weltge, S. (2015). A Short Proof that the Extension Complexity of the Correlation Polytope Grows Exponentially. Discrete & Computational Geometry, 53(2), 397–401. 10.1007/s00454-014-9655-9
  11. Rothvoss, T. (2013). The matching polytope has exponential extension complexity. 10.48550/arXiv.1311.2369
  12. Borwein, J. M., & Wolkowicz, H. (1981). Regularizing the abstract convex program. Journal of Mathematical Analysis and Applications, 83(2), 495–530. 10.1016/0022-247X(81)90138-4
  13. Bazzi, A., Fiorini, S., Pokutta, S., & Svensson, O. (2019). No small linear program approximates vertex cover within a factor 2−ϵ2 - \epsilon. Mathematics of Operations Research, 44(1). 10.1287/moor.2017.0918
  14. Braun, G., & Pokutta, S. (2013). Common Information and Unique Disjointness. 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, 688–697. 10.1109/FOCS.2013.79
  15. Braun, G., & Pokutta, S. (2014). The matching polytope does not admit fully-polynomial size relaxation schemes. 10.48550/arXiv.1403.6710