Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Proper morphisms for family of functions

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Proper morphisms for family of functions


Chronological Thread 
  • From: Vadim Zaliva <vzaliva AT cmu.edu>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Proper morphisms for family of functions
  • Date: Tue, 5 Jan 2016 22:08:11 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=vadim.zaliva AT west.cmu.edu; spf=None smtp.mailfrom=vadim.zaliva AT west.cmu.edu; spf=None smtp.helo=postmaster AT mail-oi0-f41.google.com
  • Ironport-phdr: 9a23:KzzdsxLOe2u9N5S7atmcpTZWNBhigK39O0sv0rFitYgUKPnxwZ3uMQTl6Ol3ixeRBMOAu6wC07KempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRMiK14ye7KObxd76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKKx8zGJsIk+PzV6nvp/jtM0rzyMFsPU4ssVETK/SfqIiTLUeAi51HXoy4ZjVvBXCSEO9738dTGxexgRaCgzE8hjSVZLs9Cb2q7wui2GhIcTqQOVsCnyZ5KBxRUqwhQ==


On Jan 5, 2016, at 21:46 , Abhishek Anand <abhishek.anand.iitg AT gmail.com> wrote:

Sorry, I forgot that I had to make another fix to your code.

Thanks! That was it. Now about your other suggestion:

1) Take a look at  MathClasses.theory.setoids.ext_equiv_refl 
Moreover, you might want to reuse MathClasses.interfaces.abstract_algebra.Setoid_Morphism instead of defining your own `O`.

That was also super helpful! I still want to have my own class but I just defined it as:

  Class O (op: A -> A) :=
    o_setoidmor :> Setoid_Morphism op.

and if I use `apply ext_equiv_refl` instead of `reflexivity` everything works just great. Here is full example: http://ideone.com/rbD6rv reworked per your suggestions.

However I am still wondering if there is a way to declare such refined/specialized instance of ‘Reflexive’ for Setoid_Morphisms so 
reflexivity tactics would work as well?

Sincerely,
Vadim Zaliva

--
CMU ECE PhD candidate
Mobile: +1(510)220-1060
Skype: vzaliva




Archive powered by MHonArc 2.6.18.

Top of Page