Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type


Chronological Thread 
  • From: Gaetan Gilbert <gaetan.gilbert AT ens-lyon.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type
  • Date: Mon, 17 Jul 2017 14:02:05 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT ens-lyon.fr; spf=Neutral smtp.mailfrom=gaetan.gilbert AT ens-lyon.fr; spf=None smtp.helo=postmaster AT labbe.ens-lyon.fr
  • Ironport-phdr: 9a23:tONnzxKhBeliiJuU8dmcpTZWNBhigK39O0sv0rFitYgRIvXxwZ3uMQTl6Ol3ixeRBMOAuq0C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhjoZOT438G/ZicJ+g6xUrx2juxNxzJXZYJ2WOfdkYq/RYd0XSGhHU81MVyJBGIS8b44XAuQAJ+lXsZX9qEEIrRCjBAesBefvxSRWiX/swa0xzuMsEQ7c0wM+A9IBqnLUoM/6NKcTVeC617fHzS/fb/5Nxzj97pPIfgklofCMWrJwd9DdyUc1Fw7ciFibtILrPzSQ1usXsmib6fJtVeOpi247tQ5xpiKjydoyhYTPm4kbyUjE+D1kzIs6OdG0Ukx2bNy+HJdNtiyXNZF6Tt08T212oCo3y6MKtYSmcCQW1pgr3QPTZvOEfoSS/x7uVemcLDFlj3x/Yr2/nQy98U24x+38SMa01FFKozJBktbWrX8CzALc5tKZRft75UetwDKP1gDU6uFCO0w0m7DbJ4Ygwr42iJUTrVzOEjL5lUnqlqObdEcp9vK15+nmYLjqvIGQO5Fqhg3mN6QhgM2/AeA2MggUWGib/Pyx1LL58kLnXLVFlPs2nrPWsJDbIcQUvbC2AxVJ0os49Rm/CSym3M0cnXgHK1JFfgiLj4bzO13WOvD3Ee+/g0iwkDds3/3JIrrhAozUInfflLfhYK1y5lVHyAszyNBf/4hbBqsAIPL1QE/xtcbXAgU3MwyukK7bD4B20ZpbUmaSCIeYNrnTuBmG/LEBOe6JMaActSr0LbAK5vrkgGUl0QsSdKS11J1RZ3G8FPl8P22UZ2GphsYGFyEEpFxtH6TRlFSeXGsLND6JVKUm62RjBQ==

>If this doesn't match your expectation, I can prepare a sample.

Please do.

The relation is the setoid identity which is used in the Add Ring command (in this case [@eq T']). I'm only guessing at what the tactic does based on the experiment I posted.

Gaëtan Gilbert

On 17/07/2017 13:56, Soegtrop, Michael wrote:
Dear Gaetan,

You can also use a type alias.
thanks, an interesting hint!

This works because ring uses the relation to figure out which structure
should be
used.
This I don't get. In my situation all relations are different (including eq)
and all relations in the term I present to ring are either from on or the
other ring structure, only the type is the same. Still the ring tactic
selects the wrong ring structure. So my impression is that ring only looks at
the type. If this doesn't match your expectation, I can prepare a sample. It
is also possible that I did a mistake here.

Which relation do you think ring looks at? The equality relation? How about
ring_simplify then?

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




Archive powered by MHonArc 2.6.18.

Top of Page