-
Notifications
You must be signed in to change notification settings - Fork 133
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
base: master
Are you sure you want to change the base?
Conversation
2b70c6a
to
f71e842
Compare
f71e842
to
a5778ed
Compare
Codecov ReportAttention: Patch coverage is
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
|
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
(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. |
There was a problem hiding this comment.
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?
(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. |
(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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
Is this comment obsolete or how did you proceed? I am asking since #4061 is not merged. |
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 ofTropicalVariety
whilepositive_tropical_variety
returns a singleTropicalVariety
)