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
8af781b5
Commit
8af781b5
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Bump Iris.
parent
36ca289a
No related branches found
No related tags found
No related merge requests found
Pipeline
#74808
passed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coq-lambda-rust.opam
+1
-1
1 addition, 1 deletion
coq-lambda-rust.opam
theories/lang/proofmode.v
+9
-9
9 additions, 9 deletions
theories/lang/proofmode.v
with
10 additions
and
10 deletions
coq-lambda-rust.opam
+
1
−
1
View file @
8af781b5
...
...
@@ -13,7 +13,7 @@ the type system, and safety proof for some Rust libraries.
"""
depends: [
"coq-iris" { (= "dev.2022-
08-12.4.9245c
4c
0
") | (= "dev") }
"coq-iris" { (= "dev.2022-
11-29.1.c44ce
4c
9
") | (= "dev") }
]
build: [make "-j%{jobs}%"]
...
...
This diff is collapsed.
Click to expand it.
theories/lang/proofmode.v
+
9
−
9
View file @
8af781b5
...
...
@@ -11,7 +11,7 @@ Lemma tac_wp_value `{!lrustGS Σ} Δ E Φ e v :
envs_entails
Δ
(
Φ
v
)
→
envs_entails
Δ
(
WP
e
@
E
{{
Φ
}})
.
Proof
.
rewrite
envs_entails_unseal
=>
?
->
.
by
apply
wp_value
.
Qed
.
Ltac
wp_value_head
:=
eapply
tac_wp_value
;
[
iS
olve
TC
|
reduction
.
pm_prettify
]
.
Ltac
wp_value_head
:=
eapply
tac_wp_value
;
[
tc_s
olve
|
reduction
.
pm_prettify
]
.
Lemma
tac_wp_pure
`{
!
lrustGS
Σ
}
K
Δ
Δ'
E
e1
e2
φ
n
Φ
:
PureExec
φ
n
e1
e2
→
...
...
@@ -31,9 +31,9 @@ Tactic Notation "wp_pure" open_constr(efoc) :=
|
|
-
envs_entails
_
(
wp
?s
?E
?e
?Q
)
=>
reshape_expr
e
ltac
:(
fun
K
e'
=>
unify
e'
efoc
;
eapply
(
tac_wp_pure
K
);
[
simpl
;
iS
olve
TC
(* PureExec *)
[
simpl
;
tc_s
olve
(* PureExec *)
|
try
done
(* The pure condition for PureExec *)
|
iS
olve
TC
(* IntoLaters *)
|
tc_s
olve
(* IntoLaters *)
|
simpl_subst
;
try
wp_value_head
(* new goal *)
])
||
fail
"wp_pure: cannot find"
efoc
"in"
e
"or"
efoc
"is not a reduct"
|
_
=>
fail
"wp_pure: not a 'wp'"
...
...
@@ -56,7 +56,7 @@ Tactic Notation "wp_eq_loc" :=
lazymatch
goal
with
|
|
-
envs_entails
_
(
wp
?s
?E
?e
?Q
)
=>
reshape_expr
e
ltac
:(
fun
K
e'
=>
eapply
(
tac_wp_eq_loc
K
));
[
iS
olve
TC
|
iAssumptionCore
|
iAssumptionCore
|
simpl
;
try
wp_value_head
]
[
tc_s
olve
|
iAssumptionCore
|
iAssumptionCore
|
simpl
;
try
wp_value_head
]
|
_
=>
fail
"wp_pure: not a 'wp'"
end
.
...
...
@@ -186,7 +186,7 @@ Tactic Notation "wp_alloc" ident(l) "as" constr(H) constr(Hf) :=
[
reshape_expr
e
ltac
:(
fun
K
e'
=>
eapply
(
tac_wp_alloc
K
_
_
_
H
Hf
))
|
fail
1
"wp_alloc: cannot find 'Alloc' in"
e
];
[
try
fast_done
|
iS
olve
TC
|
tc_s
olve
|
let
sz
:=
fresh
"sz"
in
let
Hsz
:=
fresh
"Hsz"
in
first
[
intros
l
sz
Hsz
|
fail
1
"wp_alloc:"
l
"not fresh"
];
(* If Hsz is "constant Z = nat", change that to an equation on nat and
...
...
@@ -214,7 +214,7 @@ Tactic Notation "wp_free" :=
[
reshape_expr
e
ltac
:(
fun
K
e'
=>
eapply
(
tac_wp_free
K
))
|
fail
1
"wp_free: cannot find 'Free' in"
e
];
[
try
fast_done
|
iS
olve
TC
|
tc_s
olve
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦∗
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_free: cannot find"
l
"↦∗ ?"
|
pm_reflexivity
...
...
@@ -235,7 +235,7 @@ Tactic Notation "wp_read" :=
|
fail
1
"wp_read: cannot find 'Read' in"
e
];
[(
right
;
fast_done
)
||
(
left
;
fast_done
)
||
fail
"wp_read: order is neither Na2Ord nor ScOrd"
|
iS
olve
TC
|
tc_s
olve
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_read: cannot find"
l
"↦ ?"
|
simpl
;
try
wp_value_head
]
...
...
@@ -247,11 +247,11 @@ Tactic Notation "wp_write" :=
lazymatch
goal
with
|
|
-
envs_entails
_
(
wp
?s
?E
?e
?Q
)
=>
first
[
reshape_expr
e
ltac
:(
fun
K
e'
=>
eapply
(
tac_wp_write
K
);
[
iS
olve
TC
|..])
[
reshape_expr
e
ltac
:(
fun
K
e'
=>
eapply
(
tac_wp_write
K
);
[
tc_s
olve
|..])
|
fail
1
"wp_write: cannot find 'Write' in"
e
];
[(
right
;
fast_done
)
||
(
left
;
fast_done
)
||
fail
"wp_write: order is neither Na2Ord nor ScOrd"
|
iS
olve
TC
|
tc_s
olve
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_write: cannot find"
l
"↦ ?"
|
pm_reflexivity
...
...
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