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

Theorem smueqlem 15259
Description: Any element of a sequence multiplication only depends on the values of the argument sequences up to and including that point. (Contributed by Mario Carneiro, 20-Sep-2016.)
Hypotheses
Ref Expression
smueq.a (𝜑𝐴 ⊆ ℕ0)
smueq.b (𝜑𝐵 ⊆ ℕ0)
smueq.n (𝜑𝑁 ∈ ℕ0)
smueq.p 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
smueq.q 𝑄 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ (𝐵 ∩ (0..^𝑁)))})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
Assertion
Ref Expression
smueqlem (𝜑 → ((𝐴 smul 𝐵) ∩ (0..^𝑁)) = (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)))
Distinct variable groups:   𝑚,𝑛,𝑝,𝐴   𝐵,𝑚,𝑛,𝑝   𝑚,𝑁,𝑛,𝑝   𝜑,𝑛
Allowed substitution hints:   𝜑(𝑚,𝑝)   𝑃(𝑚,𝑛,𝑝)   𝑄(𝑚,𝑛,𝑝)

Proof of Theorem smueqlem
Dummy variables 𝑘 𝑖 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 smueq.a . . . . . . . 8 (𝜑𝐴 ⊆ ℕ0)
21adantr 480 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐴 ⊆ ℕ0)
3 smueq.b . . . . . . . 8 (𝜑𝐵 ⊆ ℕ0)
43adantr 480 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
5 smueq.p . . . . . . 7 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
6 elfzouz 12513 . . . . . . . . 9 (𝑘 ∈ (0..^𝑁) → 𝑘 ∈ (ℤ‘0))
76adantl 481 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ (ℤ‘0))
8 nn0uz 11760 . . . . . . . 8 0 = (ℤ‘0)
97, 8syl6eleqr 2741 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℕ0)
109nn0zd 11518 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℤ)
1110peano2zd 11523 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ∈ ℤ)
12 smueq.n . . . . . . . . . 10 (𝜑𝑁 ∈ ℕ0)
1312adantr 480 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
1413nn0zd 11518 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℤ)
15 elfzolt2 12518 . . . . . . . . . 10 (𝑘 ∈ (0..^𝑁) → 𝑘 < 𝑁)
1615adantl 481 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 < 𝑁)
17 nn0ltp1le 11473 . . . . . . . . . 10 ((𝑘 ∈ ℕ0𝑁 ∈ ℕ0) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
189, 13, 17syl2anc 694 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
1916, 18mpbid 222 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ≤ 𝑁)
20 eluz2 11731 . . . . . . . 8 (𝑁 ∈ (ℤ‘(𝑘 + 1)) ↔ ((𝑘 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ (𝑘 + 1) ≤ 𝑁))
2111, 14, 19, 20syl3anbrc 1265 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ (ℤ‘(𝑘 + 1)))
222, 4, 5, 9, 21smuval2 15251 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ (𝑃𝑁)))
2312, 8syl6eleq 2740 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
24 eluzfz2b 12388 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) ↔ 𝑁 ∈ (0...𝑁))
2523, 24sylib 208 . . . . . . . . . 10 (𝜑𝑁 ∈ (0...𝑁))
26 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑃𝑥) = (𝑃‘0))
2726ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘0) ∩ (0..^𝑁)))
28 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑄𝑥) = (𝑄‘0))
2928ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
3027, 29eqeq12d 2666 . . . . . . . . . . . 12 (𝑥 = 0 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
3130imbi2d 329 . . . . . . . . . . 11 (𝑥 = 0 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))))
32 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑃𝑥) = (𝑃𝑖))
3332ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑖) ∩ (0..^𝑁)))
34 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑄𝑥) = (𝑄𝑖))
3534ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))
3633, 35eqeq12d 2666 . . . . . . . . . . . 12 (𝑥 = 𝑖 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))))
3736imbi2d 329 . . . . . . . . . . 11 (𝑥 = 𝑖 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))))
38 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑃𝑥) = (𝑃‘(𝑖 + 1)))
3938ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)))
40 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑄𝑥) = (𝑄‘(𝑖 + 1)))
4140ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))
4239, 41eqeq12d 2666 . . . . . . . . . . . 12 (𝑥 = (𝑖 + 1) → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
4342imbi2d 329 . . . . . . . . . . 11 (𝑥 = (𝑖 + 1) → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
44 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
4544ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑁) ∩ (0..^𝑁)))
46 fveq2 6229 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑄𝑥) = (𝑄𝑁))
4746ineq1d 3846 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
4845, 47eqeq12d 2666 . . . . . . . . . . . 12 (𝑥 = 𝑁 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
4948imbi2d 329 . . . . . . . . . . 11 (𝑥 = 𝑁 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))))
501, 3, 5smup0 15248 . . . . . . . . . . . . . 14 (𝜑 → (𝑃‘0) = ∅)
51 inss1 3866 . . . . . . . . . . . . . . . 16 (𝐵 ∩ (0..^𝑁)) ⊆ 𝐵
5251, 3syl5ss 3647 . . . . . . . . . . . . . . 15 (𝜑 → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
53 smueq.q . . . . . . . . . . . . . . 15 𝑄 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ (𝐵 ∩ (0..^𝑁)))})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
541, 52, 53smup0 15248 . . . . . . . . . . . . . 14 (𝜑 → (𝑄‘0) = ∅)
5550, 54eqtr4d 2688 . . . . . . . . . . . . 13 (𝜑 → (𝑃‘0) = (𝑄‘0))
5655ineq1d 3846 . . . . . . . . . . . 12 (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
5756a1i 11 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
58 oveq1 6697 . . . . . . . . . . . . . . 15 (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
5958ineq1d 3846 . . . . . . . . . . . . . 14 (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
601adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝐴 ⊆ ℕ0)
613adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
62 elfzonn0 12552 . . . . . . . . . . . . . . . . . . 19 (𝑖 ∈ (0..^𝑁) → 𝑖 ∈ ℕ0)
6362adantl 481 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
6460, 61, 5, 63smupp1 15249 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃‘(𝑖 + 1)) = ((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}))
6564ineq1d 3846 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)))
661, 3, 5smupf 15247 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑃:ℕ0⟶𝒫 ℕ0)
67 ffvelrn 6397 . . . . . . . . . . . . . . . . . . 19 ((𝑃:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6866, 62, 67syl2an 493 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6968elpwid 4203 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ⊆ ℕ0)
70 ssrab2 3720 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0
7170a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0)
7212adantr 480 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
7369, 71, 72sadeq 15241 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7465, 73eqtrd 2685 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7552adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
7660, 75, 53, 63smupp1 15249 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄‘(𝑖 + 1)) = ((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}))
7776ineq1d 3846 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)))
781, 52, 53smupf 15247 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑄:ℕ0⟶𝒫 ℕ0)
79 ffvelrn 6397 . . . . . . . . . . . . . . . . . . 19 ((𝑄:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8078, 62, 79syl2an 493 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8180elpwid 4203 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ⊆ ℕ0)
82 ssrab2 3720 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0
8382a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0)
8481, 83, 72sadeq 15241 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
85 inss2 3867 . . . . . . . . . . . . . . . . . . . . . 22 (ℕ0 ∩ (0..^𝑁)) ⊆ (0..^𝑁)
8685sseli 3632 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) → 𝑛 ∈ (0..^𝑁))
8761adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
8887sseld 3635 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ ℕ0))
89 elfzo0 12548 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) ↔ (𝑛 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑛 < 𝑁))
9089simp2bi 1097 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑛 ∈ (0..^𝑁) → 𝑁 ∈ ℕ)
9190adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ)
92 elfzonn0 12552 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑛 ∈ (0..^𝑁) → 𝑛 ∈ ℕ0)
9392adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℕ0)
9493nn0red 11390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℝ)
9563adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
9695nn0red 11390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℝ)
9794, 96resubcld 10496 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ∈ ℝ)
9891nnred 11073 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℝ)
9995nn0ge0d 11392 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 0 ≤ 𝑖)
10094, 96subge02d 10657 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (0 ≤ 𝑖 ↔ (𝑛𝑖) ≤ 𝑛))
10199, 100mpbid 222 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ≤ 𝑛)
102 elfzolt2 12518 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) → 𝑛 < 𝑁)
103102adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 < 𝑁)
10497, 94, 98, 101, 103lelttrd 10233 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) < 𝑁)
10591, 104jca 553 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
106 elfzo0 12548 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
107 3anass 1059 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
108106, 107bitri 264 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
109108baib 964 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑛𝑖) ∈ ℕ0 → ((𝑛𝑖) ∈ (0..^𝑁) ↔ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
110105, 109syl5ibrcom 237 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ ℕ0 → (𝑛𝑖) ∈ (0..^𝑁)))
11188, 110syld 47 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ (0..^𝑁)))
112111pm4.71rd 668 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 ↔ ((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵)))
113 ancom 465 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
114 elin 3829 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
115113, 114bitr4i 267 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))
116112, 115syl6rbb 277 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ (𝑛𝑖) ∈ 𝐵))
117116anbi2d 740 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
11886, 117sylan2 490 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (ℕ0 ∩ (0..^𝑁))) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
119118rabbidva 3219 . . . . . . . . . . . . . . . . . . 19 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)})
120 inrab2 3933 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}
121 inrab2 3933 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}
122119, 120, 1213eqtr4g 2710 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)))
123122oveq2d 6706 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
124123ineq1d 3846 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12577, 84, 1243eqtrd 2689 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12674, 125eqeq12d 2666 . . . . . . . . . . . . . 14 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) ↔ ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁))))
12759, 126syl5ibr 236 . . . . . . . . . . . . 13 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
128127expcom 450 . . . . . . . . . . . 12 (𝑖 ∈ (0..^𝑁) → (𝜑 → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
129128a2d 29 . . . . . . . . . . 11 (𝑖 ∈ (0..^𝑁) → ((𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))) → (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
13031, 37, 43, 49, 57, 129fzind2 12626 . . . . . . . . . 10 (𝑁 ∈ (0...𝑁) → (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
13125, 130mpcom 38 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
132131adantr 480 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
133132eleq2d 2716 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁))))
134 elin 3829 . . . . . . . . 9 (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑃𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
135134rbaib 967 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
136135adantl 481 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
137 elin 3829 . . . . . . . . 9 (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑄𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
138137rbaib 967 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
139138adantl 481 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
140133, 136, 1393bitr3d 298 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑃𝑁) ↔ 𝑘 ∈ (𝑄𝑁)))
14152adantr 480 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
1422, 141, 53, 13smupval 15257 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑄𝑁) = ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))
143142eleq2d 2716 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑄𝑁) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
14422, 140, 1433bitrd 294 . . . . 5 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
145144ex 449 . . . 4 (𝜑 → (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))))
146145pm5.32rd 673 . . 3 (𝜑 → ((𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁))))
147 elin 3829 . . 3 (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)))
148 elin 3829 . . 3 (𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁)))
149146, 147, 1483bitr4g 303 . 2 (𝜑 → (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁))))
150149eqrdv 2649 1 (𝜑 → ((𝐴 smul 𝐵) ∩ (0..^𝑁)) = (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  w3a 1054   = wceq 1523  wcel 2030  {crab 2945  cin 3606  wss 3607  c0 3948  ifcif 4119  𝒫 cpw 4191   class class class wbr 4685  cmpt 4762  wf 5922  cfv 5926  (class class class)co 6690  cmpt2 6692  0cc0 9974  1c1 9975   + caddc 9977   < clt 10112  cle 10113  cmin 10304  cn 11058  0cn0 11330  cz 11415  cuz 11725  ...cfz 12364  ..^cfzo 12504  seqcseq 12841   sadd csad 15189   smul csmu 15190
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-inf2 8576  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-addrcl 10035  ax-mulcl 10036  ax-mulrcl 10037  ax-mulcom 10038  ax-addass 10039  ax-mulass 10040  ax-distr 10041  ax-i2m1 10042  ax-1ne0 10043  ax-1rid 10044  ax-rnegex 10045  ax-rrecex 10046  ax-cnre 10047  ax-pre-lttri 10048  ax-pre-lttrn 10049  ax-pre-ltadd 10050  ax-pre-mulgt0 10051  ax-pre-sup 10052
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-xor 1505  df-tru 1526  df-fal 1529  df-had 1573  df-cad 1586  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-reu 2948  df-rmo 2949  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-int 4508  df-iun 4554  df-disj 4653  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-se 5103  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-isom 5935  df-riota 6651  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-1st 7210  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-1o 7605  df-2o 7606  df-oadd 7609  df-er 7787  df-map 7901  df-pm 7902  df-en 7998  df-dom 7999  df-sdom 8000  df-fin 8001  df-sup 8389  df-inf 8390  df-oi 8456  df-card 8803  df-cda 9028  df-pnf 10114  df-mnf 10115  df-xr 10116  df-ltxr 10117  df-le 10118  df-sub 10306  df-neg 10307  df-div 10723  df-nn 11059  df-2 11117  df-3 11118  df-n0 11331  df-xnn0 11402  df-z 11416  df-uz 11726  df-rp 11871  df-fz 12365  df-fzo 12505  df-fl 12633  df-mod 12709  df-seq 12842  df-exp 12901  df-hash 13158  df-cj 13883  df-re 13884  df-im 13885  df-sqrt 14019  df-abs 14020  df-clim 14263  df-sum 14461  df-dvds 15028  df-bits 15191  df-sad 15220  df-smu 15245
This theorem is referenced by:  smueq  15260
  Copyright terms: Public domain W3C validator