coq-club AT inria.fr
Subject: The Coq mailing list
List archive
[Coq-Club] Calling things from a parent module into another module as neat as possible
Chronological Thread
- From: Milad Ketabii <ketabii.math AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Calling things from a parent module into another module as neat as possible
- Date: Wed, 6 Jun 2018 15:50:58 +1000
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=ketabii.math AT gmail.com; spf=Pass smtp.mailfrom=ketabii.math AT gmail.com; spf=None smtp.helo=postmaster AT mail-vk0-f50.google.com
- Ironport-phdr: 9a23:eBsvxB1BJjE8dJnrsmDT+DRfVm0co7zxezQtwd8Zse0WKvad9pjvdHbS+e9qxAeQG9mDtrQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYwhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmiCkJOT0k/m/JlsN9l7hUrA67qhFl34LYfIOYOfxjda3dZ9MaQm9BU95WWSxABoOzdZYABPcEM+lGs4nyvUABrRq/BQKxA+7vySFHhmPs0qIh0uQhEBvK3Ak6ENISsHTZt9r1NKIIXuC0yKnE1ynMb/RT2Trk7oXDbxMvoemUUL5ubcbczVMjGgDFg1mKt4DpIj2Y2v4NvmSH6edrSPihhHQ9qw5rpzii3scshZfNhoIS0l3E8D92wIcxJdGhVk57YsKoHIJetyyaK4d6WMwiQ2ZvuCY1zr0Jp4S3czQNyJQi3xLfavqHfJaU4h/7SuqdPTN1iGhmdb+/nRq+71Wsx+PmWsS0zFpGti9FncPNtnAJ2RzT8M+HSv5l80eixzmPyxrc5fpFIUA1j6bbLoQuwqIwlpcIvkTDGzX5mETyjKOMakok/e2o5/z9Yrr6vp+cK5N0igbmP6syncy/GP00PRQKX2iG4uuxz6bj/E38QLVSlPI6iKjZsJbAJcQavKG1GQFV0pxwoyq4WjyhyZETmWQNBFNDYhOOyYbzaH/UJ/WtKPa7iljkszp3zvrHP/W1AZjRJ3LCkfHkdKp9w0FZwQs3i9tY4sQHWfk6PPvvVxqp55TjBRgjPlnsmre1OJBGzoobHFm3LOqcOaLWv0WP47t2ceaJbY4R/j36Lqp8vqK8vToCgVYYOJKR894PcnnhR6ZpJkyYZTznhdJTST5X7Dp7d/TjjRi5aRAWZ3u2WPhhtDQyCYbjE4SbA47w2PqO2yC0GpAQbWdDWAiB
Hi there!
I have a problem, for which a solution already is there. However, I am looking for a better way of accomplishing the task.
Here, I will first explain the problem itself, as much simply as possible. Then I mention the crazy solution which I have. But I hope someone would kindly hint at a superior approach.
The problem and a crazy solution:
I have a formalisation which I intend to break into a base file and some modules, each of which calls this base in.
The base formalisation has variables. These variables are used inside each module as well. We finally would extract executable program into Haskell.
The base is constituted of some sections. To make the variables in the base file available to the modules (without instantiating them), I have made the out-most part of the base file as a module, rather than a section. This prevents errors that I would get by trying to compile the modules.
However, the hassle is that I need to put the name of the base module in front of every variable, definition, and function which are celled in the modules.
Question:
How can I make a base file and call it into the modules which use that base, without being forced to put the name of the base in front of every thing called from the base (and used inside the modules)?
thanks in advance for your help,
Milad
- [Coq-Club] Calling things from a parent module into another module as neat as possible, Milad Ketabii, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Sylvain Boulmé, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Milad Ketabii, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Pierre Courtieu, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Ralf Jung, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Pierre Courtieu, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Milad Ketabii, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Pierre Courtieu, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Ralf Jung, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Stefan Monnier, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Pierre Courtieu, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Milad Ketabii, 06/06/2018
- Re: [Coq-Club] Calling things from a parent module into another module as neat as possible, Sylvain Boulmé, 06/06/2018
Archive powered by MHonArc 2.6.18.