darmonpoints 3.2.0__tar.gz → 7.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/COPYING → darmonpoints-7.0.0/LICENSE +4 -4
  2. darmonpoints-7.0.0/MANIFEST.in +1 -0
  3. darmonpoints-7.0.0/PKG-INFO +223 -0
  4. darmonpoints-7.0.0/README.md +214 -0
  5. darmonpoints-7.0.0/darmonpoints/__init__.py +19 -0
  6. darmonpoints-7.0.0/darmonpoints/arithgroup.py +2884 -0
  7. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints/arithgroup_element.py +134 -74
  8. darmonpoints-7.0.0/darmonpoints/arithgroup_generic.py +791 -0
  9. darmonpoints-7.0.0/darmonpoints/arithgroup_nscartan.py +421 -0
  10. darmonpoints-7.0.0/darmonpoints/bianchi_lseries.py +434 -0
  11. darmonpoints-7.0.0/darmonpoints/cohomology_abstract.py +531 -0
  12. darmonpoints-7.0.0/darmonpoints/cohomology_arithmetic.py +1770 -0
  13. darmonpoints-7.0.0/darmonpoints/darmonpoints.py +627 -0
  14. darmonpoints-7.0.0/darmonpoints/darmonvonk.py +873 -0
  15. darmonpoints-7.0.0/darmonpoints/divisors.py +301 -0
  16. darmonpoints-7.0.0/darmonpoints/findcurve.py +358 -0
  17. darmonpoints-7.0.0/darmonpoints/homology.py +527 -0
  18. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints/homology_abstract.py +187 -115
  19. darmonpoints-7.0.0/darmonpoints/integrals.py +446 -0
  20. darmonpoints-7.0.0/darmonpoints/limits.py +531 -0
  21. darmonpoints-7.0.0/darmonpoints/meromorphic.py +234 -0
  22. darmonpoints-7.0.0/darmonpoints/mixed_extension.c +26233 -0
  23. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints/mixed_extension.pyx +123 -10
  24. darmonpoints-7.0.0/darmonpoints/my_p1list_nf.py +753 -0
  25. darmonpoints-7.0.0/darmonpoints/ocbianchi.py +998 -0
  26. darmonpoints-7.0.0/darmonpoints/ocmodule.py +792 -0
  27. darmonpoints-7.0.0/darmonpoints/padicperiods.py +1802 -0
  28. darmonpoints-7.0.0/darmonpoints/plectic.py +940 -0
  29. darmonpoints-7.0.0/darmonpoints/rationalfunctions.py +172 -0
  30. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints/representations.py +142 -98
  31. darmonpoints-7.0.0/darmonpoints/sarithgroup.py +1003 -0
  32. darmonpoints-7.0.0/darmonpoints/schottky.py +1167 -0
  33. darmonpoints-7.0.0/darmonpoints/sparse.c +9821 -0
  34. darmonpoints-7.0.0/darmonpoints/sparse.pyx +68 -0
  35. darmonpoints-7.0.0/darmonpoints/util.py +2369 -0
  36. darmonpoints-7.0.0/darmonpoints.egg-info/PKG-INFO +223 -0
  37. darmonpoints-7.0.0/darmonpoints.egg-info/SOURCES.txt +40 -0
  38. darmonpoints-7.0.0/pyproject.toml +17 -0
  39. darmonpoints-7.0.0/setup.py +7 -0
  40. darmonpoints-3.2.0/.gitignore +0 -14
  41. darmonpoints-3.2.0/.travis-deploy-doc.sh +0 -21
  42. darmonpoints-3.2.0/.travis-install.sh +0 -15
  43. darmonpoints-3.2.0/.travis-test.sh +0 -8
  44. darmonpoints-3.2.0/.travis.yml +0 -26
  45. darmonpoints-3.2.0/.travis_ci_gh_pages_deploy_key.enc +0 -0
  46. darmonpoints-3.2.0/LICENSE +0 -339
  47. darmonpoints-3.2.0/MANIFEST.in +0 -7
  48. darmonpoints-3.2.0/PKG-INFO +0 -125
  49. darmonpoints-3.2.0/README.rst +0 -109
  50. darmonpoints-3.2.0/VERSION +0 -1
  51. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/README +0 -62
  52. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/aux.m +0 -40
  53. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/bianchi.m +0 -42
  54. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/changelog +0 -23
  55. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/drawing/maple.m +0 -135
  56. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/example.m +0 -90
  57. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/fundamentaldomains/enumeration.m +0 -195
  58. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/fundamentaldomains/normalizedbasis.m +0 -788
  59. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/fundamentaldomains/presentation.m +0 -362
  60. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/fundamentaldomains/reduction.m +0 -130
  61. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/basics.m +0 -236
  62. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/exteriordomains.m +0 -520
  63. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/intervals.m +0 -128
  64. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/properties.m +0 -111
  65. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/random.m +0 -145
  66. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/geometry/volumes.m +0 -207
  67. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/kleinian.m +0 -273
  68. darmonpoints-3.2.0/darmonpoints/KleinianGroups-1.0/klngpspec +0 -26
  69. darmonpoints-3.2.0/darmonpoints/__init__.py +0 -9
  70. darmonpoints-3.2.0/darmonpoints/arithgroup.py +0 -1627
  71. darmonpoints-3.2.0/darmonpoints/arithgroup_nscartan.py +0 -362
  72. darmonpoints-3.2.0/darmonpoints/cohomology_abstract.py +0 -405
  73. darmonpoints-3.2.0/darmonpoints/cohomology_arithmetic.py +0 -826
  74. darmonpoints-3.2.0/darmonpoints/config.ini +0 -48
  75. darmonpoints-3.2.0/darmonpoints/darmonpoints.py +0 -364
  76. darmonpoints-3.2.0/darmonpoints/findcurve.py +0 -265
  77. darmonpoints-3.2.0/darmonpoints/homology.py +0 -625
  78. darmonpoints-3.2.0/darmonpoints/integrals.py +0 -373
  79. darmonpoints-3.2.0/darmonpoints/limits.py +0 -444
  80. darmonpoints-3.2.0/darmonpoints/ocbianchi.py +0 -401
  81. darmonpoints-3.2.0/darmonpoints/ocmodule.py +0 -412
  82. darmonpoints-3.2.0/darmonpoints/padicperiods.py +0 -1096
  83. darmonpoints-3.2.0/darmonpoints/sarithgroup.py +0 -654
  84. darmonpoints-3.2.0/darmonpoints/util.py +0 -1742
  85. darmonpoints-3.2.0/darmonpoints.egg-info/PKG-INFO +0 -125
  86. darmonpoints-3.2.0/darmonpoints.egg-info/SOURCES.txt +0 -66
  87. darmonpoints-3.2.0/darmonpoints.egg-info/requires.txt +0 -2
  88. darmonpoints-3.2.0/docs/Makefile +0 -177
  89. darmonpoints-3.2.0/docs/source/_static +0 -0
  90. darmonpoints-3.2.0/docs/source/arithmeticgroups.rst +0 -33
  91. darmonpoints-3.2.0/docs/source/cohomology.rst +0 -33
  92. darmonpoints-3.2.0/docs/source/conf.py +0 -352
  93. darmonpoints-3.2.0/docs/source/distributions.rst +0 -17
  94. darmonpoints-3.2.0/docs/source/index.rst +0 -72
  95. darmonpoints-3.2.0/docs/source/integration.rst +0 -17
  96. darmonpoints-3.2.0/docs/source/internals.rst +0 -17
  97. darmonpoints-3.2.0/makefile +0 -37
  98. darmonpoints-3.2.0/requirements.txt +0 -3
  99. darmonpoints-3.2.0/setup.py +0 -93
  100. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints.egg-info/dependency_links.txt +0 -0
  101. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/darmonpoints.egg-info/top_level.txt +0 -0
  102. {darmonpoints-3.2.0 → darmonpoints-7.0.0}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  GNU GENERAL PUBLIC LICENSE
