flatsurf / flatsurvey

4 stars 1 forks source link

Speed up Ngon.unfolding_symmetries() #34

Closed saraedum closed 2 years ago

saraedum commented 2 years ago

by not checking that result is actually a group. We just have to trust that sage-flatsurf does the right thing here since the actual verification is extremely expensive.

videlec commented 2 years ago

Why is it so expensive to invert and multiply 2x2 matrices?

Also, we generally do not care about the complete list of symmetries, only about it as a group (e.g. having a small set of generators is more valuable).

saraedum commented 2 years ago

Why is it so expensive to invert and multiply 2x2 matrices?

I don't know. These are matrices with pyeantic coefficients number field coefficients.

Also, we generally do not care about the complete list of symmetries, only about it as a group (e.g. having a small set of generators is more valuable).

True. At the moment, I am just using this in flatsurvey to check that the chosen directions actually generate S¹(2d'). At the moment, I just want this as a dumb and cheap assert to make sure we're not doing anything wrong. I would not propose to implement it like this in sage-flatsurf. For flatsurvey, it's fine I think.

saraedum commented 2 years ago

I'll look into why the matrix operations are so slow…

saraedum commented 2 years ago

My benchmark is the (1, 13, 63) triangle. In that case, the worst combination are the following matrices which take 5ms (4ms for the inverse, 1ms for the multiplication; computing a/b instead of a*~b is even slower.)

sage: a
[                                                                                                                                                1/2*c^32 - 16*c^30 + 232*c^28 - 2016*c^26 + 11700*c^24 - 47840*c^22 + 141680*c^20 - 307648*c^18 + 490314*c^16 - 568480*c^14 + 470288*c^12 - 268736*c^10 + 100776*c^8 - 22848*c^6 + 2720*c^4 - 128*c^2 + 1  1/2*c^45 - 45/2*c^43 + 945/2*c^41 - 6150*c^39 + 55575*c^37 - 740259/2*c^35 + 3764565/2*c^33 - 7472520*c^31 + 23477850*c^29 - 58839550*c^27 + 118015326*c^25 - 189329400*c^23 + 241920900*c^21 - 488494125/2*c^19 + 384942375/2*c^17 - 116338140*c^15 + 105306075/2*c^13 - 34512075/2*c^11 + 7811375/2*c^9 - 569250*c^7 + 47817*c^5 - 3795/2*c^3 + 45/2*c]
[-1/2*c^45 + 45/2*c^43 - 945/2*c^41 + 6150*c^39 - 55575*c^37 + 740259/2*c^35 - 3764565/2*c^33 + 7472520*c^31 - 23477850*c^29 + 58839550*c^27 - 118015326*c^25 + 189329400*c^23 - 241920900*c^21 + 488494125/2*c^19 - 384942375/2*c^17 + 116338140*c^15 - 105306075/2*c^13 + 34512075/2*c^11 - 7811375/2*c^9 + 569250*c^7 - 47817*c^5 + 3795/2*c^3 - 45/2*c                                                                                                                                                 1/2*c^32 - 16*c^30 + 232*c^28 - 2016*c^26 + 11700*c^24 - 47840*c^22 + 141680*c^20 - 307648*c^18 + 490314*c^16 - 568480*c^14 + 470288*c^12 - 268736*c^10 + 100776*c^8 - 22848*c^6 + 2720*c^4 - 128*c^2 + 1]
sage: b
[1/2*c^56 - 28*c^54 + 742*c^52 - 12376*c^50 + 291549/2*c^48 - 1289656*c^46 + 8898252*c^44 - 98156961/2*c^42 + 220046221*c^40 - 1622508211/2*c^38 + 2478263737*c^36 - 12605605553/2*c^34 + 13375415346*c^32 - 23688023924*c^30 + 69889655249/2*c^28 - 85547275767/2*c^26 + 86359976559/2*c^24 - 35647530996*c^22 + 47592894945/2*c^20 - 25312575713/2*c^18 + 10521076245/2*c^16 - 1665946629*c^14 + 388536317*c^12 - 127342359/2*c^10 + 6849711*c^8 - 435039*c^6 + 13450*c^4 - 120*c^2 - 1/2                                                                                                                                                                                                                                                                                                                                                                                                           1/2*c^15 - 15/2*c^13 + 45*c^11 - 275/2*c^9 + 225*c^7 - 189*c^5 + 70*c^3 - 15/2*c]
[                                                                                                                                                                                                                                                                                                                                                                                                         -1/2*c^15 + 15/2*c^13 - 45*c^11 + 275/2*c^9 - 225*c^7 + 189*c^5 - 70*c^3 + 15/2*c 1/2*c^56 - 28*c^54 + 742*c^52 - 12376*c^50 + 291549/2*c^48 - 1289656*c^46 + 8898252*c^44 - 98156961/2*c^42 + 220046221*c^40 - 1622508211/2*c^38 + 2478263737*c^36 - 12605605553/2*c^34 + 13375415346*c^32 - 23688023924*c^30 + 69889655249/2*c^28 - 85547275767/2*c^26 + 86359976559/2*c^24 - 35647530996*c^22 + 47592894945/2*c^20 - 25312575713/2*c^18 + 10521076245/2*c^16 - 1665946629*c^14 + 388536317*c^12 - 127342359/2*c^10 + 6849711*c^8 - 435039*c^6 + 13450*c^4 - 120*c^2 - 1/2]
sage: a.base_ring()
Number Field in c with defining polynomial x^60 - 59*x^58 + 1652*x^56 - 29205*x^54 + 365859*x^52 - 3455335*x^50 + 25556440*x^48 - 151794021*x^46 + 736647495*x^44 - 2956412711*x^42 + 9894941476*x^40 - 27773378270*x^38 + 65592924343*x^36 - 130530017729*x^34 + 218801812945*x^32 - 308337579027*x^30 + 363972489209*x^28 - 357976286928*x^26 + 291226209171*x^24 - 194130948828*x^22 + 104766369144*x^20 - 45083463663*x^18 + 15176439088*x^16 - 3900841911*x^14 + 742221909*x^12 - 100422335*x^10 + 9156888*x^8 - 521938*x^6 + 16580*x^4 - 240*x^2 + 1 with c = 1.999583856378413?

Or more conveniently,

sage: dumps((a, b))
b'x\x9c\x9d\x98\x05\x98\x13\xd7\xd7\xc6!\xbbX\xa0\xd0\x16\xeaF}i\xbb\x90l6V\x85b\x05\xca\x96^\xa0\xdd\nM#\x93d6zn&\x01\xdaR\xa8d\x17\xea\xd4\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xbd\xff;\xefL\xce\xccn\xe1\xfb\xfe\xdf\xf7\xf0<a\xde\xbc\xbfs\xee\x9d\xb9w\xce\xb9\xd9%\x9ed%\x9e\xd1\xc6\x16\xe2\x86\xd4\x17\xd8\xff\xf9\xbc\xd5bYO\xe6\xf2\x9a\x97\xfa\xb5\xac\x00\x88e\xb4\xa2&\xf5d,\xa5\x15+\x9aw\xe6\x8a\xbe\xa4\xfeV`\xc5\x90\xd5\xa4Q\x95\xda\xd8jQ\xa7\xaa\x16\x93ZYj\x15\xadh\xc4\r\xbdTTCI-UM\xaa\x80\x15M%V)\xc7\x93\x8d\x11f\xe3\x9a\x9aZ\xfafN\xc7\x93FI.\xf46f`\xeb\x98s\x1b\xcd+\x8d\xc9\x97J\xb9j9\x96\x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96xi\x7f'
saraedum commented 2 years ago

So, SageMath does not seem to be using the fact that this is an orthogonal matrix at all or that's it's 2×2.

The algorithm it's using is the one we learned in school for square matrices over fields.

saraedum commented 2 years ago

So, we can gain a factor 200 here by implementing the obvious algorithm, see Zulip. Are we using inverses of matrices elsewhere in sage-flatsurf @videlec ?

videlec commented 2 years ago

I don't think that we do in any critical way.

saraedum commented 2 years ago

Ok. So I'll merge this as is. I don't think we want these overly careful checks here anyway. (It worked for all triangles up to a+b+c=100+, so I'll just declare this correct.)