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
d7732dcb
Commit
d7732dcb
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation with Coq 8.10 (which has a weaker `lia`).
parent
9782eda9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/list_numbers.v
+3
-2
3 additions, 2 deletions
theories/list_numbers.v
with
3 additions
and
2 deletions
theories/list_numbers.v
+
3
−
2
View file @
d7732dcb
...
...
@@ -148,7 +148,8 @@ Section seqZ.
Proof
.
intros
.
unfold
seqZ
.
rewrite
Z2Nat
.
inj_add
,
seq_app
,
fmap_app
by
done
.
f_equal
.
rewrite
Nat
.
add_comm
,
<-!
fmap_add_seq
,
<-
list_fmap_compose
.
apply
list_fmap_ext
;
naive_solver
auto
with
lia
.
apply
list_fmap_ext
;
[|
done
];
intros
j
;
simpl
.
rewrite
Nat2Z
.
inj_add
,
Z2Nat
.
id
by
done
.
lia
.
Qed
.
Lemma
seqZ_S
m
i
:
seqZ
m
(
S
i
)
=
seqZ
m
i
++
[
m
+
i
]
.
...
...
@@ -162,7 +163,7 @@ Section seqZ.
Proof
.
rewrite
elem_of_list_lookup
.
setoid_rewrite
lookup_seqZ
.
split
;
[
naive_solver
lia
|]
.
exists
(
Z
.
to_nat
(
k
-
m
))
.
lia
.
exists
(
Z
.
to_nat
(
k
-
m
))
.
rewrite
Z2Nat
.
id
by
lia
.
lia
.
Qed
.
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