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.
The weight of a path is the product of the weights of its edges.
Equations
- Quiver.Path.weight w Quiver.Path.nil = 1
- Quiver.Path.weight w (p.cons e) = Quiver.Path.weight (fun {i j : V} => w) p * w e
Instances For
The additive weight of a path is the sum of the weights of its edges.
Equations
- Quiver.Path.addWeight w Quiver.Path.nil = 0
- Quiver.Path.addWeight w (p.cons e) = Quiver.Path.addWeight (fun {i j : V} => w) p + w e
Instances For
The weight of a path, where the weight of an edge is defined by a function on its endpoints.
Equations
- Quiver.Path.weightOfEPs w = Quiver.Path.weight fun {i j : V} (x : i ⟶ j) => w i j
Instances For
The additive weight of a path, where the weight of an edge is defined by a function on its endpoints.
Equations
- Quiver.Path.addWeightOfEPs w = Quiver.Path.addWeight fun {i j : V} (x : i ⟶ j) => w i j
Instances For
If all edge weights are positive, then the weight of any path is positive.
If all edge weights are non-negative, then the weight of any path is non-negative.
If all edge weights (given by a function on vertices) are positive, so is the path weight.
If all edge weights (given by a function on vertices) are non-negative, so is the path weight.