Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to https://github.com/math-comp/math-comp/pull/1343 #23

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions theories/numbers/ssete7.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Bourbaki aux fime
*)

From Coq Require Import Setoid.
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype.
From mathcomp Require Import ssrnat seq path div.
From mathcomp Require Import fintype tuple finfun bigop finset binomial.
Expand Down Expand Up @@ -85,7 +86,7 @@
if n is n'.+1 then if n' is n''.+1 then n' * (der_rec n'' + der_rec n')
else 0 else 1.

Definition derange n := nosimpl der_rec n.

Check warning on line 89 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 89 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 89 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Lemma derange0: derange 0 = 1. Proof. by []. Qed.

Expand Down Expand Up @@ -139,7 +140,7 @@
| _ .+1, 0 => 0
end.

Definition stirling2 := nosimpl stirling2_rec.

Check warning on line 143 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 143 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 143 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.
Definition nbsurj n m := (stirling2 n m) * m`!.

Notation "''St' ( n , m )" := (stirling2 n m)
Expand Down Expand Up @@ -240,7 +241,7 @@
| _ .+1, 0 => 0
end.

Definition stirling1 := nosimpl stirling1_rec.

Check warning on line 244 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 244 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 244 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Notation "''So' ( n , m )" := (stirling1 n m)
(at level 8, format "''So' ( n , m )") : nat_scope.
Expand Down Expand Up @@ -287,7 +288,7 @@
| _.+1, 0 => 1
end.

Definition euler := nosimpl euler_rec.

Check warning on line 291 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 291 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 291 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Notation "''Eu' ( n , m )" := (euler n m)
(at level 8, format "''Eu' ( n , m )") : nat_scope.
Expand Down Expand Up @@ -1395,7 +1396,7 @@

Lemma pascal11 n: \sum_(i < n.+1) 'C(n, i) = 2 ^ n.
Proof.
by rewrite (Pascal 1 1 n); apply: eq_bigr => i _ //; rewrite !exp1n !muln1.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1399 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.
Qed.

Lemma F24 n: n > 0 ->
Expand Down Expand Up @@ -1455,7 +1456,7 @@

Lemma F7_aux n: n ^ 3 = 6 * 'C(n, 3) + 6 * 'C(n, 2) + 'C(n, 1).
Proof.
elim:n => //n Hrec; rewrite - {1} addn1 Pascal 4! big_ord_recr big_ord0 /=.

Check warning on line 1459 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1459 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-8.19)

Reference Pascal is deprecated since mathcomp 2.3.0.

Check warning on line 1459 in theories/numbers/ssete7.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Reference Pascal is deprecated since mathcomp 2.3.0.
rewrite !exp1n expn0 expn1 !muln1 add0n /subn /= bin0 bin1 mul1n Hrec.
rewrite (_: 'C(3, 2) = 3) // !binS !mulnDr bin0 addnA; congr (_ + 1).
rewrite - 5!addnA (addnC ('C(n, 1))); congr (_ + (_ + (_ + _))).
Expand Down
7 changes: 6 additions & 1 deletion theories/ordinals/sset16a.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(* $Id: sset16a.v,v 1.2 2018/07/13 05:59:59 grimm Exp $ *)

From Coq Require Import BinNat.
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat div.

Check warning on line 8 in theories/ordinals/sset16a.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

Hiding binding of key N to N_scope

Check warning on line 8 in theories/ordinals/sset16a.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

Hiding binding of key N to N_scope

Set Implicit Arguments.
Unset Strict Implicit.
Expand All @@ -19,12 +19,17 @@
Module Nds.

(* Ancillary lemmas that sow equivalence of unary/ninary numbers *)


Lemma nat_of_add_bin b1 b2 : N.add b1 b2 = b1 + b2 :> nat.
Proof. by case: b1 b2 => [|p] [|q]; rewrite ?addn0 //= nat_of_add_pos. Qed.

Lemma NoB_add a b : N.add(bin_of_nat a) (bin_of_nat b) = bin_of_nat (a +b).
Proof.
by rewrite - (nat_of_binK (_ + _)%num) nat_of_add_bin !bin_of_natK.
Qed.

Lemma nat_of_mul_bin b1 b2 : N.mul b1 b2 = b1 * b2 :> nat.
Proof. by case: b1 b2 => [|p] [|q]; rewrite ?muln0 //= nat_of_mul_pos. Qed.

Lemma NoB_mul a b : N.mul (bin_of_nat a) (bin_of_nat b) = bin_of_nat (a * b).
Proof.
Expand Down
1 change: 1 addition & 0 deletions theories/sets/sset2.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

(* $Id: sset2.v,v 1.8 2018/09/04 07:58:00 grimm Exp $ *)

From Coq Require Import Setoid.
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat.
From gaia Require Export sset1.

Expand Down
1 change: 1 addition & 0 deletions theories/stern/stern.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

(* $Id: stern.v,v 1.6 2018/07/17 15:49:43 grimm Exp $ *)

From Coq Require BinPos.
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat.
From mathcomp Require Import seq choice fintype order bigop ssralg.
From mathcomp Require Import div ssrnum ssrint rat prime path binomial.
Expand All @@ -14,7 +15,7 @@
Unset Strict Implicit.
Unset Printing Implicit Defensive.

Import BinPos.

Check warning on line 18 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

Hiding binding of key N to nat_scope

Check warning on line 18 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

Hiding binding of key Z to int_scope

Check warning on line 18 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

Hiding binding of key N to nat_scope

Check warning on line 18 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

Hiding binding of key Z to int_scope
Import GRing.Theory Num.Theory.
Import PrimeDecompAux.

Expand All @@ -24,8 +25,8 @@
Warning: Hiding binding of key Z to int_scope
*)

Delimit Scope int_scope with Z.

Check warning on line 28 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

Hiding binding of key Z to Z_scope

Check warning on line 28 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

Hiding binding of key Z to Z_scope
Delimit Scope nat_scope with N.

Check warning on line 29 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.1.0-coq-8.18)

Hiding binding of key N to N_scope

Check warning on line 29 in theories/stern/stern.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.0.0-coq-8.18)

Hiding binding of key N to N_scope


Module Stern.
Expand Down
Loading