The equational criterion for flatness
ProvedFamousTheorems.equational_criterion_flatnessThe equational criterion for flatness. A module over a commutative ring is flat if and only if the following holds. Whenever in with and , there exist , elements and a matrix over such that for all and for all .
In words, every linear relation in is a consequence of linear relations in . The criterion is the main tool for proving flatness by hand, and it is the key step in Lazard's theorem that flat modules are filtered colimits of free modules.
Formalization note. Mathlib's Module.Flat.iff_forall_exists_factorization. The coefficients form an element of Fin l →₀ R, the elements are encoded as the linear map , and the conclusion factors through via a map that kills .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem equational_criterion_flatness {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] :
Module.Flat R M ↔
∀ {l : ℕ} {f : Fin l →₀ R} {x : (Fin l →₀ R) →ₗ[R] M}, x f = 0 →
∃ (k : ℕ) (a : (Fin l →₀ R) →ₗ[R] (Fin k →₀ R)) (y : (Fin k →₀ R) →ₗ[R] M), x = y ∘ₗ a ∧ a f = 0 := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `Module.Flat.iff_forall_exists_factorization`. Proof here reduces to that Mathlib result.