MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  smupval Structured version   Visualization version   GIF version

Theorem smupval 15129
Description: Rewrite the elements of the partial sum sequence in terms of sequence multiplication. (Contributed by Mario Carneiro, 20-Sep-2016.)
Hypotheses
Ref Expression
smupval.a (𝜑𝐴 ⊆ ℕ0)
smupval.b (𝜑𝐵 ⊆ ℕ0)
smupval.p 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
smupval.n (𝜑𝑁 ∈ ℕ0)
Assertion
Ref Expression
smupval (𝜑 → (𝑃𝑁) = ((𝐴 ∩ (0..^𝑁)) smul 𝐵))
Distinct variable groups:   𝑚,𝑛,𝑝,𝐴   𝐵,𝑚,𝑛,𝑝   𝑚,𝑁,𝑛,𝑝   𝜑,𝑛
Allowed substitution hints:   𝜑(𝑚,𝑝)   𝑃(𝑚,𝑛,𝑝)

Proof of Theorem smupval
Dummy variables 𝑘 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 smupval.n . . . . 5 (𝜑𝑁 ∈ ℕ0)
2 nn0uz 11666 . . . . 5 0 = (ℤ‘0)
31, 2syl6eleq 2714 . . . 4 (𝜑𝑁 ∈ (ℤ‘0))
4 eluzfz2b 12289 . . . 4 (𝑁 ∈ (ℤ‘0) ↔ 𝑁 ∈ (0...𝑁))
53, 4sylib 208 . . 3 (𝜑𝑁 ∈ (0...𝑁))
6 fveq2 6150 . . . . . 6 (𝑥 = 0 → (𝑃𝑥) = (𝑃‘0))
7 fveq2 6150 . . . . . 6 (𝑥 = 0 → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0))
86, 7eqeq12d 2641 . . . . 5 (𝑥 = 0 → ((𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) ↔ (𝑃‘0) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0)))
98imbi2d 330 . . . 4 (𝑥 = 0 → ((𝜑 → (𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥)) ↔ (𝜑 → (𝑃‘0) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0))))
10 fveq2 6150 . . . . . 6 (𝑥 = 𝑘 → (𝑃𝑥) = (𝑃𝑘))
11 fveq2 6150 . . . . . 6 (𝑥 = 𝑘 → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘))
1210, 11eqeq12d 2641 . . . . 5 (𝑥 = 𝑘 → ((𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) ↔ (𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘)))
1312imbi2d 330 . . . 4 (𝑥 = 𝑘 → ((𝜑 → (𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥)) ↔ (𝜑 → (𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘))))
14 fveq2 6150 . . . . . 6 (𝑥 = (𝑘 + 1) → (𝑃𝑥) = (𝑃‘(𝑘 + 1)))
15 fveq2 6150 . . . . . 6 (𝑥 = (𝑘 + 1) → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)))
1614, 15eqeq12d 2641 . . . . 5 (𝑥 = (𝑘 + 1) → ((𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) ↔ (𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))))
1716imbi2d 330 . . . 4 (𝑥 = (𝑘 + 1) → ((𝜑 → (𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥)) ↔ (𝜑 → (𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)))))
18 fveq2 6150 . . . . . 6 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
19 fveq2 6150 . . . . . 6 (𝑥 = 𝑁 → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁))
2018, 19eqeq12d 2641 . . . . 5 (𝑥 = 𝑁 → ((𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥) ↔ (𝑃𝑁) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁)))
2120imbi2d 330 . . . 4 (𝑥 = 𝑁 → ((𝜑 → (𝑃𝑥) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑥)) ↔ (𝜑 → (𝑃𝑁) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁))))
22 smupval.a . . . . . . 7 (𝜑𝐴 ⊆ ℕ0)
23 smupval.b . . . . . . 7 (𝜑𝐵 ⊆ ℕ0)
24 smupval.p . . . . . . 7 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
2522, 23, 24smup0 15120 . . . . . 6 (𝜑 → (𝑃‘0) = ∅)
26 inss1 3816 . . . . . . . 8 (𝐴 ∩ (0..^𝑁)) ⊆ 𝐴
2726, 22syl5ss 3599 . . . . . . 7 (𝜑 → (𝐴 ∩ (0..^𝑁)) ⊆ ℕ0)
28 eqid 2626 . . . . . . 7 seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))) = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
2927, 23, 28smup0 15120 . . . . . 6 (𝜑 → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0) = ∅)
3025, 29eqtr4d 2663 . . . . 5 (𝜑 → (𝑃‘0) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0))
3130a1i 11 . . . 4 (𝑁 ∈ (ℤ‘0) → (𝜑 → (𝑃‘0) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘0)))
32 oveq1 6612 . . . . . . 7 ((𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) → ((𝑃𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}) = ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}))
3322adantr 481 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐴 ⊆ ℕ0)
3423adantr 481 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
35 elfzouz 12412 . . . . . . . . . . 11 (𝑘 ∈ (0..^𝑁) → 𝑘 ∈ (ℤ‘0))
3635adantl 482 . . . . . . . . . 10 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ (ℤ‘0))
3736, 2syl6eleqr 2715 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℕ0)
3833, 34, 24, 37smupp1 15121 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑃‘(𝑘 + 1)) = ((𝑃𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}))
3927adantr 481 . . . . . . . . . 10 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝐴 ∩ (0..^𝑁)) ⊆ ℕ0)
4039, 34, 28, 37smupp1 15121 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)) = ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑘) ∈ 𝐵)}))
41 elin 3779 . . . . . . . . . . . . . 14 (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ↔ (𝑘𝐴𝑘 ∈ (0..^𝑁)))
4241rbaib 946 . . . . . . . . . . . . 13 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ↔ 𝑘𝐴))
4342adantl 482 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ↔ 𝑘𝐴))
4443anbi1d 740 . . . . . . . . . . 11 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑘) ∈ 𝐵) ↔ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)))
4544rabbidv 3182 . . . . . . . . . 10 ((𝜑𝑘 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑘) ∈ 𝐵)} = {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)})
4645oveq2d 6621 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑘) ∈ 𝐵)}) = ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}))
4740, 46eqtrd 2660 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)) = ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}))
4838, 47eqeq12d 2641 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)) ↔ ((𝑃𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)}) = ((seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) sadd {𝑛 ∈ ℕ0 ∣ (𝑘𝐴 ∧ (𝑛𝑘) ∈ 𝐵)})))
4932, 48syl5ibr 236 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) → (𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))))
5049expcom 451 . . . . 5 (𝑘 ∈ (0..^𝑁) → (𝜑 → ((𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘) → (𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)))))
5150a2d 29 . . . 4 (𝑘 ∈ (0..^𝑁) → ((𝜑 → (𝑃𝑘) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑘)) → (𝜑 → (𝑃‘(𝑘 + 1)) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1)))))
529, 13, 17, 21, 31, 51fzind2 12523 . . 3 (𝑁 ∈ (0...𝑁) → (𝜑 → (𝑃𝑁) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁)))
535, 52mpcom 38 . 2 (𝜑 → (𝑃𝑁) = (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁))
54 inss2 3817 . . . 4 (𝐴 ∩ (0..^𝑁)) ⊆ (0..^𝑁)
5554a1i 11 . . 3 (𝜑 → (𝐴 ∩ (0..^𝑁)) ⊆ (0..^𝑁))
561nn0zd 11424 . . . 4 (𝜑𝑁 ∈ ℤ)
57 uzid 11646 . . . 4 (𝑁 ∈ ℤ → 𝑁 ∈ (ℤ𝑁))
5856, 57syl 17 . . 3 (𝜑𝑁 ∈ (ℤ𝑁))
5927, 23, 28, 1, 55, 58smupvallem 15124 . 2 (𝜑 → (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚 ∈ (𝐴 ∩ (0..^𝑁)) ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘𝑁) = ((𝐴 ∩ (0..^𝑁)) smul 𝐵))
6053, 59eqtrd 2660 1 (𝜑 → (𝑃𝑁) = ((𝐴 ∩ (0..^𝑁)) smul 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1992  {crab 2916  cin 3559  wss 3560  c0 3896  ifcif 4063  𝒫 cpw 4135  cmpt 4678  cfv 5850  (class class class)co 6605  cmpt2 6607  0cc0 9881  1c1 9882   + caddc 9884  cmin 10211  0cn0 11237  cz 11322  cuz 11631  ...cfz 12265  ..^cfzo 12403  seqcseq 12738   sadd csad 15061   smul csmu 15062
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903  ax-inf2 8483  ax-cnex 9937  ax-resscn 9938  ax-1cn 9939  ax-icn 9940  ax-addcl 9941  ax-addrcl 9942  ax-mulcl 9943  ax-mulrcl 9944  ax-mulcom 9945  ax-addass 9946  ax-mulass 9947  ax-distr 9948  ax-i2m1 9949  ax-1ne0 9950  ax-1rid 9951  ax-rnegex 9952  ax-rrecex 9953  ax-cnre 9954  ax-pre-lttri 9955  ax-pre-lttrn 9956  ax-pre-ltadd 9957  ax-pre-mulgt0 9958  ax-pre-sup 9959
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-xor 1462  df-tru 1483  df-fal 1486  df-had 1530  df-cad 1543  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-nel 2900  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-int 4446  df-iun 4492  df-disj 4589  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-se 5039  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-isom 5859  df-riota 6566  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-om 7014  df-1st 7116  df-2nd 7117  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-1o 7506  df-2o 7507  df-oadd 7510  df-er 7688  df-map 7805  df-pm 7806  df-en 7901  df-dom 7902  df-sdom 7903  df-fin 7904  df-sup 8293  df-inf 8294  df-oi 8360  df-card 8710  df-cda 8935  df-pnf 10021  df-mnf 10022  df-xr 10023  df-ltxr 10024  df-le 10025  df-sub 10213  df-neg 10214  df-div 10630  df-nn 10966  df-2 11024  df-3 11025  df-n0 11238  df-xnn0 11309  df-z 11323  df-uz 11632  df-rp 11777  df-fz 12266  df-fzo 12404  df-fl 12530  df-mod 12606  df-seq 12739  df-exp 12798  df-hash 13055  df-cj 13768  df-re 13769  df-im 13770  df-sqrt 13904  df-abs 13905  df-clim 14148  df-sum 14346  df-dvds 14903  df-bits 15063  df-sad 15092  df-smu 15117
This theorem is referenced by:  smup1  15130  smueqlem  15131
  Copyright terms: Public domain W3C validator