Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon Spies
examples
Commits
d4c7170c
Commit
d4c7170c
authored
May 20, 2018
by
Ralf Jung
Browse files
bump iris; small rename fix needed
parent
9c9943a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
opam
View file @
d4c7170c
...
...
@@ -9,6 +9,6 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris_examples"]
depends: [
"coq-iris" { (= "dev.2018-0
4-27.2.1ab890fc
") | (= "dev") }
"coq-iris" { (= "dev.2018-0
5-17.0.463474fb
") | (= "dev") }
"coq-autosubst" { = "dev.coq86" }
]
theories/lecture_notes/ccounter.v
View file @
d4c7170c
...
...
@@ -43,7 +43,7 @@ Section ccounter.
Lemma
is_ccounter_op
γ₁
γ₂
ℓ
q1
q2
(
n1
n2
:
nat
)
:
is_ccounter
γ₁
γ₂
ℓ
(
q1
+
q2
)
(
n1
+
n2
)%
nat
⊣
⊢
is_ccounter
γ₁
γ₂
ℓ
q1
n1
∗
is_ccounter
γ₁
γ₂
ℓ
q2
n2
.
Proof
.
apply
uPred
.
equiv_spec
;
split
;
rewrite
/
is_ccounter
fra
g
_auth_op
own_op
.
apply
uPred
.
equiv_spec
;
split
;
rewrite
/
is_ccounter
fra
c
_auth_
frag_
op
own_op
.
-
iIntros
"[? #?]"
.
iFrame
"#"
;
iFrame
.
-
iIntros
"[[? #?] [? _]]"
.
...
...
@@ -128,4 +128,4 @@ Section ccounter.
simplify_eq
.
iApply
"HΦ"
.
iFrame
;
iFrame
"#"
.
Qed
.
End
ccounter
.
\ No newline at end of file
End
ccounter
.
theories/lecture_notes/coq_intro_example_2.v
View file @
d4c7170c
...
...
@@ -593,7 +593,7 @@ Section ccounter.
Lemma
is_ccounter_op
γ
ℓ
q1
q2
(
n1
n2
:
nat
)
:
is_ccounter
γ
ℓ
(
q1
+
q2
)
(
n1
+
n2
)%
nat
⊣
⊢
is_ccounter
γ
ℓ
q1
n1
∗
is_ccounter
γ
ℓ
q2
n2
.
Proof
.
apply
uPred
.
equiv_spec
;
split
;
rewrite
/
is_ccounter
fra
g
_auth_op
own_op
.
apply
uPred
.
equiv_spec
;
split
;
rewrite
/
is_ccounter
fra
c
_auth_
frag_
op
own_op
.
-
iIntros
"[? #?]"
.
iFrame
"#"
;
iFrame
.
-
iIntros
"[[? #?] [? _]]"
.
...
...
@@ -655,4 +655,4 @@ Section ccounter.
iMod
(
"Hclose"
with
"[Hpt Hγ]"
)
as
"_"
;
[
iNext
;
iExists
n
;
by
iFrame
|].
iApply
"HΦ"
;
iModIntro
.
iFrame
"Hown #"
;
done
.
Qed
.
End
ccounter
.
\ No newline at end of file
End
ccounter
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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