Documentation

CompPoly.Fields.Extension.Cardinality

Finiteness and cardinality of monic quotient presentations #

The coordinate equivalence gives Finite (Ext P) from Finite F, and gives an optional Fintype (Ext P) when an enumeration of the base is available. A separate certificate Fact (Nat.card F = P.q) identifies the stored exponent parameter with the base cardinality. The resulting extension cardinality is P.q ^ P.d.

These facts require neither a polynomial quotient bridge nor irreducibility. All finiteness and cardinality assumptions used by field laws are propositions, so executable arithmetic never receives an enumeration dictionary merely to use those laws.

The certified cardinality agrees with any enumeration of the base type.

The certified binomial base cardinality agrees with any enumeration.

@[instance_reducible]
theorem CompPoly.Extension.Ext.card_ext {F : Type u_1} {P : ExtensionParams F} [Fintype F] [Fact (Nat.card F = P.q)] :
Fintype.card (Ext P) = P.q ^ P.d

The enumerated extension cardinality is the certified base cardinality to the degree.

theorem CompPoly.Extension.Ext.nat_card_ext {F : Type u_1} {P : ExtensionParams F} [Finite F] [Fact (Nat.card F = P.q)] :
Nat.card (Ext P) = P.q ^ P.d

The extension has q^d elements, independently of any chosen enumeration.