Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to create a ring with a custom

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to create a ring with a custom


Chronological Thread 
  • From: Laurent Thery <Laurent.Thery AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] How to create a ring with a custom
  • Date: Sun, 7 Feb 2016 14:28:44 +0100



(* The actual relations *)
Add Parametric Relation : Type iso
reflexivity proved by ltac:(unfold Reflexive; iso)
symmetry proved by ltac:(unfold Symmetric; iso)
transitivity proved by ltac:(unfold Transitive; iso)
as iso_rel.

Add Parametric Morphism : sum
with signature iso ==> iso ==> iso as sum_mor.
iso. Defined.

Add Parametric Morphism : prod
with signature iso ==> iso ==> iso as prod_mor.
iso. Defined.

The problem does not come from ring but from the fact that the system
does not see iso as a setoid equality on Type.

Goal forall A B : Type, iso A B -> iso (A + A) (A + B).
intros A B H.
rewrite H.

Tactic failure: setoid rewrite failed: Unable to satisfy the following constraints...


--
Laurent.



Archive powered by MHonArc 2.6.18.

Top of Page