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
37962ec3
Commit
37962ec3
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
drop support for Coq 8.10
parent
78b6bc41
No related branches found
No related tags found
1 merge request
!342
drop support for Coq 8.10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-7
1 addition, 7 deletions
.gitlab-ci.yml
README.md
+1
-1
1 addition, 1 deletion
README.md
coq-stdpp.opam
+1
-1
1 addition, 1 deletion
coq-stdpp.opam
theories/list_numbers.v
+6
-7
6 additions, 7 deletions
theories/list_numbers.v
with
9 additions
and
16 deletions
.gitlab-ci.yml
+
1
−
7
View file @
37962ec3
...
@@ -77,14 +77,8 @@ build-coq.8.12.2:
...
@@ -77,14 +77,8 @@ build-coq.8.12.2:
DENY_WARNINGS
:
"
1"
DENY_WARNINGS
:
"
1"
build-coq.8.11.2
:
build-coq.8.11.2
:
<<
:
*template
variables
:
OPAM_PINS
:
"
coq
version
8.11.2"
DENY_WARNINGS
:
"
1"
build-coq.8.10.2
:
<<
:
*template
<<
:
*template
<<
:
*branches_and_mr
<<
:
*branches_and_mr
variables
:
variables
:
OPAM_PINS
:
"
coq
version
8.1
0
.2"
OPAM_PINS
:
"
coq
version
8.1
1
.2"
DENY_WARNINGS
:
"
1"
DENY_WARNINGS
:
"
1"
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
37962ec3
...
@@ -45,7 +45,7 @@ Notably:
...
@@ -45,7 +45,7 @@ Notably:
This version is known to compile with:
This version is known to compile with:
-
Coq version
8.10.2 /
8.11.2 / 8.12.2 / 8.13.2 / 8.14.1
-
Coq version 8.11.2 / 8.12.2 / 8.13.2 / 8.14.1
## Installing via opam
## Installing via opam
...
...
This diff is collapsed.
Click to expand it.
coq-stdpp.opam
+
1
−
1
View file @
37962ec3
...
@@ -33,7 +33,7 @@ tags: [
...
@@ -33,7 +33,7 @@ tags: [
]
]
depends: [
depends: [
"coq" { (>= "8.1
0.2
" & < "8.15~") | (= "dev") }
"coq" { (>= "8.1
1
" & < "8.15~") | (= "dev") }
]
]
build: [make "-j%{jobs}%"]
build: [make "-j%{jobs}%"]
...
...
This diff is collapsed.
Click to expand it.
theories/list_numbers.v
+
6
−
7
View file @
37962ec3
...
@@ -321,12 +321,11 @@ Section Z_little_endian.
...
@@ -321,12 +321,11 @@ Section Z_little_endian.
rewrite
orb_false_l
.
f_equal
.
lia
.
rewrite
orb_false_l
.
f_equal
.
lia
.
Qed
.
Qed
.
(* TODO: replace the calls to [nia] by [lia] after dropping support for Coq 8.10.2. *)
Lemma
little_endian_to_Z_to_little_endian
m
n
z
:
Lemma
little_endian_to_Z_to_little_endian
m
n
z
:
0
≤
n
→
0
≤
m
→
0
≤
n
→
0
≤
m
→
little_endian_to_Z
n
(
Z_to_little_endian
m
n
z
)
=
z
`
mod
`
2
^
(
m
*
n
)
.
little_endian_to_Z
n
(
Z_to_little_endian
m
n
z
)
=
z
`
mod
`
2
^
(
m
*
n
)
.
Proof
.
Proof
.
intros
?
Hm
.
rewrite
<-
Z
.
land_ones
by
n
ia
.
intros
?
Hm
.
rewrite
<-
Z
.
land_ones
by
l
ia
.
revert
z
.
revert
z
.
induction
m
as
[|
m
?
IH
|]
using
(
Z_succ_pred_induction
0
);
intros
z
;
[..|
lia
]
.
induction
m
as
[|
m
?
IH
|]
using
(
Z_succ_pred_induction
0
);
intros
z
;
[..|
lia
]
.
{
Z
.
bitwise
.
by
rewrite
andb_false_r
.
}
{
Z
.
bitwise
.
by
rewrite
andb_false_r
.
}
...
@@ -335,10 +334,10 @@ Section Z_little_endian.
...
@@ -335,10 +334,10 @@ Section Z_little_endian.
rewrite
Z
.
land_spec
,
Z
.
lor_spec
,
Z
.
shiftl_spec
,
!
Z
.
land_spec
by
lia
.
rewrite
Z
.
land_spec
,
Z
.
lor_spec
,
Z
.
shiftl_spec
,
!
Z
.
land_spec
by
lia
.
rewrite
(
Z_ones_spec
n
z'
)
by
lia
.
case_bool_decide
.
rewrite
(
Z_ones_spec
n
z'
)
by
lia
.
case_bool_decide
.
-
rewrite
andb_true_r
,
(
Z
.
testbit_neg_r
_
(
z'
-
n
)),
orb_false_r
by
lia
.
simpl
.
-
rewrite
andb_true_r
,
(
Z
.
testbit_neg_r
_
(
z'
-
n
)),
orb_false_r
by
lia
.
simpl
.
by
rewrite
Z_ones_spec
,
bool_decide_true
,
andb_true_r
by
n
ia
.
by
rewrite
Z_ones_spec
,
bool_decide_true
,
andb_true_r
by
l
ia
.
-
rewrite
andb_false_r
,
orb_false_l
.
-
rewrite
andb_false_r
,
orb_false_l
.
rewrite
Z
.
shiftr_spec
by
lia
.
f_equal
;
[
f_equal
;
lia
|]
.
rewrite
Z
.
shiftr_spec
by
lia
.
f_equal
;
[
f_equal
;
lia
|]
.
rewrite
!
Z_ones_spec
by
n
ia
.
apply
bool_decide_iff
.
lia
.
rewrite
!
Z_ones_spec
by
l
ia
.
apply
bool_decide_iff
.
lia
.
Qed
.
Qed
.
Lemma
Z_to_little_endian_length
m
n
z
:
Lemma
Z_to_little_endian_length
m
n
z
:
...
@@ -368,11 +367,11 @@ Section Z_little_endian.
...
@@ -368,11 +367,11 @@ Section Z_little_endian.
0
≤
little_endian_to_Z
n
bs
<
2
^
(
Z
.
of_nat
(
length
bs
)
*
n
)
.
0
≤
little_endian_to_Z
n
bs
<
2
^
(
Z
.
of_nat
(
length
bs
)
*
n
)
.
Proof
.
Proof
.
intros
?
.
induction
1
as
[|
b
bs
Hb
?
IH
];
[
done
|];
simpl
.
intros
?
.
induction
1
as
[|
b
bs
Hb
?
IH
];
[
done
|];
simpl
.
apply
Z_bounded_iff_bits_nonneg'
;
[
n
ia
|..]
.
apply
Z_bounded_iff_bits_nonneg'
;
[
l
ia
|..]
.
{
apply
Z
.
lor_nonneg
.
split
;
[
lia
|]
.
apply
Z
.
shiftl_nonneg
.
lia
.
}
{
apply
Z
.
lor_nonneg
.
split
;
[
lia
|]
.
apply
Z
.
shiftl_nonneg
.
lia
.
}
intros
z'
?
.
rewrite
Z
.
lor_spec
.
intros
z'
?
.
rewrite
Z
.
lor_spec
.
rewrite
Z_bounded_iff_bits_nonneg'
in
Hb
by
lia
.
rewrite
Z_bounded_iff_bits_nonneg'
in
Hb
by
lia
.
rewrite
Hb
,
orb_false_l
,
Z
.
shiftl_spec
by
n
ia
.
rewrite
Hb
,
orb_false_l
,
Z
.
shiftl_spec
by
l
ia
.
apply
(
Z_bounded_iff_bits_nonneg'
(
Z
.
of_nat
(
length
bs
)
*
n
));
n
ia
.
apply
(
Z_bounded_iff_bits_nonneg'
(
Z
.
of_nat
(
length
bs
)
*
n
));
l
ia
.
Qed
.
Qed
.
End
Z_little_endian
.
End
Z_little_endian
.
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