coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] morphism option of ring tactic
- Date: Wed, 8 Aug 2018 12:21:27 +0000
- Accept-language: de-DE, en-US
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga09.intel.com
- Ironport-phdr: 9a23:bmaN5Rd5xPeG6RUtZrsjaHk1lGMj4u6mDksu8pMizoh2WeGdxcS9YB7h7PlgxGXEQZ/co6odzbaO7ea4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYL5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H/ZhNFsjKxVoxyhqR5ww4/Ib46aO/RzZb/dcsgeSGZdQspdSy5MD4WhZIUPFeoBOuNYopHzq1UTqhuxGwasBP/1yj9Pnn/6xbAx3eMgEQ7a3AwvBcwBsHDaoN7oM6oSVOG1w7XIzTrZcfxW3S3x6JPPch8/rvGMQahwcc3JyUQ0FgPFiEmQppLhPz+PyusNtG2b4vNmWOmyhWAnrARxrSKuxscqkoTJiYMVykzE9SVk24k5P8G3SEl+YdK8EZtQsT2aOJVyQs84Xm5npiA3waAFt56jZCUG1ZoqyhHFZ/CafYWF7QjvWPufLDp5nn5pZr2yiw6v/UWhxODwTMe53VhQoiZbnNTBsmoB2wHQ58SZUvdx40as1DKV2wzN6uxJLlo4mbTBJ5I8wbM8ipweulnZECDsgkX5lqqWe10k+ue27+TnZa3rppqTN4Bulg3zNr4ims25AeQkLAcOW3KX9vi71L3m5UH5QbNKgeMqkqTBrZzXK8sWqrSkDwJb3Ysv8QuzAjmn3dgCg3UKI0pJeBedgIjoP1HOLur4DfC6g1m0lTdrxuzJPr37DZrTKnjPiqzhfbFj5E5T1Aoz19df54pPB7EAJvLzRlH+tNjCAhAlNAy0xv7rCM9h2YMGRWKPHqiZPbvOvl+P/+IjOvWDZIsIuDnmMPUl/P7vjXohmVAHZ6Wp3J0XaGq5Hvt8OUmZb2Ds0Z89FjJAtQ0nCefulVeqUDhJZn/0Ubh2rmUwD5vjBoPeTKishqaA1WG1BMsFSHpBDwXGKnDleJmeXO9IIAeTKc9onzhOHeykSoQh3Byq8hT9xrV7NO3M0iweqZ/nktNy4ruAxlkJ6TVoApHFgCm2RGZukzZQHm5k7OVEuUV4j2y7/+19iv1cG8ZU4qoQAAY8KZPYied9DoKrA16TTpKyUF+jB+6eL3QpVNtomo0PZVpwH5OpiRWRh3P3UY9QrKSCAdkPyoyZ33X1IJ8imXPJ3fFwyVggXsZLc2ahg/wn+g==
Dear Samuel,
I am happy that I could help :-)
Two more notes:
1.) There is an (undocumented) tactic called "is_constructor". This might
simplify your checks. There is also a tactic to check for ground terms in the
pipeline. Search for "is_" in
https://github.com/coq/coq/blob/master/plugins/ltac/extratactics.ml4 for
other undocumented term classification tactics (I have it on my to do list to
write the documentation).
2.) In case you are working on large terms, it might be worthwhile to do a
performance comparison of autorewrite vs. repeat rewrite vs. rewrite_strat
vs. match context + rewrite. A usage of rewrite_strat for your case would
look as below, but there are quite a few options one can try:
[rewrite_strat (bottomup terms ZToReg_morphism.(morph_add)
ZToReg_morphism.(morph_sub) ZToReg_morphism.(morph_mul))]
In case you look into this, I would be interested in the results. I did test
this in the past, but I had only rater modest term sizes where it did not
make much of a difference and didn't bother to create large artificial terms.
For large term sizes, timing might be substantially different.
Best regards,
Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
- [Coq-Club] morphism option of ring tactic, Samuel Gruetter, 08/06/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/07/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/07/2018
- Re: [Coq-Club] morphism option of ring tactic, Samuel Gruetter, 08/08/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/08/2018
- Re: [Coq-Club] morphism option of ring tactic, Samuel Gruetter, 08/10/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/08/2018
- Re: [Coq-Club] morphism option of ring tactic, Samuel Gruetter, 08/08/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/07/2018
- RE: [Coq-Club] morphism option of ring tactic, Soegtrop, Michael, 08/07/2018
Archive powered by MHonArc 2.6.18.