Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Adam
stdpp
Commits
59b248ed
Commit
59b248ed
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
adjust variable names and remove redundant scope
parent
8d8a0f0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/list_numbers.v
+6
-6
6 additions, 6 deletions
theories/list_numbers.v
with
6 additions
and
6 deletions
theories/list_numbers.v
+
6
−
6
View file @
59b248ed
...
@@ -73,8 +73,8 @@ Section seq.
...
@@ -73,8 +73,8 @@ Section seq.
by
rewrite
IH
,
Nat
.
add_succ_r
.
by
rewrite
IH
,
Nat
.
add_succ_r
.
Qed
.
Qed
.
Lemma
elem_of_seq
start
sz
x
:
Lemma
elem_of_seq
j
n
k
:
x
∈
seq
start
sz
↔
(
start
≤
x
<
start
+
sz
)
%
nat
.
k
∈
seq
j
n
↔
j
≤
k
<
j
+
n
.
Proof
.
rewrite
elem_of_list_In
,
in_seq
.
done
.
Qed
.
Proof
.
rewrite
elem_of_list_In
,
in_seq
.
done
.
Qed
.
Lemma
Forall_seq
(
P
:
nat
→
Prop
)
i
n
:
Lemma
Forall_seq
(
P
:
nat
→
Prop
)
i
n
:
...
@@ -156,13 +156,13 @@ Section seqZ.
...
@@ -156,13 +156,13 @@ Section seqZ.
intros
.
simpl
.
lia
.
intros
.
simpl
.
lia
.
Qed
.
Qed
.
Lemma
elem_of_seqZ
start
sz
x
:
Lemma
elem_of_seqZ
m
n
k
:
x
∈
seqZ
start
sz
↔
start
≤
x
<
start
+
sz
.
k
∈
seqZ
m
n
↔
m
≤
k
<
m
+
n
.
Proof
.
Proof
.
rewrite
elem_of_list_lookup
.
rewrite
elem_of_list_lookup
.
setoid_rewrite
lookup_seqZ
.
split
;
intros
.
setoid_rewrite
lookup_seqZ
.
split
;
intros
.
-
destruct
H
as
[
i
?]
.
lia
.
-
destruct
H
as
[
?
?]
.
lia
.
-
exists
(
Z
.
to_nat
(
x
-
start
))
.
lia
.
-
exists
(
Z
.
to_nat
(
k
-
m
))
.
lia
.
Qed
.
Qed
.
Lemma
Forall_seqZ
(
P
:
Z
→
Prop
)
m
n
:
Lemma
Forall_seqZ
(
P
:
Z
→
Prop
)
m
n
:
...
...
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