Skip to Content.
Sympa Menu

coq-club - RE: [Coq-Club] Qualified imports

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

RE: [Coq-Club] Qualified imports


Chronological Thread 
  • From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: RE: [Coq-Club] Qualified imports
  • Date: Mon, 10 Aug 2015 10:24:52 +0000
  • Accept-language: de-DE, en-US

Dear Raghu,

maybe there is a more elegant way, but what I did sometimes in such cases is
to wrap it into a module like this:

Module L.
Require List.
Include List.
End L.

Print L.hd.

Best regards,

Michael


-----Original Message-----
From:
coq-club-request AT inria.fr

[mailto:coq-club-request AT inria.fr]
On Behalf Of N. Raghavendra
Sent: Sunday, August 09, 2015 10:08 PM
To:
coq-club AT inria.fr
Subject: [Coq-Club] Qualified imports

I am a Coq novice. I am looking for a way to

Require Import LongModuleName

so that instead of referring to a term foo in LongModuleName as
LongModuleName.foo, I can refer to it as LMN.foo. I think the Agda
equivalent is

import LongModuleName as LMN

How do I do this in Coq?

Thanks and cheers,
Raghu.

--
N. Raghavendra
<raghu AT hri.res.in>,
http://www.retrotexts.net/ Harish-Chandra Research Institute,
http://www.hri.res.in/

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928




Archive powered by MHonArc 2.6.18.

Top of Page