Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
ccd42ca7
Commit
ccd42ca7
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Avoid mentioning unfolded version of `fresh_locs` in proof.
parent
92eaea66
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/locations.v
+8
-12
8 additions, 12 deletions
theories/heap_lang/locations.v
with
8 additions
and
12 deletions
theories/heap_lang/locations.v
+
8
−
12
View file @
ccd42ca7
...
@@ -29,20 +29,16 @@ Proof. destruct l; rewrite /loc_add /=; f_equal; lia. Qed.
...
@@ -29,20 +29,16 @@ Proof. destruct l; rewrite /loc_add /=; f_equal; lia. Qed.
Instance
loc_add_inj
l
:
Inj
eq
eq
(
loc_add
l
)
.
Instance
loc_add_inj
l
:
Inj
eq
eq
(
loc_add
l
)
.
Proof
.
destruct
l
;
rewrite
/
Inj
/
loc_add
/=
;
intros
;
simplify_eq
;
lia
.
Qed
.
Proof
.
destruct
l
;
rewrite
/
Inj
/
loc_add
/=
;
intros
;
simplify_eq
;
lia
.
Qed
.
Definition
fresh_locs
(
g
:
gset
loc
)
(
n
:
Z
)
:
loc
:=
Definition
fresh_locs
(
ls
:
gset
loc
)
(
n
:
Z
)
:
loc
:=
{|
loc_car
:=
set_fold
(
λ
k
r
,
(
1
+
loc_car
k
)
`
max
`
r
)
%
Z
1
%
Z
g
|}
.
{|
loc_car
:=
set_fold
(
λ
k
r
,
(
1
+
loc_car
k
)
`
max
`
r
)
%
Z
1
%
Z
ls
|}
.
Lemma
fresh_locs_fresh
g
n
i
:
Lemma
fresh_locs_fresh
ls
n
i
:
(
0
≤
i
)
%
Z
→
(
i
<
n
)
%
Z
→
(
fresh_locs
g
n
)
+
ₗ
i
∉
g
.
(
0
≤
i
)
%
Z
→
(
i
<
n
)
%
Z
→
fresh_locs
ls
n
+
ₗ
i
∉
ls
.
Proof
.
Proof
.
rewrite
/
fresh_locs
/
loc_add
/=
;
intros
Hil
_
Hf
;
clear
n
.
intros
Hi
_
.
cut
(
∀
l
,
l
∈
ls
→
loc_car
l
<
loc_car
(
fresh_locs
ls
n
)
+
i
)
%
Z
.
cut
(
∀
x
,
x
∈
g
→
{
intros
help
Hf
%
help
.
simpl
in
*.
lia
.
}
loc_car
x
<
set_fold
(
λ
k
r
,
((
1
+
loc_car
k
)
`
max
`
r
)
%
Z
)
1
%
Z
g
)
%
Z
.
apply
(
set_fold_ind_L
(
λ
r
ls
,
∀
l
,
l
∈
ls
→
(
loc_car
l
<
r
+
i
)
%
Z
));
{
intros
Hlem
;
apply
Hlem
in
Hf
;
simpl
in
*
;
lia
.
}
set_solver
by
eauto
with
lia
.
clear
Hf
.
eapply
(
set_fold_ind_L
(
λ
z
g
,
∀
x
:
loc
,
x
∈
g
→
(
loc_car
x
<
z
)
%
Z
));
try
set_solver
by
eauto
with
lia
.
Qed
.
Qed
.
Global
Opaque
fresh_locs
.
Global
Opaque
fresh_locs
.
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