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 #
Cslib.WeightedCut.minRealCutBetween: the minimums–tcut weight,0whens = t.
Main results #
Cslib.WeightedCut.exists_cutWeight_eq_minRealCutBetween: cut value attainment.Cslib.WeightedCut.minRealCutBetween_comm: symmetry of the minimum cut for symmetric weights.Cslib.WeightedCut.min_le_minRealCutBetween: the triangle inequality.
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) :
Finset K
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) :
(minCutBetweenSet W s t).Nonempty
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) :
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) :
minRealCutBetween W s s = 0
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) :
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) :