Skip to content

Commit ae6f43f

Browse files
authored
TropicalGeometry: Add some forgotten suggestions for docs (#4761)
Co-authored-by: Benjamin Lorenz
1 parent 1fe2f79 commit ae6f43f

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

docs/src/TropicalGeometry/variety.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ is_pure(TropV::TropicalVariety)
3737
is_simplicial(TropV::TropicalVariety)
3838
rays(TropV::TropicalVariety)
3939
rays_modulo_lineality(TropV::TropicalVariety)
40+
tropical_prevariety
4041
vertices_and_rays(TropV::TropicalVariety)
4142
vertices(TropV::TropicalVariety)
4243
visualize(TropV::TropicalVariety)

src/TropicalGeometry/hypersurface.jl

+12-11
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,20 @@ end
263263
#
264264

265265
@doc raw"""
266-
tropical_prevariety(F::Vector{MPolyRingElem},nu::TropicalSemiringMap)
266+
tropical_prevariety(F::Vector{MPolyRingElem},nu::TropicalSemiringMap)
267267
268-
Return the tropical prevariety generated by intersecting tropical hypersurfaces corresponding to elements of `F`.
268+
Return the tropical prevariety generated by intersecting tropical hypersurfaces
269+
corresponding to elements of `F`.
269270
270-
If `F` is a finite collection of polynomials with coefficients from a given field, return the tropical prevariety obtained by tropicalizing elements of `F` with respect to a given tropicalization map `nu`.
271+
If `F` is a finite collection of polynomials with coefficients from a given
272+
field, return the tropical prevariety obtained by tropicalizing elements of `F`
273+
with respect to a given tropicalization map `nu`.
271274
272275
If no `nu` is given, default to trivial valuation with `min` convention.
273276
274-
If `F` is a collection of tropical polynomials, the function computes and intersects the associated hypersurfaces.
277+
If `F` is a collection of tropical polynomials, the function computes and
278+
intersects the associated hypersurfaces.
279+
275280
# Example
276281
We compute the Dressian $\text{Dr}(2,5)$ below.
277282
```jldoctest
@@ -283,8 +288,7 @@ Ideal generated by
283288
x[[1, 3]]*x[[4, 5]] - x[[1, 4]]*x[[3, 5]] + x[[1, 5]]*x[[3, 4]]
284289
x[[2, 3]]*x[[4, 5]] - x[[2, 4]]*x[[3, 5]] + x[[2, 5]]*x[[3, 4]]
285290
286-
#Compute Dressian without specified tropicalization map.
287-
julia> Dr25 = tropical_prevariety(gens(Gr25))
291+
julia> Dr25 = tropical_prevariety(gens(Gr25)) #Compute Dressian without specified tropicalization map.
288292
Polyhedral complex in ambient dimension 10
289293
290294
julia> rays_modulo_lineality(Dr25)[1]
@@ -300,19 +304,16 @@ julia> rays_modulo_lineality(Dr25)[1]
300304
[-1, -1, 3, -1, 1, -1, 1, -1, 1, -1]
301305
[-1, -1, 1, 1, 3, -1, -1, -1, -1, 1]
302306
303-
#Compute with respect to max convention
304-
julia> nu = tropical_semiring_map(QQ,max)
307+
julia> nu = tropical_semiring_map(QQ,max) #Compute with respect to max convention
305308
Map into Max tropical semiring encoding the trivial valuation on Rational field
306309
307310
julia> Dr25max = tropical_prevariety(gens(Gr25),nu)
308311
Polyhedral complex in ambient dimension 10
309312
310-
#Give input as tropical polynomials
311-
Dr25 = tropical_prevariety(tropical_polynomial.([f for f in gens(Gr25)]))
313+
julia> Dr25 = tropical_prevariety(tropical_polynomial.([f for f in gens(Gr25)])) #Give input as tropical polynomials
312314
Polyhedral complex in ambient dimension 10
313315
```
314316
"""
315-
#Input array of tropical polynomials
316317
function tropical_prevariety(F::Vector{<:AbstractAlgebra.Generic.MPoly{TropicalSemiringElem{minmax}}}) where {minmax<:Union{typeof(min),typeof(max)}}
317318
length(F) > 0 || error("Empty array.")
318319
HTF = tropical_hypersurface.(F)

0 commit comments

Comments
 (0)