Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rodolphe Lepigre
Iris
Commits
61f3b3f5
Commit
61f3b3f5
authored
Oct 07, 2014
by
Filip Sieczkowski
Browse files
More README, renamed library to ModuRes
parent
c7b8538e
Changes
22
Hide whitespace changes
Inline
Side-by-side
.dir-locals.el
View file @
61f3b3f5
...
...
@@ -3,6 +3,6 @@
((
coq-mode
(
coq-load-path
(
rec
"lib/
recdom/"
"RecDom
"
))))
(
rec
"lib/
ModuRes/"
"ModuRes
"
))))
Makefile
View file @
61f3b3f5
...
...
@@ -2,7 +2,7 @@
## v # The Coq Proof Assistant ##
## <O___,, # INRIA - CNRS - LIX - LRI - PPS ##
## \VV/ # ##
## // # Makefile automagically generated by coq_makefile V8.4pl
3
##
## // # Makefile automagically generated by coq_makefile V8.4pl
4
##
#############################################################################
# WARNING
...
...
@@ -14,7 +14,7 @@
#
# This Makefile was generated by the command line :
# coq_makefile lib/
recdom
/ core_lang.v iris.v lang.v masks.v world_prop.v -R lib/
recdom/ RecDom
# coq_makefile lib/
ModuRes
/ core_lang.v iris.v lang.v masks.v world_prop.v -R lib/
ModuRes/ ModuRes -o Makefile
#
.DEFAULT_GOAL
:=
all
...
...
@@ -39,8 +39,8 @@ $(call includecmdwithout@,$(COQBIN)coqtop -config)
# #
##########################
COQLIBS
?=
-I
.
-R
lib/
recdom/ RecDom
COQDOCLIBS
?=
-R
lib/
recdom/ RecDom
COQLIBS
?=
-I
.
-R
lib/
ModuRes/ ModuRes
COQDOCLIBS
?=
-R
lib/
ModuRes/ ModuRes
##########################
# #
...
...
@@ -108,7 +108,7 @@ endif
# #
#######################################
all
:
./lib/recdom/ $(VOFILES)
all
:
$(VOFILES) ./lib/ModuRes/
spec
:
$(VIFILES)
...
...
@@ -142,7 +142,7 @@ beautify: $(VFILES:=.beautified)
@
echo
'Do not do "make clean" until you are sure that everything went well!'
@
echo
'If there were a problem, execute "for file in $$(find . -name \*.v.old -print); do mv $
${file}
$
${file%.old}
; done" in your shell/'
.PHONY
:
all opt byte archclean clean install userinstall depend html validate ./lib/
recdom
/
.PHONY
:
all opt byte archclean clean install userinstall depend html validate ./lib/
ModuRes
/
###################
# #
...
...
@@ -150,8 +150,8 @@ beautify: $(VFILES:=.beautified)
# #
###################
./lib/
recdom
/
:
cd
./lib/
recdom
/
;
$(MAKE)
all
./lib/
ModuRes
/
:
cd
./lib/
ModuRes
/
;
$(MAKE)
all
####################
# #
...
...
@@ -169,27 +169,27 @@ userinstall:
+
$(MAKE)
USERINSTALL
=
true install
install
:
install
-d
$(DSTROOT)$(COQLIBINSTALL)
/
RecDom
;
\
install
-d
$(DSTROOT)$(COQLIBINSTALL)
/
ModuRes
;
\
for
i
in
$(VOFILESINC)
;
do
\
install
-m
0644
$$
i
$(DSTROOT)$(COQLIBINSTALL)
/
RecDom
/
`
basename
$$
i
`
;
\
install
-m
0644
$$
i
$(DSTROOT)$(COQLIBINSTALL)
/
ModuRes
/
`
basename
$$
i
`
;
\
done
(
cd
./lib/
recdom
/
;
$(MAKE)
DSTROOT
=
$(DSTROOT)
INSTALLDEFAULTROOT
=
$(INSTALLDEFAULTROOT)
/./lib/
recdom
/
install
)
(
cd
./lib/
ModuRes
/
;
$(MAKE)
DSTROOT
=
$(DSTROOT)
INSTALLDEFAULTROOT
=
$(INSTALLDEFAULTROOT)
/./lib/
ModuRes
/
install
)
install-doc
:
install
-d
$(DSTROOT)$(COQDOCINSTALL)
/
RecDom
/html
install
-d
$(DSTROOT)$(COQDOCINSTALL)
/
ModuRes
/html
for
i
in
html/
*
;
do
\
install
-m
0644
$$
i
$(DSTROOT)$(COQDOCINSTALL)
/
RecDom
/
$$
i
;
\
install
-m
0644
$$
i
$(DSTROOT)$(COQDOCINSTALL)
/
ModuRes
/
$$
i
;
\
done
clean
:
rm
-f
$(VOFILES)
$(VIFILES)
$(GFILES)
$(VFILES:.v=.v.d)
$(VFILES:=.beautified)
$(VFILES:=.old)
rm
-f
all.ps all-gal.ps all.pdf all-gal.pdf all.glob
$(VFILES:.v=.glob)
$(VFILES:.v=.tex)
$(VFILES:.v=.g.tex)
all-mli.tex
-
rm
-rf
html mlihtml
(
cd
./lib/
recdom
/
;
$(MAKE)
clean
)
(
cd
./lib/
ModuRes
/
;
$(MAKE)
clean
)
archclean
:
rm
-f
*
.cmx
*
.o
(
cd
./lib/
recdom
/
;
$(MAKE)
archclean
)
(
cd
./lib/
ModuRes
/
;
$(MAKE)
archclean
)
printenv
:
@
$(COQBIN)
coqtop
-config
...
...
README.txt
View file @
61f3b3f5
...
...
@@ -53,14 +53,16 @@ CONTENTS
* masks.v introduces some lemmas about masks
* world_prop.v uses the
aforementioned
Coq library to construct the
domain
for Iris propositions
* world_prop.v uses the
ModuRes
Coq library to construct the
domain
for Iris propositions
* iris.v is the main file and contains the actual logic and the
proof of the rules for view shifts and Hoare triples
It uses a Coq library in lib/ by Sieczkowski et al. to solve the
recursive domain equation (see the paper for a reference).
The development uses ModuRes, a Coq library in by Sieczkowski et
al. to solve the recursive domain equation (see the paper for a
reference) and prove some of the standard separation logic rules. It
is located in the lib/ subdirectory.
REQUIREMENTS
...
...
core_lang.v
View file @
61f3b3f5
Require
Import
RecDom
.
PCM
.
Require
Import
ModuRes
.
PCM
.
Module
Type
CORE_LANG
.
Delimit
Scope
lang_scope
with
lang
.
...
...
iris.v
View file @
61f3b3f5
Require
Import
world_prop
core_lang
lang
masks
.
Require
Import
RecDom
.
PCM
RecDom
.
UPred
RecDom
.
BI
RecDom
.
PreoMet
RecDom
.
Finmap
.
Require
Import
ModuRes
.
PCM
ModuRes
.
UPred
ModuRes
.
BI
ModuRes
.
PreoMet
ModuRes
.
Finmap
.
Module
Iris
(
RL
:
PCM_T
)
(
C
:
CORE_LANG
).
...
...
@@ -215,6 +215,12 @@ Module Iris (RL : PCM_T) (C : CORE_LANG).
intros
w
n
r
;
simpl
;
unfold
const
;
reflexivity
.
Qed
.
Lemma
box_disj
p
q
:
□
(
p
∨
q
)
==
□
p
∨
□
q
.
Proof
.
intros
w
n
r
;
reflexivity
.
Qed
.
(** Ghost state ownership **)
Lemma
ownL_sc
(
u
t
:
option
RL
.
res
)
:
ownL
(
u
·
t
)%
pcm
==
ownL
u
*
ownL
t
.
...
...
lang.v
View file @
61f3b3f5
Require
Import
List
.
Require
Import
RecDom
.
PCM
.
Require
Import
ModuRes
.
PCM
.
Require
Import
core_lang
.
(******************************************************************)
...
...
lib/
recdom
/.dir-locals.el
→
lib/
ModuRes
/.dir-locals.el
View file @
61f3b3f5
...
...
@@ -3,6 +3,6 @@
((
coq-mode
(
coq-load-path
(
rec
"./"
"
RecDom
"
))))
(
rec
"./"
"
ModuRes
"
))))
lib/
recdom
/BI.v
→
lib/
ModuRes
/BI.v
View file @
61f3b3f5
File moved
lib/
recdom
/CBUltInst.v
→
lib/
ModuRes
/CBUltInst.v
View file @
61f3b3f5
File moved
lib/
recdom
/CSetoid.v
→
lib/
ModuRes
/CSetoid.v
View file @
61f3b3f5
File moved
lib/
recdom
/Constr.v
→
lib/
ModuRes
/Constr.v
View file @
61f3b3f5
File moved
lib/
recdom
/Finmap.v
→
lib/
ModuRes
/Finmap.v
View file @
61f3b3f5
File moved
lib/
recdom
/Makefile
→
lib/
ModuRes
/Makefile
View file @
61f3b3f5
...
...
@@ -2,7 +2,7 @@
## v # The Coq Proof Assistant ##
## <O___,, # INRIA - CNRS - LIX - LRI - PPS ##
## \VV/ # ##
## // # Makefile automagically generated by coq_makefile V8.4pl
3
##
## // # Makefile automagically generated by coq_makefile V8.4pl
4
##
#############################################################################
# WARNING
...
...
@@ -14,7 +14,7 @@
#
# This Makefile was generated by the command line :
# coq_makefile -R .
RecDom
BI.v CBUltInst.v CSetoid.v Constr.v Finmap.v MetricCore.v MetricRec.v PCBUltInst.v PCM.v Predom.v PreoMet.v TOTInst.v UPred.v -o Makefile
# coq_makefile -R .
ModuRes
BI.v CBUltInst.v CSetoid.v Constr.v Finmap.v MetricCore.v MetricRec.v PCBUltInst.v PCM.v Predom.v PreoMet.v TOTInst.v UPred.v -o Makefile
#
.DEFAULT_GOAL
:=
all
...
...
@@ -39,8 +39,8 @@ $(call includecmdwithout@,$(COQBIN)coqtop -config)
# #
##########################
COQLIBS
?=
-R
.
RecDom
COQDOCLIBS
?=
-R
.
RecDom
COQLIBS
?=
-R
.
ModuRes
COQDOCLIBS
?=
-R
.
ModuRes
##########################
# #
...
...
@@ -168,14 +168,14 @@ userinstall:
install
:
for
i
in
$(VOFILES)
;
do
\
install
-d
`
dirname
$(DSTROOT)$(COQLIBINSTALL)
/
RecDom
/
$$
i
`
;
\
install
-m
0644
$$
i
$(DSTROOT)$(COQLIBINSTALL)
/
RecDom
/
$$
i
;
\
install
-d
`
dirname
$(DSTROOT)$(COQLIBINSTALL)
/
ModuRes
/
$$
i
`
;
\
install
-m
0644
$$
i
$(DSTROOT)$(COQLIBINSTALL)
/
ModuRes
/
$$
i
;
\
done
install-doc
:
install
-d
$(DSTROOT)$(COQDOCINSTALL)
/
RecDom
/html
install
-d
$(DSTROOT)$(COQDOCINSTALL)
/
ModuRes
/html
for
i
in
html/
*
;
do
\
install
-m
0644
$$
i
$(DSTROOT)$(COQDOCINSTALL)
/
RecDom
/
$$
i
;
\
install
-m
0644
$$
i
$(DSTROOT)$(COQDOCINSTALL)
/
ModuRes
/
$$
i
;
\
done
clean
:
...
...
lib/
recdom
/MetricCore.v
→
lib/
ModuRes
/MetricCore.v
View file @
61f3b3f5
File moved
lib/
recdom
/MetricRec.v
→
lib/
ModuRes
/MetricRec.v
View file @
61f3b3f5
File moved
lib/
recdom
/PCBUltInst.v
→
lib/
ModuRes
/PCBUltInst.v
View file @
61f3b3f5
File moved
lib/
recdom
/PCM.v
→
lib/
ModuRes
/PCM.v
View file @
61f3b3f5
File moved
lib/
recdom
/Predom.v
→
lib/
ModuRes
/Predom.v
View file @
61f3b3f5
File moved
lib/
recdom
/PreoMet.v
→
lib/
ModuRes
/PreoMet.v
View file @
61f3b3f5
File moved
lib/
recdom
/TOTInst.v
→
lib/
ModuRes
/TOTInst.v
View file @
61f3b3f5
File moved
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment