Documentation

LeanPool.ArithmeticTriangleRemovalInVectorSpaces.LinearMap.Card

Linear maps vanishing at independent vectors #

For linearly independent v : Fin r → V, the map A ↦ (A (v i))ᵢ from V →ₗ[K] W to Fin r → W is surjective. Hence the linear maps that vanish at v 0, …, v (r - 1) form a proportion 1 / Nat.card W ^ r of all linear maps. A uniformly random linear map A stands in for the random subspace of Fox and Lovász: its kernel contains r given independent vectors with probability Nat.card W ^ (-r).

Main statements #

instance LinearMap.finite_of_finite {K : Type u_1} {V : Type u_2} {W : Type u_3} [Field K] [AddCommGroup V] [Module K V] [AddCommGroup W] [Module K W] [Finite V] [Finite W] :

There are finitely many linear maps between finite modules.

theorem LinearIndependent.natCard_mul_pow_eq_natCard {K : Type u_1} {V : Type u_2} {W : Type u_3} [Field K] [AddCommGroup V] [Module K V] [AddCommGroup W] [Module K W] {r : ℕ} {v : Fin r → V} (hv : LinearIndependent K v) :
Nat.card { A : V →ₗ[K] W // ∀ (i : Fin r), A (v i) = 0 } * Nat.card W ^ r = Nat.card (V →ₗ[K] W)

The linear maps vanishing at r linearly independent vectors form a proportion 1 / Nat.card W ^ r of all linear maps.