Path weights in a Quiver #
This file defines the weight of a path in a quiver. The weight of a path is the product of the weights of its edges, where weights are taken from a monoid.
Main definitions #
Quiver.Path.weight
: The weight of a path, defined as the multiplicative product of the weights of its constituent edges.Quiver.Path.weightOfEPs
: A convenience version ofweight
where the weight of an edge is determined by a function of its source and target vertices.
Main results #
Quiver.Path.weight_comp
: The weight of a composition of paths is the product of their weights.Quiver.Path.weight_pos
: If all edge weights are positive, the path weight is positive.Quiver.Path.weightOfEPs_nonneg
: If all edge weights are non-negative, so is the path weight.
theorem
Quiver.Path.weightOfEPs_nil
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[Monoid R]
(w : V → V → R)
(a : V)
:
theorem
Quiver.Path.addWeightOfEPs_nil
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[AddMonoid R]
(w : V → V → R)
(a : V)
:
theorem
Quiver.Path.weight_pos
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[Semiring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{w : {i j : V} → (i ⟶ j) → R}
(hw : ∀ {i j : V} (e : i ⟶ j), 0 < w e)
{i j : V}
(p : Path i j)
:
If all edge weights are positive, then the weight of any path is positive.
theorem
Quiver.Path.weight_nonneg
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[Semiring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{w : {i j : V} → (i ⟶ j) → R}
(hw : ∀ {i j : V} (e : i ⟶ j), 0 ≤ w e)
{i j : V}
(p : Path i j)
:
If all edge weights are non-negative, then the weight of any path is non-negative.
theorem
Quiver.Path.weightOfEPs_pos
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[Semiring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{w : V → V → R}
(hw : ∀ (i j : V), 0 < w i j)
{i j : V}
(p : Path i j)
:
If all edge weights (given by a function on vertices) are positive, so is the path weight.
theorem
Quiver.Path.weightOfEPs_nonneg
{V : Type u_1}
[Quiver V]
{R : Type u_2}
[Semiring R]
[LinearOrder R]
[IsStrictOrderedRing R]
{w : V → V → R}
(hw : ∀ (i j : V), 0 ≤ w i j)
{i j : V}
(p : Path i j)
:
If all edge weights (given by a function on vertices) are non-negative, so is the path weight.