Skip to content

Instantly share code, notes, and snippets.

@bond15
Created October 19, 2022 15:33
Show Gist options
  • Save bond15/bbd33ce9023ec61a599f062c91a2fb36 to your computer and use it in GitHub Desktop.
Save bond15/bbd33ce9023ec61a599f062c91a2fb36 to your computer and use it in GitHub Desktop.
Coq module crap
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