Finite-Carrier Counting via Permutation Orbits #
This file proves that for structures on Fin n, isomorphism is the orbit
equivalence relation of Equiv.Perm (Fin n), which is Borel (finite union of
graphs of continuous maps). Combined with the existing ℕ-tier result, this
gives a counting dichotomy for all countable models.
Main Definitions #
isoSetoidOn: Isomorphism setoid onModelsOfOn (α := Fin n) φ.AllCodedIsoClasses: Disjoint union of iso classes across all carrier tiers.
Main Results #
iso_iff_orbit: Isomorphism ofFin n-structures = orbit ofSym(Fin n).isoSetoidOn_measurableSet: The isomorphism relation onFin n-models is Borel.counting_fin_models_dichotomy: Per-tier counting dichotomy.allCodedIsoClasses_dichotomy: Combined counting dichotomy for all countable models.
Permutation action on finite-carrier structure space #
Equiv.Perm (Fin n) acts on StructureSpaceOn L (Fin n) by relabeling:
(σ • c) ⟨R, v⟩ = c ⟨R, σ.symm ∘ v⟩.
Equations
- One or more equations did not get rendered due to their size.
Equations
- FirstOrder.Language.permMulAction n = { toSMul := FirstOrder.Language.permSmul n, mul_smul := ⋯, one_smul := ⋯ }
Isomorphism = orbit equivalence #
Two Fin n-structures are L-isomorphic iff they lie in the same Sym(Fin n) orbit.
Isomorphism setoid on finite-carrier models #
The isomorphism setoid on models of φ with carrier Fin n.
Equations
- FirstOrder.Language.isoSetoidOn φ n = { r := fun (c₁ c₂ : ↑(FirstOrder.Language.ModelsOfOn φ)) => Nonempty (L.Equiv (Fin n) (Fin n)), iseqv := ⋯ }
Instances For
Isomorphism relation is Borel on finite carriers #
Each orbit map c ↦ σ • c is continuous on StructureSpaceOn L (Fin n).
The isomorphism relation on Fin n-models is measurable.
It equals ⋃ σ : Perm(Fin n), graph(σ • ·), a finite union of closed sets.
Per-tier counting dichotomy #
Per-tier counting dichotomy: for each n, the iso classes among Fin n-models
of φ are either ≤ ℵ₀ or = 2^ℵ₀. Does NOT need bounded Scott height.
Combined counting theorem #
The type of all coded isomorphism classes across all carrier tiers: ℕ-models plus Fin n-models for each n.
Equations
Instances For
Counting dichotomy for all countable models with bounded Scott height.
The type AllCodedIsoClasses φ faithfully represents all isomorphism classes of
countable models of φ (via the bridge theorems codeModel, iso_of_codeModel_eq,
codeModel_surjective).
This theorem states the dichotomy on its cardinality.
Bridge theorems: coded classes represent all countable models #
Map a countable model of φ to its coded iso class.
Uses finite_or_infinite to dispatch to the ℕ or Fin n tier.
Equations
- One or more equations did not get rendered due to their size.
Instances For
L-isomorphic countable models map to the same coded class.
Models mapping to the same coded class are L-isomorphic.
The proof composes: M ≃[L] carrier (from encodeViaEquiv_iso), the carrier-carrier
L-isomorphism (extracted from the quotient equality in h), and carrier ≃[L] N
(from encodeViaEquiv_iso).
Every coded class is realized by some countable model.