alexjbest / cluster-pictures

This package implements the machinery of cluster pictures of Maistret, Morgan, Dokchitser and Dokchitser in Sage.
https://alexjbest.github.io/cluster-pictures/
GNU General Public License v2.0
3 stars 4 forks source link

Slow automorphisms #45

Closed rbommel closed 3 years ago

rbommel commented 3 years ago

A colleague reported to me that there is a problem when computing the Tamagawa number of the following curve:

sage: x = polygen(Qp(p,150))
sage: H = HyperellipticCurve(x^(12) + 36*x^(11) + 534*x^(10) + 4094*x^9 + 17667*x^8 + 44018*x^7 + 61093*x^6 + 44018*x^5 + 17667*x^4 + 4094*x^3 + 534*x^2 + 36*x + 1)
sage: C = Cluster.from_curve(H)
sage: C.tamagawa_number()

After digging into this, it seems that the problem is caused by the computation of the combinatorial automorphism group in inertia. I think the problem would be solved in this case by first checking for the _inertia attribute before iterating over the full automorphism group. If you agree, I will change that. Maybe we should also print a warning if this clause is triggered.

rbommel commented 3 years ago

Oh oops, I thought I was making a pull request, but I actually immediately changed the main branch. Anyway, still let me know if you agree.

alexjbest commented 3 years ago

@rbommel This change looks good to me, what is p in that example? We should add it as a test, and I should also fix the CI

rbommel commented 3 years ago

Seven

alexjbest commented 3 years ago

Well now I'm super confused, did we talk about this before? I have this change locally already lol

rbommel commented 3 years ago

Maybe check if you are in sync with the Github branch?