Metamath Proof Explorer


Theorem psrring

Description: The ring of power series is a ring. (Contributed by Mario Carneiro, 29-Dec-2014)

Ref Expression
Hypotheses psrring.s ⊢ S = I mPwSer R
psrring.i ⊢ φ → I ∈ V
psrring.r ⊢ φ → R ∈ Ring
Assertion psrring ⊢ φ → S ∈ Ring

Proof

Step Hyp Ref Expression
1 psrring.s ⊢ S = I mPwSer R
2 psrring.i ⊢ φ → I ∈ V
3 psrring.r ⊢ φ → R ∈ Ring
4 eqidd ⊢ φ → Base S = Base S
5 eqidd ⊢ φ → + S = + S
6 eqidd ⊢ φ → ⋅ S = ⋅ S
7 3 ringgrpd ⊢ φ → R ∈ Grp
8 1 2 7 psrgrp ⊢ φ → S ∈ Grp
9 eqid ⊢ Base S = Base S
10 eqid ⊢ ⋅ S = ⋅ S
11 3 3ad2ant1 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S → R ∈ Ring
12 simp2 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S → x ∈ Base S
13 simp3 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S → y ∈ Base S
14 1 9 10 11 12 13 psrmulcl ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S → x ⋅ S y ∈ Base S
15 2 adantr ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → I ∈ V
16 3 adantr ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → R ∈ Ring
17 eqid ⊢ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin = f ∈ ℕ 0 I | f -1 ℕ ∈ Fin
18 simpr1 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → x ∈ Base S
19 simpr2 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → y ∈ Base S
20 simpr3 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → z ∈ Base S
21 1 15 16 17 10 9 18 19 20 psrass1 ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → x ⋅ S y ⋅ S z = x ⋅ S y ⋅ S z
22 eqid ⊢ + S = + S
23 1 15 16 17 10 9 18 19 20 22 psrdi ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → x ⋅ S y + S z = x ⋅ S y + S x ⋅ S z
24 1 15 16 17 10 9 18 19 20 22 psrdir ⊢ φ ∧ x ∈ Base S ∧ y ∈ Base S ∧ z ∈ Base S → x + S y ⋅ S z = x ⋅ S z + S y ⋅ S z
25 eqid ⊢ 0 R = 0 R
26 eqid ⊢ 1 R = 1 R
27 eqid ⊢ r ∈ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin ⟼ if r = I × 0 1 R 0 R = r ∈ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin ⟼ if r = I × 0 1 R 0 R
28 1 2 3 17 25 26 27 9 psr1cl ⊢ φ → r ∈ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin ⟼ if r = I × 0 1 R 0 R ∈ Base S
29 2 adantr ⊢ φ ∧ x ∈ Base S → I ∈ V
30 3 adantr ⊢ φ ∧ x ∈ Base S → R ∈ Ring
31 simpr ⊢ φ ∧ x ∈ Base S → x ∈ Base S
32 1 29 30 17 25 26 27 9 10 31 psrlidm ⊢ φ ∧ x ∈ Base S → r ∈ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin ⟼ if r = I × 0 1 R 0 R ⋅ S x = x
33 1 29 30 17 25 26 27 9 10 31 psrridm ⊢ φ ∧ x ∈ Base S → x ⋅ S r ∈ f ∈ ℕ 0 I | f -1 ℕ ∈ Fin ⟼ if r = I × 0 1 R 0 R = x
34 4 5 6 8 14 21 23 24 28 32 33 isringd ⊢ φ → S ∈ Ring