Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
bb183f9
create blank class for nonsymbolic hypergeometric functions
Oct 24, 2025
b07972a
first implementation (without documentation)
Oct 24, 2025
139ddce
p-curvature and Dwork relations
Oct 27, 2025
fd65158
Documentation for scalar
FloFuer Oct 27, 2025
9c60b11
framework Parent/Element
Oct 27, 2025
1d5ba94
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Oct 27, 2025
abac8ee
fix indentation
Oct 27, 2025
11d5fbf
Added documentation, fixed derivative of hypergeometric functions
FloFuer Oct 27, 2025
067e045
coercion to SR
Oct 27, 2025
93a098d
latex
Oct 28, 2025
af4d453
annihilating polynomial
Oct 28, 2025
08b6e3b
Documentationx
FloFuer Oct 29, 2025
c892e02
faster algorithm for computing kernel
Oct 29, 2025
72741d8
normalize annihilating polynomial
Oct 29, 2025
f89ac63
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Oct 29, 2025
f292abb
tutorial coming soon
Oct 29, 2025
ec446c6
Tutorial here
FloFuer Oct 29, 2025
200666d
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Oct 29, 2025
f5b81b2
conjectural (and faster) version of is_defined in positive characteri…
Oct 29, 2025
d12d939
good reduction primes
Oct 29, 2025
1fd6112
monodromy + lucas
Oct 29, 2025
e767699
try to fix failing doctests
Oct 29, 2025
2f430dd
easy fixes
Oct 29, 2025
5e1a7ed
missing parenthesis
Oct 29, 2025
77d9a94
hadamard product
Oct 30, 2025
b5b3733
use Qp instead of QpFP
Oct 30, 2025
4fba752
Merge branch 'develop' into hypergeometric_algebraic
Oct 30, 2025
4604a2b
Merge branch 'primes_congruences' into hypergeometric_algebraic
Nov 1, 2025
360cb7d
use Primes
Nov 1, 2025
55cb54e
documentation + small fixes/improvements
Nov 1, 2025
be331b0
Merge branch 'primes_congruences' into hypergeometric_algebraic
Nov 1, 2025
3c812a5
fix typos in documentation
Nov 1, 2025
1ef532a
Merge branch 'primes_congruences' into hypergeometric_algebraic
Nov 1, 2025
3f35274
Merge branch 'primes_congruences' into hypergeometric_algebraic
Nov 2, 2025
b4bb605
add a check in the kernel method
Nov 2, 2025
dce44fd
Merge branch 'primes_congruences' into hypergeometric_algebraic
Nov 4, 2025
b5058c1
reimplement dwork_relation (should also work for small p, now)
Nov 5, 2025
47c5e72
(Hopefully) fixed is_defined_conjectural
FloFuer Nov 5, 2025
722a75c
Implemented is_almost_defined()
FloFuer Nov 5, 2025
51778ce
use is_defined_conjectural
Nov 5, 2025
5edbe62
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Nov 5, 2025
9734194
implement valuation + code refactorisation
Nov 5, 2025
03260c8
small fixes
Nov 6, 2025
ef372ca
Documentation
FloFuer Nov 6, 2025
44ef38f
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Nov 6, 2025
48b9ebb
documentation
FloFuer Nov 7, 2025
489adc9
Alsmost complete documentation for class Parameters
FloFuer Nov 7, 2025
7fd40de
small edits in the documentation
Nov 9, 2025
102705a
some features we may want to include
Nov 9, 2025
03a6b5e
documentation, fixed formal difference
FloFuer Nov 10, 2025
dee6c7a
small reformatting
Nov 11, 2025
d8b9c68
fix doctest
Nov 11, 2025
a614bf7
doc
FloFuer Nov 11, 2025
7b4593e
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Nov 11, 2025
2e888c8
Merge branch 'develop' into hypergeometric_algebraic
Nov 12, 2025
6b83a76
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Nov 12, 2025
25ff854
documentation, issue with valuation
FloFuer Nov 12, 2025
d9af29a
Potential fix for valuation
FloFuer Nov 14, 2025
9a2c0ea
fix and simplify doctests
Nov 14, 2025
956a213
fix good_reduction_primes
FloFuer Nov 15, 2025
00548b2
new algorithm for computing valuation
Nov 15, 2025
d580938
indentation
Nov 15, 2025
0647027
small changes
FloFuer Nov 15, 2025
2e3fbee
add comments
Nov 16, 2025
d979491
fix halting criterion
Nov 16, 2025
e8215e3
split in two files
Nov 16, 2025
27d4d28
include in the documentation
Nov 16, 2025
7a66069
small rewriting
Nov 16, 2025
0517f0b
fix again halting criterion
Nov 16, 2025
714f0e1
raise an error if p is not prime
Nov 16, 2025
e3e9fc9
more bugs fixed
Nov 17, 2025
5426dcb
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Nov 17, 2025
a4afba8
Tate series and evaluation
Nov 17, 2025
04c2571
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Nov 17, 2025
0a878d6
doc
FloFuer Nov 18, 2025
1f53e21
mean weight and transitive closure
Nov 19, 2025
e4df039
extremum cycle mean, documentation
Nov 19, 2025
f57b1c0
Merge branch 'tropical_matrices' into hypergeometric_algebraic
Nov 19, 2025
ffe091b
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Nov 19, 2025
a98d0bb
doc
FloFuer Nov 19, 2025
482cd9f
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
FloFuer Nov 19, 2025
c7bf5a6
use tropical matrices
Nov 19, 2025
c28ee4a
identity matrix
Nov 19, 2025
e8b63db
Merge branch 'tropical_matrices' into hypergeometric_algebraic
Nov 19, 2025
3f17a16
use the maximal log_radius for evaluation
Nov 19, 2025
b493da6
Merge branch 'hypergeometric_algebraic' of github.com:xcaruso/sage in…
Nov 19, 2025
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
1 change: 1 addition & 0 deletions src/doc/en/reference/functions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Built-in Functions
sage/functions/other
sage/functions/special
sage/functions/hypergeometric
sage/functions/hypergeometric_algebraic
sage/functions/jacobi
sage/functions/airy
sage/functions/bessel
Expand Down
15 changes: 15 additions & 0 deletions src/doc/en/reference/references/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,9 @@ REFERENCES:
An Algorithmic Approach, Algorithms and Computation in Mathematics,
Volume 20, Springer (2007)

