Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] question about Existing Class

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] question about Existing Class


Chronological Thread 
  • From: Ralf Jung <jung AT mpi-sws.org>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] question about Existing Class
  • Date: Mon, 4 Jul 2016 13:12:47 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:BHDezBUa7cSiUf/wW9hHNiAw1J/V8LGtZVwlr6E/grcLSJyIuqrYZhaEt8tkgFKBZ4jH8fUM07OQ6PG4HzZaqs3a+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLshrj0oceYOF4ArQH+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK79ZuEzSaFSJDUgKWE8osPx5jfZSg7a3HIYXC00jxxHS1zH8Rf1dpLps27hqfE73zOVa56lBYsoUCivuv84ACTjjz0KYmY0

Hi,

> But I still think it is weird that
> these other declarations without proofs automagically become instances
> of Existing Class types, while definitions - declarations with proofs -
> don't. I can understand how hypotheses in a local context of a proof
> benefit from becoming instances automatically - but in those command
> cases, one always has the opportunity to explicitly add them with
> Existing Instance, so the automatic aspect there is just a small
> convenience, right?

We are certainly relying on this in our Coq development, where we will
often have things like

Section Foo.
Context (f: T1 -> T2) `{Proper (equiv ==> equiv) f}.

(* Now rewriting with equivalences below [f] just works.
End Foo.

Having to give a name to the [Proper] instance, and then doing an
explicit "Local Existing Instance", sounds rather cumbersome.

Kind regards,
Ralf


  • Re: [Coq-Club] question about Existing Class, Ralf Jung, 07/04/2016

Archive powered by MHonArc 2.6.18.

Top of Page