sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.47k stars 485 forks source link

Toy implementation of F5 algorithm #23461

Open 8a446006-e38c-4d8b-a73b-1822fac50135 opened 7 years ago

8a446006-e38c-4d8b-a73b-1822fac50135 commented 7 years ago

This ticket implements Faugère's F5 algorithm.

CC: @xcaruso

Component: commutative algebra

Keywords: sd87

Author: Tristan Vaccon

Branch/Commit: u/TristanVaccon/toy_F5 @ 78f0d49

Issue created by migration from https://trac.sagemath.org/ticket/23461

8a446006-e38c-4d8b-a73b-1822fac50135 commented 7 years ago

Branch: u/TristanVaccon/toy_F5

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Commit: f3b676a

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

f3b676aMove toy_F5 to sage/rings/polynomial
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

06fbeceRemove toy_F5 from sage/rings/polynomial/padics
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from f3b676a to 06fbece

8a446006-e38c-4d8b-a73b-1822fac50135 commented 7 years ago

Changed keywords from none to sd87

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

193eb9aNew version.
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from 06fbece to 193eb9a

xcaruso commented 7 years ago
comment:7

According to me, your file could be much more educational that it is currently. Maybe, you should explain more basic concepts and ideas (such as signatures), explain notations and add more comments within your code. Another thing you could do is to detail (in the first doctest) step by step the execution of the F5 algorithm on a working simple example.

Other small comments:

fchapoton commented 7 years ago
comment:8
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from 193eb9a to 34fb934

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

34fb934Better introduction. Minor other improvements.
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from 34fb934 to 5af6ccf

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

5af6ccf4 new items in the reference.
8a446006-e38c-4d8b-a73b-1822fac50135 commented 7 years ago
comment:11

Thank you very much for your comments and suggestions!

I have made the corresponding corrections. I have also added more material to the Introduction with a complete small (minimal ?) example. I have not showed the matrices in this example though. I think it is better to leave this to the doctest of the functions dedicated to the linear algebra part of F5.

fchapoton commented 7 years ago
comment:12
+.. [VY2017] T. Vaccon, K.Yokoyama, *A Tropical F5 Algorithm*, 

you need to add a \ (for obscure technical reasons..) as follows

+.. [VY2017] \T. Vaccon, K.Yokoyama, *A Tropical F5 Algorithm*, 
+We have followed [Fau02]_, [AP11]_, [EF17]_ and [VY17]_.
+REFERENCES:
+
+.. [F02] Jean-Charles Faugère. *A new efficient algorithm for computing Gröbner bases without reduction to zero (F5)*.  In Proceedings of the 2002 international symposium on Symbolic and algebraic computation, ISSAC '02, pages 75-83, New York, NY, USA, 2002. ACM. 
+.. [AP11] Alberto Arri and John Perry. *The F5 criterion revised*.  In Journal of Symbolic Computation, 2011. Corrigendum in 2017.
+.. [EF17] Christian Eder and Jean-Charles Faugère. *A survey on signature-based algorithms for computing Gröbner bases*.  In Journal of Symbolic Computation, 2017.
+.. [VY17] T. Vaccon, K.Yokoyama, A Tropical F5 Algorithm, proceedings of ISSAC 2017.

should now be replaced by

+REFERENCES:
+
+- [F02]_ 
+- [AP11]_ 
+- [EF17]_
+- [VY17]_
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

78f0d49Minor revision of references.
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from 5af6ccf to 78f0d49

8a446006-e38c-4d8b-a73b-1822fac50135 commented 7 years ago
comment:14

Thank you very much for the comment. I have tried to update accordingly.

fchapoton commented 7 years ago
comment:15

same thing here (replace by - [VY17]_)

+    REFERENCES:
+
+    .. [VY17] T. Vaccon, K.Yokoyama, A Tropical F5 Algorithm, proceedings of ISSAC 2017.

And here (and almost everywhere !), there should be no empty line at the start of a documentation

+    r"""
+    
+    In the list of polynomials with signature G, remove the polynomials