.. [But2010] Peter Butkovič, *Max-linear systems. Theory and algorithms.*
Springer Monographs in Mathematics. London: Springer. xvii, 272 p. (2010).

.. [Buell89] Duncan A. Buell.
*Binary Quadratic Forms: Classical Theory and Modern Computations.*
Springer, 1989.
Expand Down Expand Up @@ -1650,6 +1653,10 @@ REFERENCES:
IV. The quotient groups of the lower central series, Ann. of Math.
68 (1958) 81--95.

.. [CFV2025] Xavier Caruso, Florian Fürnsinn, Daniel Vargas-Montoya,
*Galois groups of reductions modulo p of D-finite series*,
:arxiv:`2504.09429`, 2025.

.. [CFZ2000] \J. Cassaigne, S. Ferenczi, L.Q. Zamboni, *Imbalances in
Arnoux-Rauzy sequences*, Ann. Inst. Fourier (Grenoble)
50 (2000) 1265--1276.
Expand Down Expand Up @@ -1724,6 +1731,9 @@ REFERENCES:
.. [ChenDB] Eric Chen, Online database of two-weight codes,
http://moodle.tec.hkr.se/~chen/research/2-weight-codes/search.php

.. [Chr1986] Gilles Christol, *Fonctions hypergéométriques bornées*.
Groupe de travail d’analyse ultramétrique 14 (1986-87), exp. no 8, p. 1-16

.. [CHK2001] Keith D. Cooper, Timothy J. Harvey and Ken Kennedy. *A
Simple, Fast Dominance Algorithm*, Software practice and
Experience, 4:1-10 (2001).
Expand Down Expand Up @@ -2881,6 +2891,11 @@ REFERENCES:
toric varieties defined by atomic lattices*. Inventiones
Mathematicae. **155** (2004), no. 3, pp. 515-536.

.. [FY2024] Florian Fürnsinn, Sergey Yurkevich.
*Algebraicity of hypergeometric functions with arbitrary parameters*,
Bulletin of the London Mathematical Society. **56** (2024),
pp. 2824-2846. :doi:`10.1112/blms.13103`, :arxiv:`2308.12855` (2023).

.. [FZ2001] \S. Fomin and A. Zelevinsky. *Cluster algebras I. Foundations*,
\J. Amer. Math. Soc. **15** (2002), no. 2, pp. 497-529.
:arxiv:`math/0104151` (2001).
Expand Down
4 changes: 4 additions & 0 deletions src/doc/en/reference/semirings/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ Standard Semirings

sage/rings/semirings/non_negative_integer_semiring
sage/rings/semirings/tropical_semiring
sage/rings/semirings/tropical_polynomial
sage/rings/semirings/tropical_mpolynomial
sage/rings/semirings/tropical_matrix
sage/rings/semirings/tropical_variety

.. include:: ../footer.txt
21 changes: 17 additions & 4 deletions src/sage/functions/hypergeometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
This module implements manipulation of infinite hypergeometric series
represented in standard parametric form (as `\,_pF_q` functions).

For a more algebraic treatment of hypergeometric functions
(including reduction modulo primes and `p`-adic properties),
we refer to :mod:`sage.functions.hypergeometric_algebraic`.

AUTHORS:

- Fredrik Johansson (2010): initial version
Expand Down Expand Up @@ -301,10 +305,19 @@ def __call__(self, a, b, z, **kwargs):
sage: hypergeometric([2, 3, 4], [4, 1], 1)
hypergeometric((2, 3, 4), (4, 1), 1)
"""
return BuiltinFunction.__call__(self,
SR._force_pyobject(a),
SR._force_pyobject(b),
z, **kwargs)
from sage.rings.polynomial.polynomial_element import Polynomial
from sage.rings.power_series_ring_element import PowerSeries
if isinstance(z, (Polynomial, PowerSeries)):
if not z.is_gen():
raise NotImplementedError("the argument must be the generator of the polynomial ring")
S = z.parent()
from sage.functions.hypergeometric_algebraic import HypergeometricFunctions
return HypergeometricFunctions(S.base_ring(), S.variable_name())(a, b)
else:
return BuiltinFunction.__call__(self,
SR._force_pyobject(a),
SR._force_pyobject(b),
z, **kwargs)

def _print_latex_(self, a, b, z):
r"""
Expand Down
Loading
Loading