Skip to content
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
5 changes: 3 additions & 2 deletions theories/schutte/ssete9.v
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ Qed.

Lemma f_spec_simp1 f n: (forall n, ~~odd n -> f n = f_spec f n)
-> f (n.*2.+2) = n.
Proof. by move => h; rewrite f_spec_simp //= ?uphalf_double // odd_double. Qed.

Proof.
by move=> h; rewrite [LHS]f_spec_simp//= ?uphalf_double// odd_double.
Qed.

Lemma f_spec_simp2 f n: (forall n, f n = f_spec f n) -> f(n.*2.+3) = n.
Proof.
Expand Down
2 changes: 1 addition & 1 deletion theories/stern/fibm.v
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ rewrite /DE_eq6; move => [n]; move: (DE_eq6_sol n) => [ea eb ec ed].
case; move => [-> ->].
+ rewrite addrAC - addrA addrAC addrA hu ea PoszD hu addrK PoszD addrK.
by rewrite PoszM subrr.
+ by rewrite - mulNr opprK sqrrN ! hu -PoszM -PoszD eb subrr.
+ by rewrite -mulNr opprK sqrrN !hu -PoszM -[X in X - _]PoszD eb subrr.
+ by rewrite sqrrN -mulrN opprK ! hu -PoszM -PoszD ec addnC PoszD addrK subrr.
+ rewrite !sqrrN mulrN !opprK mulNr - addrA addrACA - opprD !hu.
by rewrite - PoszM -PoszD ed -PoszD subrr.
Expand Down
2 changes: 1 addition & 1 deletion theories/stern/stern.v
Original file line number Diff line number Diff line change
Expand Up @@ -15,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.0.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.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.1.0-coq-8.18)

Hiding binding of key N to nat_scope
Import GRing.Theory Num.Theory.
Import PrimeDecompAux.

Expand All @@ -25,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.0.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.1.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.0.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.1.0-coq-8.18)

Hiding binding of key N to N_scope


Module Stern.
Expand Down Expand Up @@ -979,7 +979,7 @@
rewrite floor_sum opprD (addrCA (floorq _)) - (opprB _ y) !mulz2 addrK.
have -> : (1 + (- (1) - y + (- (1) - y))) = (- (1 + y + y)).
by rewrite !addrA addrN add0r - !opprD (addrC y).
by rewrite (addrA 1 y) opprB intr_N addKr invrN opprK invrK.
by rewrite (addrA 1 y) opprB intr_N addKr (invrN x) opprK invrK.
Qed.

Lemma Sn_0: Sn 0 = 1. Proof. by []. Qed.
Expand Down
Loading