Tropical algebraic structures #
This file defines algebraic structures of the min/max-tropical numbers, up to the tropical semiring.
All declarations about MinTropical are translated to MaxTropical using to_dual.
Some basic lemmas about conversion from the base type R to MinTropical R/MaxTropical R are
provided, as well as the expected implementations of tropical addition and tropical multiplication.
Main declarations #
MinTropical R: The type synonym of the tropical interpretation ofR. If[LinearOrder R], then addition onRis viamin.Semiring (MinTropical R): ALinearOrderedAddCommMonoidWithTop Rinduces aSemiring (MinTropical R). If one solely has[LinearOrderedAddCommMonoid R], then the "tropicalization ofR" would beMinTropical (WithTop R).
Implementation notes #
Inspiration was drawn from the implementation of Additive/Multiplicative/Opposite,
where a type synonym is created with some barebones API, and quickly made irreducible.
Algebraic structures are provided with as few typeclass assumptions as possible, even though
most references rely on Semiring (MinTropical R) for building up the whole theory.
References followed #
- https://arxiv.org/pdf/math/0408099.pdf
- https://www.mathenjeans.fr/sites/default/files/sujets/tropical_geometry_-_casagrande.pdf
The min-tropicalization of a type R.
Instances For
The max-tropicalization of a type R.
Instances For
Reinterpret x : R as an element of MinTropical R.
See MinTropical.tropEquiv for the equivalence.
Instances For
Reinterpret x : R as an element of MaxTropical R.
See MaxTropical.tropEquiv for the equivalence.
Instances For
Reinterpret x : MinTropical R as an element of R.
See MinTropical.tropEquiv for the equivalence.
Instances For
Reinterpret x : MaxTropical R as an element of R.
See MaxTropical.tropEquiv for the equivalence.
Instances For
Reinterpret x : R as an element of MinTropical R.
See MinTropical.tropOrderIso for the order-preserving equivalence.
Instances For
Reinterpret x : R as an element of MaxTropical R.
See MaxTropical.tropOrderIso for the order-preserving equivalence.
Instances For
Recursing on an x' : MinTropical R is the same as recursing on an x : R reinterpreted
as a term of MinTropical R via trop x.
Instances For
Recursing on an x' : MaxTropical R is the same as recursing on an x : R reinterpreted
as a term of MaxTropical R via trop x.
Instances For
Reinterpret x : R as an element of MinTropical R, preserving the order.
Instances For
Reinterpret x : R as an element of MaxTropical R, preserving the order.
Instances For
Tropical addition is the minimum of two underlying elements of R.
Tropical addition is the maximum of two underlying elements of R.
Tropical multiplication is the addition in the underlying R.
Tropical multiplication is the addition in the underlying R.
The ring structure on MinTropical R is the same as on MaxTropical Rᵒᵈ.
Instances For
The ring structure on MaxTropical R is the same as on MinTropical Rᵒᵈ.