Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Flag.Exchange

Vectors and matrices of rank one over F₂ #

Linear algebra for the step "Rank one" of the proof of Theorem thm:alt in VP ≠ VNP over every field [Ant26] (module Nc.Flag.Exchange). The matrix u xᵀ is vecMulVec u x. For nonzero u₁x₁ᵀ and u₂x₂ᵀ, the matrices W, u₁x₁ᵀ, u₂x₂ᵀ are transversal if and only if u₁, u₂ are independent modulo the column space of W and x₁, x₂ modulo its row space (Flag.transversal_vec_iff). Flag.connect joins any two vectors outside a subspace of codimension at least 2 by steps x ↦ x + y with x, y independent modulo the subspace.

Main definitions #

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Flag.mem_sup_span_F2 {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u v : Fin m → F2} :
v ∈ A ⊔ F2 ∙ u ↔ v ∈ A ∨ v + u ∈ A
def Cslib.Circuits.Arithmetic.Separation.Flag.Indep2 {m : ℕ} (A : Submodule F2 (Fin m → F2)) (u₁ u₂ : Fin m → F2) :

The vectors u₁, u₂ are independent modulo the subspace A: none of u₁, u₂, u₁ + u₂ lies in A. In other words, u₁ is outside A, and u₂ is outside the span of u₁ with A.

theorem Cslib.Circuits.Arithmetic.Separation.Flag.indep2_iff {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} :
Indep2 A u₁ u₂ ↔ u₁ ∉ A ∧ u₂ ∉ A ⊔ F2 ∙ u₁
theorem Cslib.Circuits.Arithmetic.Separation.Flag.Indep2.symm {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h : Indep2 A u₁ u₂) :
Indep2 A u₂ u₁
theorem Cslib.Circuits.Arithmetic.Separation.Flag.Indep2.add_right {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h : Indep2 A u₁ u₂) :
Indep2 A u₁ (u₁ + u₂)
theorem Cslib.Circuits.Arithmetic.Separation.Flag.Indep2.add_left {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h : Indep2 A u₁ u₂) :
Indep2 A (u₁ + u₂) u₂
theorem Cslib.Circuits.Arithmetic.Separation.Flag.exists_notMem {m : ℕ} {A : Submodule F2 (Fin m → F2)} (hA : Module.finrank F2 ↥A < m) :
∃ (u : Fin m → F2), u ∉ A
theorem Cslib.Circuits.Arithmetic.Separation.Flag.exists_indep2 {m : ℕ} {A : Submodule F2 (Fin m → F2)} (hA : Module.finrank F2 ↥A + 2 ≤ m) {u : Fin m → F2} (hu : u ∉ A) :
∃ (v : Fin m → F2), Indep2 A u v

Outside a subspace of codimension at least 2, every vector has a second one that is independent of it.

theorem Cslib.Circuits.Arithmetic.Separation.Flag.connect {m : ℕ} {R : Submodule F2 (Fin m → F2)} (hR : Module.finrank F2 ↥R + 2 ≤ m) {g : (Fin m → F2) → ℝ} (hg : ∀ (x y : Fin m → F2), Indep2 R x y → g (x + y) = g x) {x x' : Fin m → F2} (hx : x ∉ R) (hx' : x' ∉ R) :
g x = g x'

"Such moves connect all vectors outside" a subspace R of codimension at least 2: a function that does not change when x becomes x + y, for x, y independent modulo R, has one value outside R.

Matrices u xᵀ #

theorem Cslib.Circuits.Arithmetic.Separation.Flag.rank_vec {m : ℕ} {u x : Fin m → F2} (hu : u ≠ 0) (hx : x ≠ 0) :

Independent subspaces #

theorem Cslib.Circuits.Arithmetic.Separation.Flag.disjoint_span_F2 {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u : Fin m → F2} (hu : u ≠ 0) :
Disjoint A (F2 ∙ u) ↔ u ∉ A
theorem Cslib.Circuits.Arithmetic.Separation.Flag.iSupIndep_of_indep2 {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h : Indep2 A u₁ u₂) :
iSupIndep ![A, F2 ∙ u₁, F2 ∙ u₂]
theorem Cslib.Circuits.Arithmetic.Separation.Flag.indep2_of_iSupIndep {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h1 : u₁ ≠ 0) (h2 : u₂ ≠ 0) (h : iSupIndep ![A, F2 ∙ u₁, F2 ∙ u₂]) :
Indep2 A u₁ u₂

Transversal matrices of rank one #

theorem Cslib.Circuits.Arithmetic.Separation.Flag.transversal_vec {m : ℕ} {W : Mt m} {u x : Fin m → F2} (hu : u ≠ 0) (hx : x ≠ 0) :

W and u xᵀ ≠ 0 are transversal if and only if u is outside the column space and x outside the row space of W.

theorem Cslib.Circuits.Arithmetic.Separation.Flag.transversal_vec_iff {m : ℕ} {W : Mt m} {u₁ u₂ x₁ x₂ : Fin m → F2} (h1 : Matrix.vecMulVec u₁ x₁ ≠ 0) (h2 : Matrix.vecMulVec u₂ x₂ ≠ 0) :
Transversal ![W, Matrix.vecMulVec u₁ x₁, Matrix.vecMulVec u₂ x₂] ↔ Indep2 (colSpace W) u₁ u₂ ∧ Indep2 (rowSpace W) x₁ x₂

W, u₁x₁ᵀ ≠ 0 and u₂x₂ᵀ ≠ 0 are transversal if and only if u₁, u₂ are independent modulo the column space of W and x₁, x₂ modulo its row space.

theorem Cslib.Circuits.Arithmetic.Separation.Flag.Indep2.ne_zero {m : ℕ} {A : Submodule F2 (Fin m → F2)} {u₁ u₂ : Fin m → F2} (h : Indep2 A u₁ u₂) :
u₁ ≠ 0 ∧ u₂ ≠ 0
theorem Cslib.Circuits.Arithmetic.Separation.Flag.transversal_of_indep2 {m : ℕ} {W : Mt m} {u₁ u₂ x₁ x₂ : Fin m → F2} (hu : Indep2 (colSpace W) u₁ u₂) (hx : Indep2 (rowSpace W) x₁ x₂) :

The zero matrix is transversal to every matrix.

The last two of three transversal matrices are transversal.

theorem Cslib.Circuits.Arithmetic.Separation.Flag.X_singleton {m : ℕ} (p q : GLM (Fin m)) (i : Fin m) :
X p q {i} = Matrix.vecMulVec ((↑p).col i) ((↑q).row i)

The matrix p·dg{i}·q is u xᵀ for the column u of p and the row x of q with the index i.