Documentation

InfinitaryLogic.Karp.PotentialIso

Potential Isomorphism #

This file defines potential isomorphism between structures and connects it to back-and-forth equivalence at all ordinal levels.

Main Definitions #

Main Results #

References #

structure FirstOrder.Language.PotentialIso (L : Language) [L.IsRelational] (M : Type w) (N : Type w') [L.Structure M] [L.Structure N] :
Type (max w w')

A potential isomorphism between structures M and N is a family of finite partial maps (given as pairs of compatible tuples) that contains the empty map and is closed under extension in both directions.

This is the model-theoretic notion corresponding to "back-and-forth system" or "winning strategy in the infinite EF game."

Instances For

    The trivial potential isomorphism from M to itself via the identity.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def FirstOrder.Language.PotentialIso.symm {L : Language} [L.IsRelational] {M : Type w} [L.Structure M] {N : Type w'} [L.Structure N] (p : L.PotentialIso M N) :

      Potential isomorphism is symmetric.

      Equations
      Instances For

        PotentialIso implies isomorphism for countable structures #

        For countable structures, a potential isomorphism implies actual isomorphism.

        This is a direct back-and-forth construction that doesn't go through Scott sentences or Karp's theorem, avoiding circular dependencies in the formalization.

        theorem FirstOrder.Language.potentialIso_family_BFEquiv {L : Language} [L.IsRelational] [Countable ((l : ) × L.Relations l)] {M : Type w} [L.Structure M] {N : Type w} [L.Structure N] (P : L.PotentialIso M N) (α : Ordinal.{u_1}) {n : } {a : Fin nM} {b : Fin nN} (hab : n, (a, b) P.family) :
        BFEquiv α n a b

        Given a potential isomorphism, BFEquiv holds at every ordinal level for any pair in the family. This is the key inductive step for the (→) direction of the potential isomorphism characterization.

        The proof proceeds by ordinal induction: the zero case uses atomic type preservation, the successor case uses the forth/back extension properties, and the limit case follows from the induction hypothesis.

        A potential isomorphism implies BF-equivalence at all ordinals for the empty tuple.

        BF-equivalence at all ordinals implies potential isomorphism.

        The proof constructs the family of tuples (n, a, b) such that BFEquiv α n a b holds for every ordinal α, and verifies the forth and back properties by a supremum contradiction argument.

        Universe constraint: The proof requires the ordinal universe to match the type universe w (via Ordinal.bddAbove_range). This is because the contradiction argument takes a supremum of ordinals indexed by N : Type w, which requires Ordinal.{w}. The forward direction (PotentialIso.implies_BFEquiv_all) is fully universe-polymorphic.

        A potential isomorphism exists if and only if BFEquiv holds at all ordinals for the empty tuple. This is the main characterization theorem for potential isomorphism.

        Universe note: The ordinal universe is constrained to match the type universe w by BFEquiv_all_implies_potentialIso (which uses a supremum over N : Type w). The forward direction is universe-polymorphic; the backward direction requires this match.