Draft — mutable and not usable as a dependency; its citation marks the draft state.

Lax57.GraphDefinitions

Finite graph notions for the five-vertex path theorem

concepts/Lax57/GraphDefinitions.lean · lax-57

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.

    Concept map

    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Definition

    This module defines the five-vertex path P5P_5, its complement (the house), and the notions of sparsity, restrictedness, and blockades used throughout the formalization. For a positive integer EE, ESparseESparse means maximum degree at most G/E|G|/E, while WeaklyESparseWeaklyESparse is the corresponding edge-density condition with its denominator cleared.

    Lean source view on GitHub

    1import Lax54.GraphDefinitions
    2import Mathlib.Combinatorics.SimpleGraph.Density
    3import Mathlib.Combinatorics.SimpleGraph.Hasse
    4
    5/-!
    6---
    7title: Finite graph notions for the five-vertex path theorem
    8type: definition
    9---
    10This module defines the five-vertex path P5P_5, its complement (the house),
    11and the notions of sparsity, restrictedness, and blockades used throughout
    12the formalization. For a positive integer EE, `ESparse` means maximum degree
    13at most G/E|G|/E, while `WeaklyESparse` is the corresponding edge-density
    14condition with its denominator cleared.
    15-/
    16
    17open Finset
    18open scoped SimpleGraph
    19
    20namespace Lax57.GraphDefinitions
    21
    22universe u
    23
    24/-- The path on five vertices. -/
    25abbrev P5 : SimpleGraph (Fin 5) := SimpleGraph.pathGraph 5
    26
    27/-- The house graph, namely the complement of the five-vertex path. -/
    28abbrev House : SimpleGraph (Fin 5) := P5
    29
    30/-- A graph has no induced copy of the five-vertex path. -/
    31def IsP5Free {V : Type u} (G : SimpleGraph V) : Prop :=
    32 ¬ P5 ⊴ G
    33
    34/-- A graph has no induced copy of the house. -/
    35def IsHouseFree {V : Type u} (G : SimpleGraph V) : Prop :=
    36 ¬ House ⊴ G
    37
    38/-- The largest cardinality of a clique or stable set. -/
    39noncomputable abbrev homogeneousNumber {V : Type u} (G : SimpleGraph V) : ℕ :=
    40 Lax54.GraphDefinitions.homogeneousNumber G
    41
    42/-- The product of the clique and independence numbers. -/
    43noncomputable abbrev kappa {V : Type u} (G : SimpleGraph V) : ℕ :=
    44 Lax54.GraphDefinitions.kappa G
    45
    46/-- `q`-criticality for the product `ω(G)α(G)`. -/
    47abbrev IsQCritical {V : Type u} [Fintype V] (q : ℕ) (G : SimpleGraph V) : Prop :=
    48 Lax54.GraphDefinitions.IsQCritical q G
    49
    50/-- The neighbors of `v` lying in a prescribed finite set. -/
    51def neighborsIn {V : Type u} [DecidableEq V] (G : SimpleGraph V)
    52 [DecidableRel G.Adj] (A : Finset V) (v : V) : Finset V :=
    53 A.filter fun x ↦ G.Adj v x
    54
    55/-- `B` is `1/E`-sparse to `A`, with the denominator cleared. -/
    56def ESparseTo {V : Type u} [DecidableEq V] (G : SimpleGraph V)
    57 [DecidableRel G.Adj] (E : ℕ) (B A : Finset V) : Prop :=
    58 ∀ b ∈ B, E * (neighborsIn G A b).card ≤ A.card
    59
    60/-- The pair `(A,B)` has edge density at most `1/E`. -/
    61def WeaklyESparse {V : Type u} [DecidableEq V] (G : SimpleGraph V)
    62 [DecidableRel G.Adj] (E : ℕ) (A B : Finset V) : Prop :=
    63 E * (G.interedges A B).card ≤ A.card * B.card
    64
    65/-- The graph induced by `A` has maximum degree at most `|A|/E`. -/
    66def ESparse {V : Type u} [DecidableEq V] (G : SimpleGraph V)
    67 [DecidableRel G.Adj] (E : ℕ) (A : Finset V) : Prop :=
    68 ∀ v : {x : V // x ∈ A}, E * (G.induce (A : Set V)).degree v ≤ A.card
    69
    70/-- One of the two complementary graphs induced by `A` is `1/E`-sparse. -/
    71def ERestricted {V : Type u} [DecidableEq V] (G : SimpleGraph V)
    72 [DecidableRel G.Adj] (E : ℕ) (A : Finset V) : Prop :=
    73 ESparse G E A ∨ ESparse Gᶜ E A
    74
    75/-- A sequence of pairwise disjoint vertex blocks. -/
    76structure Blockade {V : Type u} [DecidableEq V] (k : ℕ) where
    77 block : Fin k → Finset V
    78 disjoint : ∀ {i j : Fin k}, i ≠ j → Disjoint (block i) (block j)
    79
    80/-- Every two different blocks are complete to one another. -/
    81def Blockade.IsComplete {V : Type u} [DecidableEq V] {k : ℕ}
    82 (G : SimpleGraph V) (B : Blockade (V := V) k) : Prop :=
    83 ∀ {i j : Fin k}, i ≠ j →
    84 ∀ x ∈ B.block i, ∀ y ∈ B.block j, G.Adj x y
    85
    86/-- Every two different blocks are anticomplete to one another. -/
    87def Blockade.IsAnticomplete {V : Type u} [DecidableEq V] {k : ℕ}
    88 (G : SimpleGraph V) (B : Blockade (V := V) k) : Prop :=
    89 ∀ {i j : Fin k}, i ≠ j →
    90 ∀ x ∈ B.block i, ∀ y ∈ B.block j, ¬ G.Adj x y
    91
    92/-- Each pair of blocks is either complete or anticomplete. -/
    93def Blockade.IsPure {V : Type u} [DecidableEq V] {k : ℕ}
    94 (G : SimpleGraph V) (B : Blockade (V := V) k) : Prop :=
    95 ∀ {i j : Fin k}, i ≠ j →
    96 ((∀ x ∈ B.block i, ∀ y ∈ B.block j, G.Adj x y) ∨
    97 (∀ x ∈ B.block i, ∀ y ∈ B.block j, ¬ G.Adj x y))
    98
    99/-- A complete or anticomplete blockade. -/
    100def Blockade.IsUniform {V : Type u} [DecidableEq V] {k : ℕ}
    101 (G : SimpleGraph V) (B : Blockade (V := V) k) : Prop :=
    102 B.IsComplete G ∨ B.IsAnticomplete G
    103
    104/-- The directed vertexwise sparsity condition of the paper. -/
    105def Blockade.IsESparse {V : Type u} [DecidableEq V] {k : ℕ}
    106 (G : SimpleGraph V) [DecidableRel G.Adj] (E : ℕ)
    107 (B : Blockade (V := V) k) : Prop :=
    108 ∀ {i j : Fin k}, i < j → ESparseTo G E (B.block j) (B.block i)
    109
    110/-- Each pair is complete or weakly `1/E`-sparse. -/
    111def Blockade.IsSemisparse {V : Type u} [DecidableEq V] {k : ℕ}
    112 (G : SimpleGraph V) [DecidableRel G.Adj] (E : ℕ)
    113 (B : Blockade (V := V) k) : Prop :=
    114 ∀ {i j : Fin k}, i ≠ j →
    115 ((∀ x ∈ B.block i, ∀ y ∈ B.block j, G.Adj x y) ∨
    116 WeaklyESparse G E (B.block i) (B.block j))
    117
    118/-- All blocks have size at least `|V(G)| / loss`. -/
    119def Blockade.HasWidthLoss {V : Type u} [Fintype V] [DecidableEq V]
    120 {k : ℕ} (B : Blockade (V := V) k) (loss : ℕ) : Prop :=
    121 ∀ i : Fin k, Fintype.card V ≤ loss * (B.block i).card
    122
    123/-- Every block lies in a prescribed ambient vertex set. -/
    124def Blockade.IsInside {V : Type u} [DecidableEq V] {k : ℕ}
    125 (B : Blockade (V := V) k) (S : Finset V) : Prop :=
    126 ∀ i : Fin k, B.block i ⊆ S
    127
    128/-- A uniform blockade with polynomial width and controlled length. -/
    129def HasUniformBlockade {V : Type u} [Fintype V] [DecidableEq V]
    130 (G : SimpleGraph V) (E a : ℕ) : Prop :=
    131 ∃ (k : ℕ) (B : Blockade (V := V) k),
    132 2 ≤ k ∧ k ≤ E ∧ B.IsUniform G ∧ B.HasWidthLoss (k ^ a)
    133
    134end Lax57.GraphDefinitions
    135

    Community review

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.

    0 comments

    Loading discussion…