Lax18.PartitionEnergy
Refinement and the index of a graph partition
concepts/Lax18/PartitionEnergy.lean · lax-18
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
A partition Q refines a partition P when every class of Q is contained in a class of P.
The index, also called the mean-square density or energy, of a partition is the weighted average of the squared densities between all ordered pairs of its classes. The weight of the pair (Vᵢ,Vⱼ) is |Vᵢ||Vⱼ|/|V|². Including diagonal pairs makes this an exact conditional mean-square and is convenient for the refinement argument.
Lean source view on GitHub
| 1 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 2 | import Lax18.RegularPartitions |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Refinement and the index of a graph partition |
| 7 | type: definition |
| 8 | --- |
| 9 | A partition Q refines a partition P when every class of Q is contained in a |
| 10 | class of P. |
| 11 | |
| 12 | The index, also called the mean-square density or energy, of a partition is |
| 13 | the weighted average of the squared densities between all ordered pairs of |
| 14 | its classes. The weight of the pair (Vᵢ,Vⱼ) is |Vᵢ||Vⱼ|/|V|². |
| 15 | Including diagonal pairs makes this an exact conditional mean-square and is |
| 16 | convenient for the refinement argument. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax18.PartitionEnergy |
| 20 | |
| 21 | open Lax18.EdgeDensity |
| 22 | open Lax18.FiniteGraphPartitions |
| 23 | open scoped BigOperators |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {V : Type u} [Fintype V] [DecidableEq V] |
| 28 | |
| 29 | /-- `Q.Refines P` means that every class of `Q` lies in a class of `P`. -/ |
| 30 | def Refines (Q P : VertexPartition V) : Prop := |
| 31 | ∀ j : Fin Q.partCount, |
| 32 | ∃ i : Fin P.partCount, Q.part j ⊆ P.part i |
| 33 | |
| 34 | /-- The normalized weight of the ordered pair of classes `(i,j)`. -/ |
| 35 | noncomputable def pairWeight (P : VertexPartition V) |
| 36 | (i j : Fin P.partCount) : ℝ := |
| 37 | ((P.partSize i : ℝ) * (P.partSize j : ℝ)) / |
| 38 | (Fintype.card V : ℝ) ^ 2 |
| 39 | |
| 40 | /-- The weighted mean-square density (or index) of a graph partition. -/ |
| 41 | noncomputable def partitionEnergy (G : SimpleGraph V) |
| 42 | (P : VertexPartition V) : ℝ := |
| 43 | ∑ i : Fin P.partCount, |
| 44 | ∑ j : Fin P.partCount, |
| 45 | pairWeight P i j * (density G (P.part i) (P.part j)) ^ 2 |
| 46 | |
| 47 | end Lax18.PartitionEnergy |
| 48 |
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