Every transcendence basis has cardinality equal to the transcendence degree
ProvedFamousTheorems.transcendence_basis_card_trdeg_7bEvery transcendence basis has the same cardinality. Let be a nontrivial commutative ring and a commutative -algebra without zero divisors. Then every transcendence basis of over has cardinality equal to the transcendence degree .
This is the analogue for algebraic independence of the invariance of dimension for vector spaces. It makes the transcendence degree a well-defined invariant, which is the dimension of the corresponding variety in algebraic geometry: for example . For fields the proof uses an exchange lemma like the Steinitz exchange lemma.
Formalization note. Mathlib's IsTranscendenceBasis.lift_cardinalMk_eq_trdeg. A transcendence basis is an algebraically independent family over which is algebraic, and Algebra.trdeg R A is defined as the supremum of the cardinalities of algebraically independent families. Cardinal.lift moves both sides to a common universe.
import Mathlib
namespace FamousTheorems
theorem transcendence_basis_card_trdeg_7b {ι R A : Type*} [CommRing R] [CommRing A] [Algebra R A] [Nontrivial R] [NoZeroDivisors A] {x : ι → A}
(hx : IsTranscendenceBasis R x) :
Cardinal.lift.{u_3} (Cardinal.mk ι) = Cardinal.lift.{u_1} (Algebra.trdeg R A) := by sorry
end FamousTheorems