Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TropicalGeometry: new positive tropicalizations #4447

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

YueRen
Copy link
Member

@YueRen YueRen commented Jan 10, 2025

This is the final pull request from the Leipzig workshop, adding the capability of computing positive tropicalizations for linear and binomial ideals (required for example for Telek-Rose).

It is a draft for now, as it is contingent on #4061 being merged. (I don't think it makes a lot of sense if tropical_variety returns a list of TropicalVariety while positive_tropical_variety returns a single TropicalVariety)

@YueRen YueRen force-pushed the yr/positiveTropicalizations branch 2 times, most recently from 2b70c6a to f71e842 Compare January 17, 2025 15:05
@YueRen YueRen force-pushed the yr/positiveTropicalizations branch from f71e842 to a5778ed Compare January 24, 2025 08:48
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.55%. Comparing base (3e86180) to head (a5778ed).

Files with missing lines Patch % Lines
src/TropicalGeometry/positive_variety.jl 84.21% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4447      +/-   ##
==========================================
- Coverage   84.55%   84.55%   -0.01%     
==========================================
  Files         672      673       +1     
  Lines       88880    88899      +19     
==========================================
+ Hits        75152    75167      +15     
- Misses      13728    13732       +4     
Files with missing lines Coverage Δ
src/TropicalGeometry/positive_variety.jl 84.21% <84.21%> (ø)

... and 3 files with indirect coverage changes

@YueRen YueRen marked this pull request as ready for review January 24, 2025 12:04
@YueRen
Copy link
Member Author

YueRen commented Jan 24, 2025

@MateTelek Would you be able to review this pull request for me?

@doc raw"""
positive_tropical_variety(I::MPolyIdeal,nu::TropicalSemiringMap)

Return the positive tropical variety of `I` as a `PolyhedralComplex` as per the definition in [SW05](@cite). Assumes that `I` is generated either by binomials or by linear polynomials and that `I` is defined either over
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Return the positive tropical variety of `I` as a `PolyhedralComplex` as per the definition in [SW05](@cite). Assumes that `I` is generated either by binomials or by linear polynomials and that `I` is defined either over
Return the positive tropical variety of `I` as a `PolyhedralComplex` as per the definition in [SW05](@cite).
Assumes that `I` is generated either by binomials or by linear polynomials and that `I` is defined either over

Break an overly long line. And good docstring style adds a paragraph break after the first sentence

Comment on lines +5 to +6
(a) the rational numbers and that `nu` encodes the trivial valuation,
(b) the rational function field over the rational numbers and that `nu` encodes the t-adic valuation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked by locally building the docs that this produces what you expect? From the first glance, I think that this may do weird linebreaks. Maybe one of the following is suitable for your case here?

Suggested change
(a) the rational numbers and that `nu` encodes the trivial valuation,
(b) the rational function field over the rational numbers and that `nu` encodes the t-adic valuation.
1. the rational numbers and that `nu` encodes the trivial valuation,
2. the rational function field over the rational numbers and that `nu` encodes the t-adic valuation.
Suggested change
(a) the rational numbers and that `nu` encodes the trivial valuation,
(b) the rational function field over the rational numbers and that `nu` encodes the t-adic valuation.
- the rational numbers and that `nu` encodes the trivial valuation,
- the rational function field over the rational numbers and that `nu` encodes the t-adic valuation.

```
"""
function positive_tropical_variety(I::MPolyIdeal,nu::TropicalSemiringMap)
if all(isequal(2),length.(gens(I)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if all(isequal(2),length.(gens(I)))
if all(is_binomial, gens(I))

@@ -2290,6 +2290,18 @@ @Article{SV-D-V87
zbmath = {4069055}
}

@Article{SW05,
author = {Speyer, David and Williams, Lauren},
title = {The {{Tropical Totally Positive Grassmannian}}},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title = {The {{Tropical Totally Positive Grassmannian}}},
title = {The Tropical Totally Positive Grassmannian},

our bibtex parser does not work well with braces inside of fields. It will keep the casing even without them (contrary to latex)

@lgoettgens
Copy link
Member

It is a draft for now, as it is contingent on #4061 being merged. (I don't think it makes a lot of sense if tropical_variety returns a list of TropicalVariety while positive_tropical_variety returns a single TropicalVariety)

Is this comment obsolete or how did you proceed? I am asking since #4061 is not merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants