Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
lambda-rust
Commits
d185a08c
There was a problem fetching the pipeline summary.
Commit
d185a08c
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Bump Iris.
parent
5f0a6f6d
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opam
+1
-1
1 addition, 1 deletion
opam
theories/lang/tactics.v
+6
-8
6 additions, 8 deletions
theories/lang/tactics.v
with
7 additions
and
9 deletions
opam
+
1
−
1
View file @
d185a08c
...
@@ -11,5 +11,5 @@ build: [make "-j%{jobs}%"]
...
@@ -11,5 +11,5 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
install: [make "install"]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/lrust'" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/lrust'" ]
depends: [
depends: [
"coq-iris" { (= "dev.2017-11-0
2
.0") | (= "dev") }
"coq-iris" { (= "dev.2017-11-0
4
.0") | (= "dev") }
]
]
This diff is collapsed.
Click to expand it.
theories/lang/tactics.v
+
6
−
8
View file @
d185a08c
...
@@ -144,7 +144,7 @@ Proof.
...
@@ -144,7 +144,7 @@ Proof.
-
induction
el
=>
//=.
f_equal
;
auto
.
-
induction
el
=>
//=.
f_equal
;
auto
.
Qed
.
Qed
.
Definition
atomic
(
e
:
expr
)
:
bool
:=
Definition
is_
atomic
(
e
:
expr
)
:
bool
:=
match
e
with
match
e
with
|
Read
(
ScOrd
|
Na2Ord
)
e
|
Alloc
e
=>
bool_decide
(
is_Some
(
to_val
e
))
|
Read
(
ScOrd
|
Na2Ord
)
e
|
Alloc
e
=>
bool_decide
(
is_Some
(
to_val
e
))
|
Write
(
ScOrd
|
Na2Ord
)
e1
e2
|
Free
e1
e2
=>
|
Write
(
ScOrd
|
Na2Ord
)
e1
e2
|
Free
e1
e2
=>
...
@@ -153,7 +153,7 @@ Definition atomic (e: expr) : bool :=
...
@@ -153,7 +153,7 @@ Definition atomic (e: expr) : bool :=
bool_decide
(
is_Some
(
to_val
e0
)
∧
is_Some
(
to_val
e1
)
∧
is_Some
(
to_val
e2
))
bool_decide
(
is_Some
(
to_val
e0
)
∧
is_Some
(
to_val
e1
)
∧
is_Some
(
to_val
e2
))
|
_
=>
false
|
_
=>
false
end
.
end
.
Lemma
atomic_correct
e
:
atomic
e
→
language
.
a
tomic
(
to_expr
e
)
.
Lemma
is_
atomic_correct
e
:
is_
atomic
e
→
A
tomic
(
to_expr
e
)
.
Proof
.
Proof
.
intros
He
.
apply
ectx_language_atomic
.
intros
He
.
apply
ectx_language_atomic
.
-
intros
σ
e'
σ'
ef
.
-
intros
σ
e'
σ'
ef
.
...
@@ -195,13 +195,11 @@ Hint Extern 10 (AsVal _) => solve_to_val : typeclass_instances.
...
@@ -195,13 +195,11 @@ Hint Extern 10 (AsVal _) => solve_to_val : typeclass_instances.
Ltac
solve_atomic
:=
Ltac
solve_atomic
:=
match
goal
with
match
goal
with
|
|
-
language
.
a
tomic
?e
=>
|
|
-
A
tomic
?e
=>
let
e'
:=
W
.
of_expr
e
in
change
(
language
.
a
tomic
(
W
.
to_expr
e'
));
let
e'
:=
W
.
of_expr
e
in
change
(
A
tomic
(
W
.
to_expr
e'
));
apply
W
.
atomic_correct
;
vm_compute
;
exact
I
apply
W
.
is_
atomic_correct
;
vm_compute
;
exact
I
end
.
end
.
Hint
Extern
0
(
language
.
atomic
_)
=>
solve_atomic
.
Hint
Extern
0
(
Atomic
_)
=>
solve_atomic
:
typeclass_instances
.
(* For the side-condition of elim_vs_pvs_wp_atomic *)
Hint
Extern
0
(
language
.
atomic
_)
=>
solve_atomic
:
typeclass_instances
.
(** Substitution *)
(** Substitution *)
Ltac
simpl_subst
:=
Ltac
simpl_subst
:=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment