Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Refinedrust Dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Lennard Gäher
Refinedrust Dev
Commits
96298cd0
Unverified
Commit
96298cd0
authored
1 year ago
by
Lennard Gäher
Browse files
Options
Downloads
Patches
Plain Diff
provide tactic for apply_update
parent
9dd74f4b
No related branches found
No related tags found
1 merge request
!10
Various bug fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/rust_typing/manual.v
+12
-2
12 additions, 2 deletions
theories/rust_typing/manual.v
with
12 additions
and
2 deletions
theories/rust_typing/manual.v
+
12
−
2
View file @
96298cd0
...
...
@@ -156,8 +156,8 @@ Section updateable_rules.
typed_array_access
updateable_
π
updateable_E
updateable_L
l
off
st
lt
r
k
(
λ
L2
rt2
ty2
len2
iml2
rs2
k2
rte
lte
re
,
l
◁ₗ
[
updateable_
π
,
k2
]
#
rs2
@
ArrayLtype
ty2
len2
iml2
-
∗
(
l
offsetst
{
st
}
ₗ
off
)
◁ₗ
[
updateable_
π
,
k2
]
re
@
lte
-
∗
updateable_core
updateable_
π
updateable_E
L2
))
-
∗
P
.
updateable_core
updateable_
π
updateable_E
L2
))
⊢
P
.
Proof
.
iIntros
"HT"
.
unshelve
iApply
add_updateable
;
first
apply
_.
...
...
@@ -180,6 +180,8 @@ Ltac add_updateable :=
unshelve
notypeclasses
refine
(
tac_fast_apply
(
add_updateable
P
)
_
);
[
apply
_
|
apply
_
|
]
end
.
Tactic
Notation
"apply_update"
uconstr
(
H
)
:=
refine
(
tac_fast_apply
H
_
).
Section
test
.
Context
`
{!
typeGS
Σ
}
.
...
...
@@ -193,6 +195,14 @@ Section test.
unshelve
iApply
(
updateable_typed_array_access
l
off
st
).
idtac
.
Abort
.
Lemma
typed_s_updateable
π
E
L
s
rf
R
ϝ
(
l
:
loc
)
(
off
:
Z
)
(
st
:
syn_type
)
:
⊢
typed_stmt
π
E
L
s
rf
R
ϝ
.
Proof
.
iStartProof
.
unshelve
apply_update
(
updateable_typed_array_access
l
off
st
).
idtac
.
Abort
.
End
test
.
Lemma
tac_typed_val_expr_bind
'
`
{!
typeGS
Σ
}
π
E
L
K
e
T
:
...
...
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