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
Model registry
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
Iris
stdpp
Commits
0fb1c214
Commit
0fb1c214
authored
1 month ago
by
Kimaya Bedarkar
Browse files
Options
Downloads
Patches
Plain Diff
add lemmas about seq
parent
0dbb3948
No related branches found
No related tags found
1 merge request
!588
add lemmas about seq
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
stdpp/list_numbers.v
+11
-0
11 additions, 0 deletions
stdpp/list_numbers.v
with
13 additions
and
1 deletion
CHANGELOG.md
+
2
−
1
View file @
0fb1c214
...
...
@@ -12,7 +12,8 @@ API-breaking change is listed.
-
Rename
`map_filter_empty_iff`
to
`map_empty_filter`
and add
`map_empty_filter_1`
and
`map_empty_filter_2`
. (by Michael Sammler)
-
Add lemma about
`zip_with`
:
`lookup_zip_with_None`
and add lemmas for
`zip`
:
`length_zip`
,
`zip_nil_inv`
,
`lookup_zip_Some`
,
`lookup_zip_None`
. (by Kimaya Bedarkar)
`length_zip`
,
`zip_nil_inv`
,
`lookup_zip_Some`
,
`lookup_zip_None`
. (by Kimaya Bedarkar)
-
Add
`elem_of_seq`
and
`seq_nil`
. (by Kimaya Bedarkar)
The following
`sed`
script should perform most of the renaming
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
).
...
...
This diff is collapsed.
Click to expand it.
stdpp/list_numbers.v
+
11
−
0
View file @
0fb1c214
...
...
@@ -98,6 +98,16 @@ Section seq.
k
∈
seq
j
n
↔
j
≤
k
<
j
+
n
.
Proof
.
rewrite
elem_of_list_In
,
in_seq
.
done
.
Qed
.
Lemma
seq_nil
n
m
:
seq
n
m
=
[]
↔
m
=
0
.
Proof
.
by
induction
n
;
induction
m
.
Qed
.
Lemma
seq_subseteq
m
n1
n2
:
n1
≤
n2
→
seq
m
n1
⊆
seq
m
n2
.
Proof
.
by
intros
Hle
i
Hi
%
elem_of_seq
;
apply
elem_of_seq
;
lia
.
Qed
.
Lemma
Forall_seq
(
P
:
nat
→
Prop
)
i
n
:
Forall
P
(
seq
i
n
)
↔
∀
j
,
i
≤
j
<
i
+
n
→
P
j
.
Proof
.
rewrite
Forall_forall
.
setoid_rewrite
elem_of_seq
.
auto
with
lia
.
Qed
.
...
...
@@ -118,6 +128,7 @@ Section seq.
-
rewrite
take_nil
.
replace
(
m
`
min
`
0
)
with
0
by
lia
.
done
.
-
destruct
m
;
simpl
;
auto
with
f_equal
.
Qed
.
End
seq
.
(** ** Properties of the [seqZ] function *)
...
...
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