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

Improve documentation of discrete valuations #39612

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/sage/rings/valuation/augmented_valuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ def augmentation_chain(self):
r"""
Return a list with the chain of augmentations down to the underlying :mod:`Gauss valuation <sage.rings.valuation.gauss_valuation>`.

.. NOTE::

This method runs in time linear in the length of the chain (though
the printed representation might seem to indicate that it takes
quadratic time to construct the chain.)

EXAMPLES::

sage: R.<x> = QQ[]
Expand Down
25 changes: 24 additions & 1 deletion src/sage/rings/valuation/developing_valuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
[x + 1, 1]
"""
# ****************************************************************************
# Copyright (C) 2013-2017 Julian Rüth <[email protected]>
# Copyright (C) 2013-2025 Julian Rüth <[email protected]>
#
# Distributed under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2 of
Expand Down Expand Up @@ -102,6 +102,29 @@ def phi(self):
sage: v = GaussValuation(S) # needs sage.libs.ntl
sage: v.phi() # needs sage.libs.ntl
(1 + O(2^5))*x

Use
:meth:`~sage.rings.valuation.inductive_valuation.InductiveValuation.augmentation_chain`
to obtain the sequence of key polynomials of an
:class:`~sage.rings.valuation.inductive_valuation.InductiveValuation`::

sage: R.<x> = QQ[]
sage: v = GaussValuation(R, QQ.valuation(2))
sage: v = v.augmentation(x, 1)
sage: v = v.augmentation(x^2 + 2*x + 4, 3)

sage: v
[ Gauss valuation induced by 2-adic valuation, v(x) = 1, v(x^2 + 2*x + 4) = 3 ]

sage: [w.phi() for w in v.augmentation_chain()[:-1]]
[x^2 + 2*x + 4, x]

A similar approach can be used to obtain the key polynomials and their
corresponding valuations::

sage: [(w.phi(), w.mu()) for w in v.augmentation_chain()[:-1]]
[(x^2 + 2*x + 4, 3), (x, 1)]

"""
return self._phi

Expand Down
Loading