Skip to content

Commit

Permalink
adapt to mc#1256
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Nov 25, 2024
1 parent 7c12c63 commit 2a28b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions theories/normedtype.v
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ Proof.
apply/seteqP; split=> [A [e/= e0 reA]|_/= [A [e/= e0 reA <-]]].
exists (-%R @` A).
exists e => // x/= rxe xr; exists (- x)%R; rewrite ?opprK//.
by apply: reA; rewrite ?eqr_opp//= opprK addrC distrC.
by apply: reA; rewrite ?(@eqr_opp R)//= opprK addrC distrC.
rewrite image_comp (_ : _ \o _ = idfun) ?image_id// funeqE => x/=.
by rewrite opprK.
exists e => //= x/=; rewrite -opprD normrN => axe xa.
exists (- x)%R; rewrite ?opprK//; apply: reA; rewrite ?eqr_oppLR//=.
exists (- x)%R; rewrite ?opprK//; apply: reA; rewrite ?(@eqr_oppLR R)//=.
by rewrite opprK.
Qed.

Expand Down
2 changes: 1 addition & 1 deletion theories/showcase/summability.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ by move=> A B /=; exists (A `|` B) => P /=; rewrite fsubUset => /andP[].
Qed.

Definition partial_sum {I : choiceType} {R : zmodType}
(x : I -> R) (A : {fset I}) : R := \sum_(i : A) x (val i).
(x : I -> R) (A : {fset I}) : R := (\sum_(i : A) x (val i)).

Definition sum (I : choiceType) {K : numDomainType} {R : normedModType K}
(x : I -> R) : R := lim (partial_sum x @ totally).
Expand Down

0 comments on commit 2a28b10

Please sign in to comment.