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
719c409c
Commit
719c409c
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
prove that Skip is atomic
parent
7a5a1733
No related branches found
No related tags found
No related merge requests found
Pipeline
#43448
passed
4 years ago
Stage: build
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/lang/tactics.v
+18
-1
18 additions, 1 deletion
theories/lang/tactics.v
with
18 additions
and
1 deletion
theories/lang/tactics.v
+
18
−
1
View file @
719c409c
...
...
@@ -157,7 +157,7 @@ Definition is_atomic (e: expr) : bool :=
Lemma
is_atomic_correct
e
:
is_atomic
e
→
Atomic
WeaklyAtomic
(
to_expr
e
)
.
Proof
.
intros
He
.
apply
ectx_language_atomic
.
-
intros
σ
e'
σ'
ef
.
-
intros
σ
ef
e'
σ'
.
destruct
e
;
simpl
;
try
done
;
repeat
(
case_match
;
try
done
);
inversion
1
;
try
(
apply
val_irreducible
;
rewrite
?language
.
to_of_val
;
naive_solver
eauto
);
[]
.
rewrite
-
[
stuck_term
](
fill_empty
)
.
apply
stuck_irreducible
.
...
...
@@ -202,6 +202,23 @@ Ltac solve_atomic :=
end
.
Hint
Extern
0
(
Atomic
_
_)
=>
solve_atomic
:
typeclass_instances
.
Global
Instance
skip_atomic
:
Atomic
WeaklyAtomic
Skip
.
Proof
.
apply
strongly_atomic_atomic
,
ectx_language_atomic
.
-
inversion
1
.
naive_solver
.
-
apply
ectxi_language_sub_redexes_are_values
.
intros
[]
*
Hskip
;
try
naive_solver
.
+
inversion
Hskip
.
simpl
.
rewrite
decide_left
.
eauto
.
+
inversion
Hskip
.
rename
select
([
Lit
_]
=
_)
into
Hargs
.
assert
(
length
[
Lit
LitPoison
]
=
1
%
nat
)
as
Hlen
by
done
.
move
:
Hlen
.
rewrite
Hargs
.
rewrite
app_length
fmap_length
/=.
rename
select
(
list
val
)
into
vl
.
rename
select
(
list
expr
)
into
el
.
destruct
vl
;
last
first
.
{
simpl
.
intros
.
exfalso
.
lia
.
}
destruct
el
;
last
first
.
{
simpl
.
intros
.
exfalso
.
lia
.
}
simpl
in
*.
intros
_
.
inversion
Hargs
.
eauto
.
Qed
.
(** Substitution *)
Ltac
simpl_subst
:=
unfold
subst_v
;
simpl
;
...
...
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