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

Theorem smueqlem 15889
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 484 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐴 ⊆ ℕ0)
3 smueq.b . . . . . . . 8 (𝜑𝐵 ⊆ ℕ0)
43adantr 484 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
5 smueq.p . . . . . . 7 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
6 elfzouz 13091 . . . . . . . . 9 (𝑘 ∈ (0..^𝑁) → 𝑘 ∈ (ℤ‘0))
76adantl 485 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ (ℤ‘0))
8 nn0uz 12320 . . . . . . . 8 0 = (ℤ‘0)
97, 8eleqtrrdi 2863 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℕ0)
109nn0zd 12124 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℤ)
1110peano2zd 12129 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ∈ ℤ)
12 smueq.n . . . . . . . . . 10 (𝜑𝑁 ∈ ℕ0)
1312adantr 484 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
1413nn0zd 12124 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℤ)
15 elfzolt2 13096 . . . . . . . . . 10 (𝑘 ∈ (0..^𝑁) → 𝑘 < 𝑁)
1615adantl 485 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 < 𝑁)
17 nn0ltp1le 12079 . . . . . . . . . 10 ((𝑘 ∈ ℕ0𝑁 ∈ ℕ0) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
189, 13, 17syl2anc 587 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
1916, 18mpbid 235 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ≤ 𝑁)
20 eluz2 12288 . . . . . . . 8 (𝑁 ∈ (ℤ‘(𝑘 + 1)) ↔ ((𝑘 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ (𝑘 + 1) ≤ 𝑁))
2111, 14, 19, 20syl3anbrc 1340 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ (ℤ‘(𝑘 + 1)))
222, 4, 5, 9, 21smuval2 15881 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ (𝑃𝑁)))
2312, 8eleqtrdi 2862 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
24 eluzfz2b 12965 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) ↔ 𝑁 ∈ (0...𝑁))
2523, 24sylib 221 . . . . . . . . . 10 (𝜑𝑁 ∈ (0...𝑁))
26 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑃𝑥) = (𝑃‘0))
2726ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘0) ∩ (0..^𝑁)))
28 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑄𝑥) = (𝑄‘0))
2928ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
3027, 29eqeq12d 2774 . . . . . . . . . . . 12 (𝑥 = 0 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
3130imbi2d 344 . . . . . . . . . . 11 (𝑥 = 0 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))))
32 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑃𝑥) = (𝑃𝑖))
3332ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑖) ∩ (0..^𝑁)))
34 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑄𝑥) = (𝑄𝑖))
3534ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))
3633, 35eqeq12d 2774 . . . . . . . . . . . 12 (𝑥 = 𝑖 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))))
3736imbi2d 344 . . . . . . . . . . 11 (𝑥 = 𝑖 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))))
38 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑃𝑥) = (𝑃‘(𝑖 + 1)))
3938ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)))
40 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑄𝑥) = (𝑄‘(𝑖 + 1)))
4140ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))
4239, 41eqeq12d 2774 . . . . . . . . . . . 12 (𝑥 = (𝑖 + 1) → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
4342imbi2d 344 . . . . . . . . . . 11 (𝑥 = (𝑖 + 1) → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
44 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
4544ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑁) ∩ (0..^𝑁)))
46 fveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑄𝑥) = (𝑄𝑁))
4746ineq1d 4116 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
4845, 47eqeq12d 2774 . . . . . . . . . . . 12 (𝑥 = 𝑁 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
4948imbi2d 344 . . . . . . . . . . 11 (𝑥 = 𝑁 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))))
501, 3, 5smup0 15878 . . . . . . . . . . . . . 14 (𝜑 → (𝑃‘0) = ∅)
51 inss1 4133 . . . . . . . . . . . . . . . 16 (𝐵 ∩ (0..^𝑁)) ⊆ 𝐵
5251, 3sstrid 3903 . . . . . . . . . . . . . . 15 (𝜑 → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
53 smueq.q . . . . . . . . . . . . . . 15 𝑄 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ (𝐵 ∩ (0..^𝑁)))})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
541, 52, 53smup0 15878 . . . . . . . . . . . . . 14 (𝜑 → (𝑄‘0) = ∅)
5550, 54eqtr4d 2796 . . . . . . . . . . . . 13 (𝜑 → (𝑃‘0) = (𝑄‘0))
5655ineq1d 4116 . . . . . . . . . . . 12 (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
5756a1i 11 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
58 oveq1 7157 . . . . . . . . . . . . . . 15 (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
5958ineq1d 4116 . . . . . . . . . . . . . 14 (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
601adantr 484 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝐴 ⊆ ℕ0)
613adantr 484 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
62 elfzonn0 13131 . . . . . . . . . . . . . . . . . . 19 (𝑖 ∈ (0..^𝑁) → 𝑖 ∈ ℕ0)
6362adantl 485 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
6460, 61, 5, 63smupp1 15879 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃‘(𝑖 + 1)) = ((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}))
6564ineq1d 4116 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)))
661, 3, 5smupf 15877 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑃:ℕ0⟶𝒫 ℕ0)
67 ffvelrn 6840 . . . . . . . . . . . . . . . . . . 19 ((𝑃:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6866, 62, 67syl2an 598 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6968elpwid 4505 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ⊆ ℕ0)
70 ssrab2 3984 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0
7170a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0)
7212adantr 484 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
7369, 71, 72sadeq 15871 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7465, 73eqtrd 2793 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7552adantr 484 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
7660, 75, 53, 63smupp1 15879 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄‘(𝑖 + 1)) = ((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}))
7776ineq1d 4116 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)))
781, 52, 53smupf 15877 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑄:ℕ0⟶𝒫 ℕ0)
79 ffvelrn 6840 . . . . . . . . . . . . . . . . . . 19 ((𝑄:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8078, 62, 79syl2an 598 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8180elpwid 4505 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ⊆ ℕ0)
82 ssrab2 3984 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0
8382a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0)
8481, 83, 72sadeq 15871 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
85 elinel2 4101 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) → 𝑛 ∈ (0..^𝑁))
8661adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
8786sseld 3891 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ ℕ0))
88 elfzo0 13127 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) ↔ (𝑛 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑛 < 𝑁))
8988simp2bi 1143 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑛 ∈ (0..^𝑁) → 𝑁 ∈ ℕ)
9089adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ)
91 elfzonn0 13131 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑛 ∈ (0..^𝑁) → 𝑛 ∈ ℕ0)
9291adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℕ0)
9392nn0red 11995 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℝ)
9463adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
9594nn0red 11995 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℝ)
9693, 95resubcld 11106 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ∈ ℝ)
9790nnred 11689 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℝ)
9894nn0ge0d 11997 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 0 ≤ 𝑖)
9993, 95subge02d 11270 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (0 ≤ 𝑖 ↔ (𝑛𝑖) ≤ 𝑛))
10098, 99mpbid 235 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ≤ 𝑛)
101 elfzolt2 13096 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) → 𝑛 < 𝑁)
102101adantl 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 < 𝑁)
10396, 93, 97, 100, 102lelttrd 10836 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) < 𝑁)
10490, 103jca 515 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
105 elfzo0 13127 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
106 3anass 1092 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
107105, 106bitri 278 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
108107baib 539 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑛𝑖) ∈ ℕ0 → ((𝑛𝑖) ∈ (0..^𝑁) ↔ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
109104, 108syl5ibrcom 250 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ ℕ0 → (𝑛𝑖) ∈ (0..^𝑁)))
11087, 109syld 47 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ (0..^𝑁)))
111110pm4.71rd 566 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 ↔ ((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵)))
112 ancom 464 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
113 elin 3874 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
114112, 113bitr4i 281 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))
115111, 114bitr2di 291 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ (𝑛𝑖) ∈ 𝐵))
116115anbi2d 631 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
11785, 116sylan2 595 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (ℕ0 ∩ (0..^𝑁))) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
118117rabbidva 3390 . . . . . . . . . . . . . . . . . . 19 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)})
119 inrab2 4210 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}
120 inrab2 4210 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}
121118, 119, 1203eqtr4g 2818 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)))
122121oveq2d 7166 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
123122ineq1d 4116 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12477, 84, 1233eqtrd 2797 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12574, 124eqeq12d 2774 . . . . . . . . . . . . . 14 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) ↔ ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁))))
12659, 125syl5ibr 249 . . . . . . . . . . . . 13 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
127126expcom 417 . . . . . . . . . . . 12 (𝑖 ∈ (0..^𝑁) → (𝜑 → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
128127a2d 29 . . . . . . . . . . 11 (𝑖 ∈ (0..^𝑁) → ((𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))) → (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
12931, 37, 43, 49, 57, 128fzind2 13204 . . . . . . . . . 10 (𝑁 ∈ (0...𝑁) → (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
13025, 129mpcom 38 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
131130adantr 484 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
132131eleq2d 2837 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁))))
133 elin 3874 . . . . . . . . 9 (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑃𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
134133rbaib 542 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
135134adantl 485 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
136 elin 3874 . . . . . . . . 9 (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑄𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
137136rbaib 542 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
138137adantl 485 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
139132, 135, 1383bitr3d 312 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑃𝑁) ↔ 𝑘 ∈ (𝑄𝑁)))
14052adantr 484 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
1412, 140, 53, 13smupval 15887 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑄𝑁) = ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))
142141eleq2d 2837 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑄𝑁) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
14322, 139, 1423bitrd 308 . . . . 5 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
144143ex 416 . . . 4 (𝜑 → (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))))
145144pm5.32rd 581 . . 3 (𝜑 → ((𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁))))
146 elin 3874 . . 3 (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)))
147 elin 3874 . . 3 (𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁)))
148145, 146, 1473bitr4g 317 . 2 (𝜑 → (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁))))
149148eqrdv 2756 1 (𝜑 → ((𝐴 smul 𝐵) ∩ (0..^𝑁)) = (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1084   = wceq 1538  wcel 2111  {crab 3074  cin 3857  wss 3858  c0 4225  ifcif 4420  𝒫 cpw 4494   class class class wbr 5032  cmpt 5112  wf 6331  cfv 6335  (class class class)co 7150  cmpo 7152  0cc0 10575  1c1 10576   + caddc 10578   < clt 10713  cle 10714  cmin 10908  cn 11674  0cn0 11934  cz 12020  cuz 12282  ...cfz 12939  ..^cfzo 13082  seqcseq 13418   sadd csad 15819   smul csmu 15820
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-rep 5156  ax-sep 5169  ax-nul 5176  ax-pow 5234  ax-pr 5298  ax-un 7459  ax-inf2 9137  ax-cnex 10631  ax-resscn 10632  ax-1cn 10633  ax-icn 10634  ax-addcl 10635  ax-addrcl 10636  ax-mulcl 10637  ax-mulrcl 10638  ax-mulcom 10639  ax-addass 10640  ax-mulass 10641  ax-distr 10642  ax-i2m1 10643  ax-1ne0 10644  ax-1rid 10645  ax-rnegex 10646  ax-rrecex 10647  ax-cnre 10648  ax-pre-lttri 10649  ax-pre-lttrn 10650  ax-pre-ltadd 10651  ax-pre-mulgt0 10652  ax-pre-sup 10653
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-xor 1503  df-tru 1541  df-fal 1551  df-had 1595  df-cad 1609  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rmo 3078  df-rab 3079  df-v 3411  df-sbc 3697  df-csb 3806  df-dif 3861  df-un 3863  df-in 3865  df-ss 3875  df-pss 3877  df-nul 4226  df-if 4421  df-pw 4496  df-sn 4523  df-pr 4525  df-tp 4527  df-op 4529  df-uni 4799  df-int 4839  df-iun 4885  df-disj 4998  df-br 5033  df-opab 5095  df-mpt 5113  df-tr 5139  df-id 5430  df-eprel 5435  df-po 5443  df-so 5444  df-fr 5483  df-se 5484  df-we 5485  df-xp 5530  df-rel 5531  df-cnv 5532  df-co 5533  df-dm 5534  df-rn 5535  df-res 5536  df-ima 5537  df-pred 6126  df-ord 6172  df-on 6173  df-lim 6174  df-suc 6175  df-iota 6294  df-fun 6337  df-fn 6338  df-f 6339  df-f1 6340  df-fo 6341  df-f1o 6342  df-fv 6343  df-isom 6344  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7580  df-1st 7693  df-2nd 7694  df-wrecs 7957  df-recs 8018  df-rdg 8056  df-1o 8112  df-2o 8113  df-oadd 8116  df-er 8299  df-map 8418  df-pm 8419  df-en 8528  df-dom 8529  df-sdom 8530  df-fin 8531  df-sup 8939  df-inf 8940  df-oi 9007  df-dju 9363  df-card 9401  df-pnf 10715  df-mnf 10716  df-xr 10717  df-ltxr 10718  df-le 10719  df-sub 10910  df-neg 10911  df-div 11336  df-nn 11675  df-2 11737  df-3 11738  df-n0 11935  df-xnn0 12007  df-z 12021  df-uz 12283  df-rp 12431  df-fz 12940  df-fzo 13083  df-fl 13211  df-mod 13287  df-seq 13419  df-exp 13480  df-hash 13741  df-cj 14506  df-re 14507  df-im 14508  df-sqrt 14642  df-abs 14643  df-clim 14893  df-sum 15091  df-dvds 15656  df-bits 15821  df-sad 15850  df-smu 15875
This theorem is referenced by:  smueq  15890
  Copyright terms: Public domain W3C validator