Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce Params.v file #71

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Generated Makefile
/Makefile.coq
/Makefile.coq.conf
Makefile.coq
Makefile.coq.conf

# Dune
_build

# Make dependencies
*.d
Expand Down
22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# -*- Makefile -*-
.PHONY: coq clean
all: Makefile.coq
@+$(MAKE) -f Makefile.coq all

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

Makefile.coq: Make.cfg
coq_makefile -f Make.cfg -o Makefile.coq
Makefile.coq: _CoqProject
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq

distclean:
rm -f Makefile.coq Makefile.coq.conf Makefile.coq.bak .coqdeps.d
force _CoqProject Makefile: ;

install:
$(MAKE) -f Makefile.coq install
%: Makefile.coq force
@+$(MAKE) -f Makefile.coq $@

.PHONY: all clean force
2 changes: 2 additions & 0 deletions Make.cfg → _CoqProject
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-R theories Param
-R src Param
-I src
src/debug.ml
Expand All @@ -6,3 +7,4 @@ src/relations.ml
src/declare_translation.ml
src/abstraction.mlg
src/paramcoq.mlpack
theories/Param.v
3 changes: 3 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(lang dune 2.5)
(using coq 0.2)
(name paramcoq)
13 changes: 5 additions & 8 deletions src/dune
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
(library
(name paramcoq)
(public_name coq.plugins.paramcoq)
(synopsis "Coq Plugin for Parametricity")
(flags :standard -warn-error -3)
(libraries coq.plugins.ltac))
(public_name coq-paramcoq.plugin)
(synopsis "Plugin for generating parametricity statements to perform refinement proofs")
(flags :standard -rectypes -w -9-27)
(libraries coq-core.plugins.ltac))

(rule
(targets abstraction.ml)
(deps (:pp-file abstraction.mlg) )
(action (run coqpp %{pp-file})))
(coq.pp (modules abstraction))
1 change: 1 addition & 0 deletions theories/Param.v
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Declare ML Module "paramcoq".
5 changes: 5 additions & 0 deletions theories/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(coq.theory
(name Param)
(package coq-paramcoq)
(synopsis "Plugin for generating parametricity statements to perform refinement proofs")
(libraries coq-paramcoq.plugin))