Created
October 19, 2022 15:33
-
-
Save bond15/bbd33ce9023ec61a599f062c91a2fb36 to your computer and use it in GitHub Desktop.
Coq module crap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module Type AT. | |
Parameter x : nat. | |
End AT. | |
Module A (Import a : AT). | |
Include a. | |
Definition y := a.x. | |
End A. | |
Print A. | |
Module AP : AT. | |
Definition x := 42. | |
End AP. | |
Module A' := A AP. | |
Print A'. | |
Print A'.y. | |
Print A'.x. | |
Module Type Aall (Import a : AT). | |
Include (A a). | |
End Aall. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment