definition
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
For a vertex partition with parts, an unordered pair of distinct parts is irregular if it is not an -regular pair. A partition is -regular when the number of irregular unordered pairs is at most .
An equitable -regular partition is an -regular partition whose part sizes differ by at most one.
Lean source view on GitHub
| 1 | import Lax18.FiniteGraphPartitions |
| 2 | import Lax18.RegularPairs |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Regular partitions |
| 7 | type: definition |
| 8 | --- |
| 9 | For a vertex partition with \(k\) parts, an unordered pair of distinct parts is |
| 10 | irregular if it is not an \(\varepsilon\)-regular pair. A partition is |
| 11 | \(\varepsilon\)-regular when the number of irregular unordered pairs is at most |
| 12 | \(\varepsilon k^2\). |
| 13 | |
| 14 | An equitable \(\varepsilon\)-regular partition is an \(\varepsilon\)-regular |
| 15 | partition whose part sizes differ by at most one. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax18.RegularPartitions |
| 19 | |
| 20 | open Lax18.FiniteGraphPartitions |
| 21 | open Lax18.RegularPairs |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {V : Type u} [Fintype V] [DecidableEq V] |
| 26 | |
| 27 | /-- The unordered irregular pairs of parts, represented by index pairs |
| 28 | `i < j`. -/ |
| 29 | noncomputable def irregularPairIndices |
| 30 | (G : SimpleGraph V) (ε : ℝ) |
| 31 | (P : VertexPartition V) : Finset (Fin P.partCount × Fin P.partCount) := by |
| 32 | classical |
| 33 | exact |
| 34 | (Finset.univ.product Finset.univ).filter |
| 35 | (fun p : Fin P.partCount × Fin P.partCount => |
| 36 | p.1 < p.2 ∧ |
| 37 | ¬ IsRegularPair G ε (P.part p.1) (P.part p.2)) |
| 38 | |
| 39 | /-- The number of unordered irregular pairs of parts. -/ |
| 40 | noncomputable def irregularPairCount |
| 41 | (G : SimpleGraph V) (ε : ℝ) |
| 42 | (P : VertexPartition V) : ℕ := |
| 43 | (irregularPairIndices G ε P).card |
| 44 | |
| 45 | /-- A partition is `ε`-regular if it has at most `ε k^2` irregular unordered |
| 46 | pairs of distinct parts. -/ |
| 47 | def IsRegularPartition (G : SimpleGraph V) (ε : ℝ) |
| 48 | (P : VertexPartition V) : Prop := |
| 49 | (irregularPairCount G ε P : ℝ) ≤ ε * (P.partCount : ℝ) ^ 2 |
| 50 | |
| 51 | /-- A clean equitable `ε`-regular partition. -/ |
| 52 | def IsEquitableRegularPartition |
| 53 | (G : SimpleGraph V) (ε : ℝ) (P : VertexPartition V) : Prop := |
| 54 | P.Equitable ∧ IsRegularPartition G ε P |
| 55 | |
| 56 | end Lax18.RegularPartitions |
| 57 |
Used by
From Mathlib
none
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