Documentation

InfinitaryLogic.Methods.Interpolation.GraphReconstruction

Reconstructing functions from a model of the graph axioms (Craig Layer 3, Unit 5b) #

From any nonempty graphLanguage L-structure satisfying graphAxioms F, a full (noncomputable) L.Structure: for f ∈ F the function value is the totality witness (unique by functionality), outside F an arbitrary element; every base relation is copied directly.

The results are deliberately localized to F — global round-trip structure identities are false outside F, and nothing downstream needs them. The choice outside F is completely irrelevant to every consumer:

noncomputable def FirstOrder.Language.graphValue {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] (hAx : (graphAxioms F).Realize M) {n : } (f : L.Functions n) (xs : Fin nM) :
M

The function value extracted from a model of the graph axioms: the totality witness for f ∈ F (unique by functionality), an arbitrary element outside F.

Equations
Instances For
    theorem FirstOrder.Language.graphValue_spec {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] (hAx : (graphAxioms F).Realize M) {n : } (f : L.Functions n) (h : n, f F) (xs : Fin nM) :

    The extracted value satisfies the graph relation.

    theorem FirstOrder.Language.graphValue_unique {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] (hAx : (graphAxioms F).Realize M) {n : } (f : L.Functions n) (h : n, f F) (xs : Fin nM) (y : M) (hy : Structure.RelMap (GraphRelation.graph f) (Fin.snoc xs y)) :
    y = graphValue hAx f xs

    Uniqueness from functionality: anything the graph relation relates to xs is the extracted value.

    @[reducible]
    noncomputable def FirstOrder.Language.reconstructStructure {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] (F : Set ((n : ) × L.Functions n)) [Countable F] (hAx : (graphAxioms F).Realize M) :

    The reconstructed L-structure: functions from graphValue, base relations copied.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem FirstOrder.Language.reconstruct_relMap_base {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] (hAx : (graphAxioms F).Realize M) {n : } (R : L.Relations n) (v : Fin nM) :

      Base relations are copied directly — definitionally.

      theorem FirstOrder.Language.reconstruct_funMap_graph_iff {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] (hAx : (graphAxioms F).Realize M) {n : } (f : L.Functions n) (h : n, f F) (xs : Fin nM) (y : M) :

      For f ∈ F, the reconstructed funMap is characterized by the graph relation.

      Graph-expanding a reconstruction preserves the graph relations of F.

      theorem FirstOrder.Language.realize_relationalize_reconstruct {L : Language} {M : Type} [Nonempty M] [L.graphLanguage.Structure M] {F : Set ((n : ) × L.Functions n)} [Countable F] {α : Type} (hAx : (graphAxioms F).Realize M) {n : } (φ : L.BoundedFormulaω α n) ( : φ.functionsInF) (v : αM) (xs : Fin nM) :

      The capstone (consumer-shaped): for formulas whose function support lies in F, the relationalized formula in the ambient graph structure realizes exactly as the original formula in the reconstruction. The choice outside F never enters.

      Localized round-trip: reconstructing a graph expansion #

      theorem FirstOrder.Language.reconstruct_graphExpansion_relMap {L : Language} {M : Type} [Nonempty M] [L.Structure M] (F : Set ((n : ) × L.Functions n)) [Countable F] {n : } (R : L.Relations n) (v : Fin nM) :

      Reconstructing the graph expansion preserves all base relations — definitionally.

      theorem FirstOrder.Language.reconstruct_graphExpansion_funMap {L : Language} {M : Type} [Nonempty M] [L.Structure M] (F : Set ((n : ) × L.Functions n)) [Countable F] {n : } (f : L.Functions n) (h : n, f F) (v : Fin nM) :

      Reconstructing the graph expansion recovers funMap on every symbol of F.