Agreement of outer contexts in two ordered graphs

Lax977378.OuterContexts · concepts/Lax977378/OuterContexts.lean · lax-977378

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    A pointed ball is taken in the graph metric. Agreement at rank i+1i+1 requires a rooted ordered ball isomorphism, matching rank-ii labels on ball vertices and matching sets of lower contexts in the internal gaps and the two outer gaps. Strict comparisons against every ball vertex specify the gap. Both directions of witness matching are required.

    Concept map
    2 concepts
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.

    Lean source view on GitHub

    1import Lax977378.Logic
    2
    3/-!
    4---
    5title: Agreement of outer contexts in two ordered graphs
    6type: definition
    7---
    8A pointed ball is taken in the graph metric. Agreement at rank i+1i+1
    9requires a rooted ordered ball isomorphism, matching rank-ii labels on
    10ball vertices and matching sets of lower contexts in the internal gaps
    11and the two outer gaps. Strict comparisons against every ball vertex
    12specify the gap. Both directions of witness matching are required.
    13-/
    14namespace Lax977378.OuterContexts
    15
    16open Lax977378.Logic
    17
    18def within {c : Nat} (G : Graph c) : Nat → Fin G.size → Fin G.size → Prop
    19 | 0, x, y => x = y
    20 | i+1, x, y => within G i x y ∨ ∃ z, within G i x z ∧ G.edge z y
    21
    22abbrev Ball {c : Nat} (G : Graph c) (r : Nat) (x : Fin G.size) :=
    23 {y : Fin G.size // within G r x y}
    24
    25def same {c : Nat} (A B : Graph c) (a : LinearOrder (Fin A.size))
    26 (b : LinearOrder (Fin B.size)) : Nat → Fin A.size → Fin B.size → Prop
    27 | 0, x, y => ∀ p, A.pred p x ↔ B.pred p y
    28 | i+1, x, y =>
    29 ∃ h : Ball A (i+1) x ≃ Ball B (i+1) y,
    30 (∀ u, u.val = x ↔ (h u).val = y) ∧
    31 (∀ u v, A.edge u.val v.val ↔ B.edge (h u).val (h v).val) ∧
    32 (∀ u v, a.lt u.val v.val ↔ b.lt (h u).val (h v).val) ∧
    33 (∀ u, same A B a b i u.val (h u).val) ∧
    34 let matched := fun (z : Fin A.size) (w : Fin B.size) =>
    35 same A B a b i z w ∧ ∀ u,
    36 (a.lt z u.val ↔ b.lt w (h u).val) ∧ (a.lt u.val z ↔ b.lt (h u).val w)
    37 (∀ z, ∃ w, matched z w) ∧ (∀ w, ∃ z, matched z w)
    38
    39def spectrumAgrees {c : Nat} (A B : Graph c) (a : LinearOrder (Fin A.size))
    40 (b : LinearOrder (Fin B.size)) (i : Nat) : Prop :=
    41 (∀ x, ∃ y, same A B a b i x y) ∧ (∀ y, ∃ x, same A B a b i x y)
    42
    43end Lax977378.OuterContexts
    44

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…