coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ilmārs Cīrulis <ilmars.cirulis AT gmail.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Question about ring_theory and field_theory
- Date: Wed, 28 May 2014 22:10:11 +0300
Thank you for the answer!
On Tue, May 27, 2014 at 7:42 PM, Laurent Théry <Laurent.Thery AT inria.fr> wrote:
It has but it is handle by the setoid mechanism. Here is a way to get ring with your reqOn 05/27/2014 11:42 AM, Ilmārs Cīrulis wrote:
Why ring_theory and field_theory can be build with req, which doesn't have any properties of equivalence?
--
Ilmars
Require Import Relation_Definitions Ring.Lemma Rref : reflexive _ req.
Parameters (R: Type) (rO rI: R) (radd rmul rsub rdiv: R -> R -> R) (ropp rinv: R -> R) (req: R -> R -> Prop) .
Proof. admit. Qed.
Lemma Rsym : symmetric _ req.
Proof. admit. Qed.
Lemma Rtrans : transitive _ req.
Proof. admit. Qed.
Add Relation R req
reflexivity proved by Rref
symmetry proved by Rsym
transitivity proved by Rtrans
as RSetoid.
Add Morphism radd : radd_morph .
admit.
Qed.
Add Morphism rmul : rmul_morph .
admit.
Qed.
Add Morphism ropp : ropp_morph .
admit.
Qed.
Parameter ring_instance: ring_theory rO rI radd rmul rsub ropp req.
Add Ring Rring : ring_instance.
Goal forall x y : R, req (radd x y) (radd y x).
intros.
ring.
- [Coq-Club] Question about ring_theory and field_theory, Ilmārs Cīrulis, 05/27/2014
- Re: [Coq-Club] Question about ring_theory and field_theory, Ilmārs Cīrulis, 05/27/2014
- Re: [Coq-Club] Question about ring_theory and field_theory, Laurent Théry, 05/27/2014
- Re: [Coq-Club] Question about ring_theory and field_theory, Ilmārs Cīrulis, 05/28/2014
Archive powered by MHonArc 2.6.18.