Skip to content

Commit d0df5b0

Browse files
authored
Merge pull request rocq-community#71 from coq-community/theories
introduce Params.v file
2 parents 9f5882c + fa8d21e commit d0df5b0

File tree

7 files changed

+33
-20
lines changed

7 files changed

+33
-20
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Generated Makefile
2-
/Makefile.coq
3-
/Makefile.coq.conf
2+
Makefile.coq
3+
Makefile.coq.conf
4+
5+
# Dune
6+
_build
47

58
# Make dependencies
69
*.d

Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# -*- Makefile -*-
2-
.PHONY: coq clean
1+
all: Makefile.coq
2+
@+$(MAKE) -f Makefile.coq all
33

4-
coq:: Makefile.coq
5-
$(MAKE) -f Makefile.coq
4+
clean: Makefile.coq
5+
@+$(MAKE) -f Makefile.coq cleanall
6+
@rm -f Makefile.coq Makefile.coq.conf
67

7-
Makefile.coq: Make.cfg
8-
coq_makefile -f Make.cfg -o Makefile.coq
8+
Makefile.coq: _CoqProject
9+
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq
910

10-
distclean:
11-
rm -f Makefile.coq Makefile.coq.conf Makefile.coq.bak .coqdeps.d
11+
force _CoqProject Makefile: ;
1212

13-
install:
14-
$(MAKE) -f Makefile.coq install
13+
%: Makefile.coq force
14+
@+$(MAKE) -f Makefile.coq $@
15+
16+
.PHONY: all clean force

Make.cfg renamed to _CoqProject

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-R theories Param
12
-R src Param
23
-I src
34
src/debug.ml
@@ -6,3 +7,4 @@ src/relations.ml
67
src/declare_translation.ml
78
src/abstraction.mlg
89
src/paramcoq.mlpack
10+
theories/Param.v

dune-project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(lang dune 2.5)
2+
(using coq 0.2)
3+
(name paramcoq)

src/dune

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
(library
22
(name paramcoq)
3-
(public_name coq.plugins.paramcoq)
4-
(synopsis "Coq Plugin for Parametricity")
5-
(flags :standard -warn-error -3)
6-
(libraries coq.plugins.ltac))
3+
(public_name coq-paramcoq.plugin)
4+
(synopsis "Plugin for generating parametricity statements to perform refinement proofs")
5+
(flags :standard -rectypes -w -9-27)
6+
(libraries coq-core.plugins.ltac))
77

8-
(rule
9-
(targets abstraction.ml)
10-
(deps (:pp-file abstraction.mlg) )
11-
(action (run coqpp %{pp-file})))
8+
(coq.pp (modules abstraction))

theories/Param.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Declare ML Module "paramcoq".

theories/dune

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(coq.theory
2+
(name Param)
3+
(package coq-paramcoq)
4+
(synopsis "Plugin for generating parametricity statements to perform refinement proofs")
5+
(libraries coq-paramcoq.plugin))

0 commit comments

Comments
 (0)