2
2
  Version 3, 29 June 2007
3
3
 
4
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
5
  Everyone is permitted to copy and distribute verbatim copies
6
6
  of this license document, but changing it is not allowed.
7
7
 
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
645
645
  GNU General Public License for more details.
646
646
 
647
647
  You should have received a copy of the GNU General Public License
648
- along with this program. If not, see <http://www.gnu.org/licenses/>.
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
649
 
650
650
  Also add information on how to contact you by electronic and paper mail.
651
651
 
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
664
664
  You should also get your employer (if you work as a programmer) or school,
665
665
  if any, to sign a "copyright disclaimer" for the program, if necessary.
666
666
  For more information on this, and how to apply and follow the GNU GPL, see
667
- <http://www.gnu.org/licenses/>.
667
+ <https://www.gnu.org/licenses/>.
668
668
 
669
669
  The GNU General Public License does not permit incorporating your program
670
670
  into proprietary programs. If your program is a subroutine library, you
671
671
  may consider it more useful to permit linking proprietary applications with
672
672
  the library. If this is what you want to do, use the GNU Lesser General
673
673
  Public License instead of this License. But first, please read
674
- <http://www.gnu.org/philosophy/why-not-lgpl.html>.
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1 @@
1
+ include darmonpoints/*.pyx
@@ -0,0 +1,223 @@
1
+ Metadata-Version: 2.1
2
+ Name: darmonpoints
3
+ Version: 7.0.0
4
+ Summary: Compute non-archimedean Darmon points
5
+ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+
10
+ <p align="center">
11
+ <img alt="logo" src="https://github.com/mmasdeu/darmonpoints/raw/main/doc/static/logo.svg?sanitize=true">
12
+ </p>
13
+
14
+ # A package to compute Darmon points
15
+
16
+ ## (or just p-adically construct elliptic curves, or p-adic Darmon-Vonk points,...)
17
+
18
+ (for the full documentation, please see
19
+ <http://mmasdeu.github.io/darmonpoints/doc/html/>)
20
+
21
+
22
+ ![doc](https://github.com/mmasdeu/darmonpoints/actions/workflows/doc.yml/badge.svg)
23
+
24
+ ![test](https://github.com/mmasdeu/darmonpoints/actions/workflows/test.yml/badge.svg)
25
+
26
+ ![lint](https://github.com/mmasdeu/darmonpoints/actions/workflows/lint.yml/badge.svg)
27
+
28
+
29
+ ### What is this?
30
+
31
+ The **darmonpoints** package can compute many different types of what is
32
+ known as Darmon points. These are known as *Stark-Heegner* points in
33
+ some literature, and originated in
34
+ <a href="#Darmon" class="citation">[Darmon]</a>. Subsequent
35
+ generalizations were introduced by
36
+ <a href="#Greenberg" class="citation">[Greenberg]</a> and
37
+ <a href="#Trifkovic" class="citation">[Trifkovic]</a>. This has been
38
+ generalized by <a href="#GMS1" class="citation">[GMS1]</a> to elliptic
39
+ curves defined over number fields of arbitrary signature. Darmon points
40
+ are attached to triples <span class="title-ref">(F,E,K)</span>, where
41
+ <span class="title-ref">F</span> is a number field,
42
+ <span class="title-ref">E/F</span> is an elliptic curve defined over
43
+ <span class="title-ref">F</span>, and <span class="title-ref">K/F</span>
44
+ is a quadratic extension. These triples must satisfy certain conditions
45
+ for Darmon points to be attached to them. The article
46
+ <a href="#GMS1" class="citation">[GMS1]</a> contains an overview of all
47
+ of this. We include also a variation used in
48
+ <a href="#KP" class="citation">[KP]</a>.
49
+
50
+ The **darmonpoints** package can also compute equations for some
51
+ elliptic curves <span class="title-ref">E/F</span> defined over number
52
+ fields <span class="title-ref">F</span>, as long as certain conditions
53
+ are satisfied. Namely:
54
+
55
+ 1) <span class="title-ref">F</span> has narrow class number
56
+ <span class="title-ref">1</span>.
57
+ 2) if <span class="title-ref">N</span> is the conductor of the elliptic
58
+ curve, it must admit a factorization of the form
59
+ <span class="title-ref">N = PDM</span>, where:
60
+ 1) <span class="title-ref">P</span>,
61
+ <span class="title-ref">D</span> and
62
+ <span class="title-ref">M</span> are relative coprime.
63
+ 2) <span class="title-ref">P</span> is a prime ideal of
64
+ <span class="title-ref">F</span> of prime norm.
65
+ 3) <span class="title-ref">D</span> is the discriminant of a
66
+ quaternion algebra over <span class="title-ref">F</span> which
67
+ is split at only one infinite place.
68
+
69
+ Finally, we include the module *padicperiods*, which allows for the
70
+ computation of <span class="title-ref">p</span>-adic periods attached to
71
+ two-dimensional components of the cohomology of the same arithmetic
72
+ groups, and which has allowed us to find the corresponding abelian
73
+ surfaces in some cases (see <a href="#GM" class="citation">[GM]</a>).
74
+
75
+ The full documentation can be found at
76
+ <http://mmasdeu.github.io/darmonpoints/doc/html/>
77
+
78
+ ### Installation
79
+
80
+ Installation of the *darmonpoints* package has been greatly simplified,
81
+ thanks to Matthias Köppe "Sample Sage"
82
+ (<https://github.com/mkoeppe/sage_sample>). For most operations one
83
+ *does need* to have **Magma** (<https://magma.maths.usyd.edu.au/magma/>)
84
+ installed, although we do hope that in the future Sage will include the
85
+ required functionality.
86
+
87
+ We include for convenience the dependency Magma package *KleinianGroups*
88
+ by Aurel Page, the original of which can be found at
89
+ <http://www.normalesup.org/~page/Recherche/Logiciels/KleinianGroups/KleinianGroups-1.0.tar.gz>.
90
+
91
+ To install the package use the following command:
92
+
93
+ sage -pip install --user --upgrade darmonpoints
94
+
95
+ If you rather install the cutting-edge version from the github
96
+ repository (which is likely to be broken), then use the following
97
+ command:
98
+
99
+ sage -pip install --user --upgrade -v git+https://github.com/mmasdeu/darmonpoints.git
100
+
101
+ ### Basic usage
102
+
103
+ The files `darmonpoints.py`, `findcurve.py` and `padicperiods.py`
104
+ contain the high level routines from which show how to use the package,
105
+ although one can use parts of the package in other ways if one feels
106
+ adventurous. Here are some sample calculations that one can try:
107
+
108
+ sage: from darmonpoints.darmonpoints import darmon_point
109
+
110
+ 1) A classical Darmon (a.k.a. Stark-Heegner) point. The following will
111
+ perform a <span class="title-ref">7</span>-adic calculation to
112
+ precision <span class="title-ref">7^20</span>, to find a point over
113
+ the real quadratic field of discriminant
114
+ <span class="title-ref">41</span> for the elliptic curve `35a1`:
115
+
116
+ sage: darmon_point(7,EllipticCurve('35a1'),41,20)
117
+
118
+ 2) A quaternionic Darmon (a.k.a. Greenberg) point:
119
+
120
+ sage: darmon_point(13,EllipticCurve('78a1'),5,20)
121
+
122
+ 3) A Darmon point for a curve over a field of mixed signature:
123
+
124
+ sage: F.<r> = NumberField(x^3 - x^2 - x + 2)
125
+ sage: E = EllipticCurve([-r -1, -r, -r - 1,-r - 1, 0])
126
+ sage: N = E.conductor()
127
+ sage: P = F.ideal(r^2 - 2*r - 1)
128
+ sage: beta = -3*r^2 + 9*r - 6
129
+ sage: darmon_point(P,E,beta,30)
130
+
131
+ We can also *discover* equations of curves!
132
+
133
+ 1) We first find a curve over the rationals. The following command will
134
+ find a curve of conductor <span class="title-ref">30</span>, using a
135
+ <span class="title-ref">5</span>-adic calculation with precision of
136
+ <span class="title-ref">5^20</span>, and the quaternion algebra of
137
+ discriminant \`6\`:
138
+
139
+ sage: from darmonpoints.findcurve import find_curve
140
+ sage: find_curve(5,6,30,20)
141
+
142
+ This constructs the curve with equation:
143
+
144
+ y^2 + x*y + y = x^3 + x + 2
145
+
146
+ 2) Now for a curve defined over a real quadratic field. Note that here
147
+ we must specify which place will ramify in the quaternion algebra:
148
+
149
+ sage: from darmonpoints.findcurve import find_curve
150
+ sage: F.<r> = QuadraticField(5)
151
+ sage: P = F.ideal(3/2*r + 1/2)
152
+ sage: D = F.ideal(3)
153
+ sage: find_curve(P,D,P*D,30,ramification_at_infinity = F.real_places()[:1])
154
+
155
+ This returns something like:
156
+
157
+ y^2 + (1/2*r-1/2)*x*y = x^3 + (1/2*r+1/2)*x^2 + (285/2*r-793/2)*x + (3153/2*r-7689/2)
158
+
159
+ 3) A curve over a cubic field of mixed signature:
160
+
161
+ sage: from darmonpoints.findcurve import find_curve
162
+ sage: F.<r> = NumberField(x^3 -3)
163
+ sage: P = F.ideal(r-2)
164
+ sage: D = F.ideal(r-1)
165
+ sage: find_curve(P,D,P*D,30)
166
+
167
+ This should return an elliptic curve like this:
168
+
169
+ y^2 + r*x*y + (r+1)*y = x^3 + (-575*r^2-829*r-1195)*x + (-13327*r^2-19221*r-27721)
170
+
171
+ Finally, there is also code to compute Darmon-Vonk quantities. Here are
172
+ a couple of examples.
173
+
174
+ 1) A Darmon-Vonk point for the matrix group:
175
+
176
+ sage: from darmonpoints.darmonvonk import darmon_vonk_point
177
+ sage: darmon_vonk_point(5, 1, 3, 13, 60, recognize_point='lindep')
178
+
179
+ 2) A quaternionic Darmon-Vonk point:
180
+
181
+ sage: from darmonpoints.darmonvonk import darmon_vonk_point
182
+ sage: darmon_vonk_point(5, 6, 53, 92, 120, scaling=12, recognize_point='algdep')
183
+
184
+ <div id="citations">
185
+
186
+ <span id="Darmon" class="citation-label">Darmon</span>
187
+ H.Darmon. *Integration on Hp x H and arithmetic applications*. Annals of
188
+ Math.
189
+
190
+ <span id="DarmonVonk" class="citation-label">DarmonVonk</span>
191
+ H.Darmon, J.Vonk. *Singular moduli for real quadratic fields: a rigid
192
+ analytic approach*. Duke Math.
193
+
194
+ <span id="GM" class="citation-label">GM</span>
195
+ X.Guitart, M.Masdeu. *Periods of modular GL2-type abelian varieties and
196
+ p-adic integration*. Experimental Mathematics.
197
+
198
+ <span id="GMS1" class="citation-label">GMS1</span>
199
+ X.Guitart, M.Masdeu, M.H.Sengun. *Darmon points on elliptic curves over
200
+ number fields of arbitrary signature*. Proc. LMS.
201
+
202
+ <span id="GMS2" class="citation-label">GMS2</span>
203
+ X.Guitart, M.Masdeu, M.H.Sengun. *Uniformization of modular elliptic
204
+ curves via p-adic methods*. Journal of Algebra.
205
+
206
+ <span id="GMX" class="citation-label">GMX</span>
207
+ X.Guitart, M.Masdeu, X.Xarles *A quaternionic construction of p-adic
208
+ singular moduli*. Res. Math. Sci.
209
+
210
+ <span id="Greenberg" class="citation-label">Greenberg</span>
211
+ M.Greenberg. *Stark-Heegner points and the cohomology of quaternionic
212
+ Shimura varieties*. Duke Math.
213
+
214
+ <span id="KP" class="citation-label">KP</span>
215
+ A.Pacetti, D.Kohen (with an appendix by M.Masdeu) *On Heegner points for
216
+ primes of additive reduction ramifying in the base field*. Transactions
217
+ of the AMS.
218
+
219
+ <span id="Trifkovic" class="citation-label">Trifkovic</span>
220
+ M.Trifkovic. *Stark-Heegner points on elliptic curves defined over
221
+ imaginary quadratic fields*. Duke Math.
222
+
223
+ </div>
@@ -0,0 +1,214 @@
1
+ <p align="center">
2
+ <img alt="logo" src="https://github.com/mmasdeu/darmonpoints/raw/main/doc/static/logo.svg?sanitize=true">
3
+ </p>
4
+
5
+ # A package to compute Darmon points
6
+
7
+ ## (or just p-adically construct elliptic curves, or p-adic Darmon-Vonk points,...)
8
+
9
+ (for the full documentation, please see
10
+ <http://mmasdeu.github.io/darmonpoints/doc/html/>)
11
+
12
+
13
+ ![doc](https://github.com/mmasdeu/darmonpoints/actions/workflows/doc.yml/badge.svg)
14
+
15
+ ![test](https://github.com/mmasdeu/darmonpoints/actions/workflows/test.yml/badge.svg)
16
+
17
+ ![lint](https://github.com/mmasdeu/darmonpoints/actions/workflows/lint.yml/badge.svg)
18
+
19
+
20
+ ### What is this?
21
+
22
+ The **darmonpoints** package can compute many different types of what is
23
+ known as Darmon points. These are known as *Stark-Heegner* points in
24
+ some literature, and originated in
25
+ <a href="#Darmon" class="citation">[Darmon]</a>. Subsequent
26
+ generalizations were introduced by
27
+ <a href="#Greenberg" class="citation">[Greenberg]</a> and
28
+ <a href="#Trifkovic" class="citation">[Trifkovic]</a>. This has been
29
+ generalized by <a href="#GMS1" class="citation">[GMS1]</a> to elliptic
30
+ curves defined over number fields of arbitrary signature. Darmon points
31
+ are attached to triples <span class="title-ref">(F,E,K)</span>, where
32
+ <span class="title-ref">F</span> is a number field,
33
+ <span class="title-ref">E/F</span> is an elliptic curve defined over
34
+ <span class="title-ref">F</span>, and <span class="title-ref">K/F</span>
35
+ is a quadratic extension. These triples must satisfy certain conditions
36
+ for Darmon points to be attached to them. The article
37
+ <a href="#GMS1" class="citation">[GMS1]</a> contains an overview of all
38
+ of this. We include also a variation used in
39
+ <a href="#KP" class="citation">[KP]</a>.
40
+
41
+ The **darmonpoints** package can also compute equations for some
42
+ elliptic curves <span class="title-ref">E/F</span> defined over number
43
+ fields <span class="title-ref">F</span>, as long as certain conditions
44
+ are satisfied. Namely:
45
+
46
+ 1) <span class="title-ref">F</span> has narrow class number
47
+ <span class="title-ref">1</span>.
48
+ 2) if <span class="title-ref">N</span> is the conductor of the elliptic
49
+ curve, it must admit a factorization of the form
50
+ <span class="title-ref">N = PDM</span>, where:
51
+ 1) <span class="title-ref">P</span>,
52
+ <span class="title-ref">D</span> and
53
+ <span class="title-ref">M</span> are relative coprime.
54
+ 2) <span class="title-ref">P</span> is a prime ideal of
55
+ <span class="title-ref">F</span> of prime norm.
56
+ 3) <span class="title-ref">D</span> is the discriminant of a
57
+ quaternion algebra over <span class="title-ref">F</span> which
58
+ is split at only one infinite place.
59
+
60
+ Finally, we include the module *padicperiods*, which allows for the
61
+ computation of <span class="title-ref">p</span>-adic periods attached to
62
+ two-dimensional components of the cohomology of the same arithmetic
63
+ groups, and which has allowed us to find the corresponding abelian
64
+ surfaces in some cases (see <a href="#GM" class="citation">[GM]</a>).
65
+
66
+ The full documentation can be found at
67
+ <http://mmasdeu.github.io/darmonpoints/doc/html/>
68
+
69
+ ### Installation
70
+
71
+ Installation of the *darmonpoints* package has been greatly simplified,
72
+ thanks to Matthias Köppe "Sample Sage"
73
+ (<https://github.com/mkoeppe/sage_sample>). For most operations one
74
+ *does need* to have **Magma** (<https://magma.maths.usyd.edu.au/magma/>)
75
+ installed, although we do hope that in the future Sage will include the
76
+ required functionality.
77
+
78
+ We include for convenience the dependency Magma package *KleinianGroups*
79
+ by Aurel Page, the original of which can be found at
80
+ <http://www.normalesup.org/~page/Recherche/Logiciels/KleinianGroups/KleinianGroups-1.0.tar.gz>.
81
+
82
+ To install the package use the following command:
83
+
84
+ sage -pip install --user --upgrade darmonpoints
85
+
86
+ If you rather install the cutting-edge version from the github
87
+ repository (which is likely to be broken), then use the following
88
+ command:
89
+
90
+ sage -pip install --user --upgrade -v git+https://github.com/mmasdeu/darmonpoints.git
91
+
92
+ ### Basic usage
93
+
94
+ The files `darmonpoints.py`, `findcurve.py` and `padicperiods.py`
95
+ contain the high level routines from which show how to use the package,
96
+ although one can use parts of the package in other ways if one feels
97
+ adventurous. Here are some sample calculations that one can try:
98
+
99
+ sage: from darmonpoints.darmonpoints import darmon_point
100
+
101
+ 1) A classical Darmon (a.k.a. Stark-Heegner) point. The following will
102
+ perform a <span class="title-ref">7</span>-adic calculation to
103
+ precision <span class="title-ref">7^20</span>, to find a point over
104
+ the real quadratic field of discriminant
105
+ <span class="title-ref">41</span> for the elliptic curve `35a1`:
106
+
107
+ sage: darmon_point(7,EllipticCurve('35a1'),41,20)
108
+
109
+ 2) A quaternionic Darmon (a.k.a. Greenberg) point:
110
+
111
+ sage: darmon_point(13,EllipticCurve('78a1'),5,20)
112
+
113
+ 3) A Darmon point for a curve over a field of mixed signature:
114
+
115
+ sage: F.<r> = NumberField(x^3 - x^2 - x + 2)
116
+ sage: E = EllipticCurve([-r -1, -r, -r - 1,-r - 1, 0])
117
+ sage: N = E.conductor()
118
+ sage: P = F.ideal(r^2 - 2*r - 1)
119
+ sage: beta = -3*r^2 + 9*r - 6
120
+ sage: darmon_point(P,E,beta,30)
121
+
122
+ We can also *discover* equations of curves!
123
+
124
+ 1) We first find a curve over the rationals. The following command will
125
+ find a curve of conductor <span class="title-ref">30</span>, using a
126
+ <span class="title-ref">5</span>-adic calculation with precision of
127
+ <span class="title-ref">5^20</span>, and the quaternion algebra of
128
+ discriminant \`6\`:
129
+
130
+ sage: from darmonpoints.findcurve import find_curve
131
+ sage: find_curve(5,6,30,20)
132
+
133
+ This constructs the curve with equation:
134
+
135
+ y^2 + x*y + y = x^3 + x + 2
136
+
137
+ 2) Now for a curve defined over a real quadratic field. Note that here
138
+ we must specify which place will ramify in the quaternion algebra:
139
+
140
+ sage: from darmonpoints.findcurve import find_curve
141
+ sage: F.<r> = QuadraticField(5)
142
+ sage: P = F.ideal(3/2*r + 1/2)
143
+ sage: D = F.ideal(3)
144
+ sage: find_curve(P,D,P*D,30,ramification_at_infinity = F.real_places()[:1])
145
+
146
+ This returns something like:
147
+
148
+ y^2 + (1/2*r-1/2)*x*y = x^3 + (1/2*r+1/2)*x^2 + (285/2*r-793/2)*x + (3153/2*r-7689/2)
149
+
150
+ 3) A curve over a cubic field of mixed signature:
151
+
152
+ sage: from darmonpoints.findcurve import find_curve
153
+ sage: F.<r> = NumberField(x^3 -3)
154
+ sage: P = F.ideal(r-2)
155
+ sage: D = F.ideal(r-1)
156
+ sage: find_curve(P,D,P*D,30)
157
+
158
+ This should return an elliptic curve like this:
159
+
160
+ y^2 + r*x*y + (r+1)*y = x^3 + (-575*r^2-829*r-1195)*x + (-13327*r^2-19221*r-27721)
161
+
162
+ Finally, there is also code to compute Darmon-Vonk quantities. Here are
163
+ a couple of examples.
164
+
165
+ 1) A Darmon-Vonk point for the matrix group:
166
+
167
+ sage: from darmonpoints.darmonvonk import darmon_vonk_point
168
+ sage: darmon_vonk_point(5, 1, 3, 13, 60, recognize_point='lindep')
169
+
170
+ 2) A quaternionic Darmon-Vonk point:
171
+
172
+ sage: from darmonpoints.darmonvonk import darmon_vonk_point
173
+ sage: darmon_vonk_point(5, 6, 53, 92, 120, scaling=12, recognize_point='algdep')
174
+
175
+ <div id="citations">
176
+
177
+ <span id="Darmon" class="citation-label">Darmon</span>
178
+ H.Darmon. *Integration on Hp x H and arithmetic applications*. Annals of
179
+ Math.
180
+
181
+ <span id="DarmonVonk" class="citation-label">DarmonVonk</span>
182
+ H.Darmon, J.Vonk. *Singular moduli for real quadratic fields: a rigid
183
+ analytic approach*. Duke Math.
184
+
185
+ <span id="GM" class="citation-label">GM</span>
186
+ X.Guitart, M.Masdeu. *Periods of modular GL2-type abelian varieties and
187
+ p-adic integration*. Experimental Mathematics.
188
+
189
+ <span id="GMS1" class="citation-label">GMS1</span>
190
+ X.Guitart, M.Masdeu, M.H.Sengun. *Darmon points on elliptic curves over
191
+ number fields of arbitrary signature*. Proc. LMS.
192
+
193
+ <span id="GMS2" class="citation-label">GMS2</span>
194
+ X.Guitart, M.Masdeu, M.H.Sengun. *Uniformization of modular elliptic
195
+ curves via p-adic methods*. Journal of Algebra.
196
+
197
+ <span id="GMX" class="citation-label">GMX</span>
198
+ X.Guitart, M.Masdeu, X.Xarles *A quaternionic construction of p-adic
199
+ singular moduli*. Res. Math. Sci.
200
+
201
+ <span id="Greenberg" class="citation-label">Greenberg</span>
202
+ M.Greenberg. *Stark-Heegner points and the cohomology of quaternionic
203
+ Shimura varieties*. Duke Math.
204
+
205
+ <span id="KP" class="citation-label">KP</span>
206
+ A.Pacetti, D.Kohen (with an appendix by M.Masdeu) *On Heegner points for
207
+ primes of additive reduction ramifying in the base field*. Transactions
208
+ of the AMS.
209
+
210
+ <span id="Trifkovic" class="citation-label">Trifkovic</span>
211
+ M.Trifkovic. *Stark-Heegner points on elliptic curves defined over
212
+ imaginary quadratic fields*. Duke Math.
213
+
214
+ </div>
@@ -0,0 +1,19 @@
1
+ # Add the import for which you want to give a direct access
2
+ from sage.all_cmdline import *
3
+
4
+ from .cohomology_arithmetic import (
5
+ ArithCoh,
6
+ get_overconvergent_class_matrices,
7
+ get_overconvergent_class_quaternionic,
8
+ )
9
+ from .integrals import double_integral_zero_infty, integrate_H1
10
+ from .limits import find_optimal_embeddings, find_tau0_and_gtau, num_evals
11
+ from .sarithgroup import BigArithGroup_class
12
+ from .util import (
13
+ Bunch,
14
+ config_section_map,
15
+ fwrite,
16
+ get_heegner_params,
17
+ quaternion_algebra_invariants_from_ramification,
18
+ recognize_J,
19
+ )