coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: e AT x80.org (Emilio Jesús Gallego Arias)
- To: "Soegtrop\, Michael" <michael.soegtrop AT intel.com>
- Cc: "coq-club\@inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type
- Date: Sat, 15 Jul 2017 01:26:29 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=e AT x80.org; spf=Pass smtp.mailfrom=e AT x80.org; spf=Pass smtp.helo=postmaster AT x80.org
- Ironport-phdr: 9a23:YJ+YURG38FSLMjuiMNJuIZ1GYnF86YWxBRYc798ds5kLTJ78osmwAkXT6L1XgUPTWs2DsrQf2rWQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428aIUPAeQDMuhboYbyqEcBoACiBQWwHu7j1iNEi2X00KA8zu8vERvG3AslH98WrnvZt9r0OaQOXeyvy6nI1zrDZO5S1Tny7YjIcxQhofCLXbltdcTe11IvDxnejl6NqILqJTeV1uATvGiU6OprSP6ii3Qmqw5ruTijw8EhgZTKiIIN0l3I6CZ0zYUvKdGmVkJ2YMSoHIZSui2HLYd6X80vT39wtCs5y7AKo5+2cSoQxJkj3RLSaPKKfo6V6Rz5TumROy13hHd9dbK/mRmy9U+gx/XzV8S3zFpGtC1FksPDtnwV1hzT7NaISudl80u82juC1Brf5v9aLU01j6bXNpwszqMqmpYOv0nPADf6mEDsg6+XckUk9PKo6+PiYrj+uJCRLIB1hwLiPqg0ncy/G+s4PhAUX2eH4eS8yKHj/UrhTbpWif02i7DVv4zeJcQGvaG0GBRV04Ym6xanFTiqytUYnX8dLFJEYh2LlYbpO0udaMz/WL2EhFmjjC1s38SCdpjgCZXEI3yJ2OPkfL194kNYjhE0wN9D/ZVMIrAHPP/3HET2sYqLIAU+Nlm56/a3UJN6zIxWGU+KA6uYN+vwvEQa/aoAKu2IaYAS8B/nKvE+pq29xUQlkEMQKPH6laAcb2q1S7E/ex2U
- Organization: X80 Heavy Industries
Dear Michael,
"Soegtrop, Michael"
<michael.soegtrop AT intel.com>
writes:
> I sometimes want to have two ring structures defined for one type
> using different operators. An example is the usual ring for Z and a
> modulo ring for Z. The ring tactic seems to select the ring structure
> to use based on the type of coefficients and variables, not on the
> operators used in the term. Also the ring tactic does not allow to
> specify a ring explicitly. So I wonder how I can use several ring
> structure for the same type in one proof.
One solution for this particular case is indeed to use two different
types, as done in mathcomp. `int` is the usual Z and `'Z_p` is the type
of integers modulo `p`.
Without knowing more details, I would indeed attack the problem in
general by providing two datatypes and a coercion from one to the other;
however this may prove quite cumbersome in some scenarios.
Best,
E.
- [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/14/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Emilio Jesús Gallego Arias, 07/15/2017
- RE: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Emilio Jesús Gallego Arias, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Gaetan Gilbert, 07/17/2017
- RE: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Gaetan Gilbert, 07/17/2017
- RE: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Gaetan Gilbert, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Gaetan Gilbert, 07/17/2017
- RE: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Emilio Jesús Gallego Arias, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Gaetan Gilbert, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Emilio Jesús Gallego Arias, 07/17/2017
- RE: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Soegtrop, Michael, 07/17/2017
- Re: [Coq-Club] More than one ring structure (e.g. modulo ring) for one type, Emilio Jesús Gallego Arias, 07/15/2017
Archive powered by MHonArc 2.6.18.