Agreement of outer contexts in two ordered graphs
Lax977378.OuterContexts · concepts/Lax977378/OuterContexts.lean · lax-977378
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A pointed ball is taken in the graph metric. Agreement at rank requires a rooted ordered ball isomorphism, matching rank- 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
Lean source view on GitHub
| 1 | import Lax977378.Logic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Agreement of outer contexts in two ordered graphs |
| 6 | type: definition |
| 7 | --- |
| 8 | A pointed ball is taken in the graph metric. Agreement at rank |
| 9 | requires a rooted ordered ball isomorphism, matching rank- labels on |
| 10 | ball vertices and matching sets of lower contexts in the internal gaps |
| 11 | and the two outer gaps. Strict comparisons against every ball vertex |
| 12 | specify the gap. Both directions of witness matching are required. |
| 13 | -/ |
| 14 | namespace Lax977378.OuterContexts |
| 15 | |
| 16 | open Lax977378.Logic |
| 17 | |
| 18 | def 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 | |
| 22 | abbrev Ball {c : Nat} (G : Graph c) (r : Nat) (x : Fin G.size) := |
| 23 | {y : Fin G.size // within G r x y} |
| 24 | |
| 25 | def 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 | |
| 39 | def 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 | |
| 43 | end Lax977378.OuterContexts |
| 44 |
Builds on
Used by
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments