Documentation

CslibFrontier.Foundations.Combinatorics.WeightedCut.RealCut

Real-valued capacities for weighted cuts #

This module extends the minimum cut theory to real-valued capacities (and more generally, any linearly ordered field K).

The cut weight Cslib.WeightedCut.cutWeight and its submodularity and posimodularity (cutWeight_union_add_cutWeight_inter_le_of_nonneg, cutWeight_sdiff_add_cutWeight_sdiff_le_of_symm) are shared with the natural-number theory. This module adds the minimum s–t cut weight over a linearly ordered field, where the natural-number minCutBetween (an sInf over ℕ) does not apply.

Main definitions #

Main results #

def Cslib.WeightedCut.minCutBetweenSet {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) (s t : V) :

The weights of the vertex sets containing s and missing t.

theorem Cslib.WeightedCut.minCutBetweenSet_nonempty {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) {s t : V} (hst : s ≠ t) :
noncomputable def Cslib.WeightedCut.minRealCutBetween {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) (s t : V) :
K

The minimum s–t cut weight λ(s, t) of a weighted multigraph W: the least weight of a vertex set containing s and missing t, and 0 when s = t.

theorem Cslib.WeightedCut.exists_cutWeight_eq_minRealCutBetween {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) {s t : V} (hst : s ≠ t) :
∃ (X : Finset V), s ∈ X ∧ t ∉ X ∧ cutWeight W X = minRealCutBetween W s t
theorem Cslib.WeightedCut.minRealCutBetween_le_cutWeight {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) {s t : V} {X : Finset V} (hs : s ∈ X) (ht : t ∉ X) :
@[simp]
theorem Cslib.WeightedCut.minRealCutBetween_self {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) (s : V) :
theorem Cslib.WeightedCut.le_minRealCutBetween_iff {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) {s t : V} (hst : s ≠ t) (m : K) :
m ≤ minRealCutBetween W s t ↔ ∀ (X : Finset V), s ∈ X → t ∉ X → m ≤ cutWeight W X
theorem Cslib.WeightedCut.minRealCutBetween_comm {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] {W : V → V → K} (hW : ∀ (u v : V), W u v = W v u) (s t : V) :
theorem Cslib.WeightedCut.min_le_minRealCutBetween {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] (W : V → V → K) {u w : V} (huw : u ≠ w) (v : V) :