This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Inductive Hello := World | Bye.

View file

@ -0,0 +1,3 @@
(coq.theory
(name A))

View file

@ -0,0 +1,4 @@
From A Require Import a.
Check Hello.

View file

@ -0,0 +1,3 @@
(coq.theory
(name B)
(theories A))

View file

@ -0,0 +1,4 @@
(coq.theory
(name C)
(package C)
(theories B))

View file

@ -0,0 +1,2 @@
(lang dune 3.2)
(using coq 0.3)

View file

@ -0,0 +1,17 @@
Testing composition of theories with two private theories and a third public
theory. As expected, the private theories build, but the public theory fails
because a public theory cannot depend on a private theory.
$ dune build
Warning: Coq Language Versions lower than 0.8 have been deprecated in Dune
3.8 and will be removed in an upcoming Dune version.
Hint: To disable this warning, add the following to your dune-project file:
(warnings (deprecated_coq_lang_lt_08 disabled))
Hello
: Set
File "C/dune", line 4, characters 11-12:
4 | (theories B))
^
Theory "B" is private, it cannot be a dependency of a public theory. You need
to associate "B" to a package.
[1]