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

Theorem smueqlem 16125
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 13320 . . . . . . . . 9 (𝑘 ∈ (0..^𝑁) → 𝑘 ∈ (ℤ‘0))
76adantl 481 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ (ℤ‘0))
8 nn0uz 12549 . . . . . . . 8 0 = (ℤ‘0)
97, 8eleqtrrdi 2850 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℕ0)
109nn0zd 12353 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 ∈ ℤ)
1110peano2zd 12358 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ∈ ℤ)
12 smueq.n . . . . . . . . . 10 (𝜑𝑁 ∈ ℕ0)
1312adantr 480 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
1413nn0zd 12353 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ ℤ)
15 elfzolt2 13325 . . . . . . . . . 10 (𝑘 ∈ (0..^𝑁) → 𝑘 < 𝑁)
1615adantl 481 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑘 < 𝑁)
17 nn0ltp1le 12308 . . . . . . . . . 10 ((𝑘 ∈ ℕ0𝑁 ∈ ℕ0) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
189, 13, 17syl2anc 583 . . . . . . . . 9 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 < 𝑁 ↔ (𝑘 + 1) ≤ 𝑁))
1916, 18mpbid 231 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 + 1) ≤ 𝑁)
20 eluz2 12517 . . . . . . . 8 (𝑁 ∈ (ℤ‘(𝑘 + 1)) ↔ ((𝑘 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ (𝑘 + 1) ≤ 𝑁))
2111, 14, 19, 20syl3anbrc 1341 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → 𝑁 ∈ (ℤ‘(𝑘 + 1)))
222, 4, 5, 9, 21smuval2 16117 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ (𝑃𝑁)))
2312, 8eleqtrdi 2849 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
24 eluzfz2b 13194 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) ↔ 𝑁 ∈ (0...𝑁))
2523, 24sylib 217 . . . . . . . . . 10 (𝜑𝑁 ∈ (0...𝑁))
26 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑃𝑥) = (𝑃‘0))
2726ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘0) ∩ (0..^𝑁)))
28 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 0 → (𝑄𝑥) = (𝑄‘0))
2928ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 0 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
3027, 29eqeq12d 2754 . . . . . . . . . . . 12 (𝑥 = 0 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
3130imbi2d 340 . . . . . . . . . . 11 (𝑥 = 0 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))))
32 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑃𝑥) = (𝑃𝑖))
3332ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑖) ∩ (0..^𝑁)))
34 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 𝑖 → (𝑄𝑥) = (𝑄𝑖))
3534ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 𝑖 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))
3633, 35eqeq12d 2754 . . . . . . . . . . . 12 (𝑥 = 𝑖 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))))
3736imbi2d 340 . . . . . . . . . . 11 (𝑥 = 𝑖 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)))))
38 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑃𝑥) = (𝑃‘(𝑖 + 1)))
3938ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)))
40 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = (𝑖 + 1) → (𝑄𝑥) = (𝑄‘(𝑖 + 1)))
4140ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = (𝑖 + 1) → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))
4239, 41eqeq12d 2754 . . . . . . . . . . . 12 (𝑥 = (𝑖 + 1) → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
4342imbi2d 340 . . . . . . . . . . 11 (𝑥 = (𝑖 + 1) → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
44 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
4544ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑃𝑁) ∩ (0..^𝑁)))
46 fveq2 6756 . . . . . . . . . . . . . 14 (𝑥 = 𝑁 → (𝑄𝑥) = (𝑄𝑁))
4746ineq1d 4142 . . . . . . . . . . . . 13 (𝑥 = 𝑁 → ((𝑄𝑥) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
4845, 47eqeq12d 2754 . . . . . . . . . . . 12 (𝑥 = 𝑁 → (((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁)) ↔ ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
4948imbi2d 340 . . . . . . . . . . 11 (𝑥 = 𝑁 → ((𝜑 → ((𝑃𝑥) ∩ (0..^𝑁)) = ((𝑄𝑥) ∩ (0..^𝑁))) ↔ (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))))
501, 3, 5smup0 16114 . . . . . . . . . . . . . 14 (𝜑 → (𝑃‘0) = ∅)
51 inss1 4159 . . . . . . . . . . . . . . . 16 (𝐵 ∩ (0..^𝑁)) ⊆ 𝐵
5251, 3sstrid 3928 . . . . . . . . . . . . . . 15 (𝜑 → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
53 smueq.q . . . . . . . . . . . . . . 15 𝑄 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ (𝐵 ∩ (0..^𝑁)))})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
541, 52, 53smup0 16114 . . . . . . . . . . . . . 14 (𝜑 → (𝑄‘0) = ∅)
5550, 54eqtr4d 2781 . . . . . . . . . . . . 13 (𝜑 → (𝑃‘0) = (𝑄‘0))
5655ineq1d 4142 . . . . . . . . . . . 12 (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁)))
5756a1i 11 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (𝜑 → ((𝑃‘0) ∩ (0..^𝑁)) = ((𝑄‘0) ∩ (0..^𝑁))))
58 oveq1 7262 . . . . . . . . . . . . . . 15 (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
5958ineq1d 4142 . . . . . . . . . . . . . 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 13360 . . . . . . . . . . . . . . . . . . 19 (𝑖 ∈ (0..^𝑁) → 𝑖 ∈ ℕ0)
6362adantl 481 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
6460, 61, 5, 63smupp1 16115 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃‘(𝑖 + 1)) = ((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}))
6564ineq1d 4142 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)))
661, 3, 5smupf 16113 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑃:ℕ0⟶𝒫 ℕ0)
67 ffvelrn 6941 . . . . . . . . . . . . . . . . . . 19 ((𝑃:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6866, 62, 67syl2an 595 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ∈ 𝒫 ℕ0)
6968elpwid 4541 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑃𝑖) ⊆ ℕ0)
70 ssrab2 4009 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0
7170a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ⊆ ℕ0)
7212adantr 480 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
7369, 71, 72sadeq 16107 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7465, 73eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
7552adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
7660, 75, 53, 63smupp1 16115 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄‘(𝑖 + 1)) = ((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}))
7776ineq1d 4142 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)))
781, 52, 53smupf 16113 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑄:ℕ0⟶𝒫 ℕ0)
79 ffvelrn 6941 . . . . . . . . . . . . . . . . . . 19 ((𝑄:ℕ0⟶𝒫 ℕ0𝑖 ∈ ℕ0) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8078, 62, 79syl2an 595 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ∈ 𝒫 ℕ0)
8180elpwid 4541 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (𝑄𝑖) ⊆ ℕ0)
82 ssrab2 4009 . . . . . . . . . . . . . . . . . 18 {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0
8382a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ⊆ ℕ0)
8481, 83, 72sadeq 16107 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) sadd {𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
85 elinel2 4126 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) → 𝑛 ∈ (0..^𝑁))
8661adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝐵 ⊆ ℕ0)
8786sseld 3916 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ ℕ0))
88 elfzo0 13356 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) ↔ (𝑛 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑛 < 𝑁))
8988simp2bi 1144 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑛 ∈ (0..^𝑁) → 𝑁 ∈ ℕ)
9089adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ)
91 elfzonn0 13360 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑛 ∈ (0..^𝑁) → 𝑛 ∈ ℕ0)
9291adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℕ0)
9392nn0red 12224 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 ∈ ℝ)
9463adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℕ0)
9594nn0red 12224 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑖 ∈ ℝ)
9693, 95resubcld 11333 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ∈ ℝ)
9790nnred 11918 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑁 ∈ ℝ)
9894nn0ge0d 12226 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 0 ≤ 𝑖)
9993, 95subge02d 11497 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (0 ≤ 𝑖 ↔ (𝑛𝑖) ≤ 𝑛))
10098, 99mpbid 231 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) ≤ 𝑛)
101 elfzolt2 13325 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑛 ∈ (0..^𝑁) → 𝑛 < 𝑁)
102101adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → 𝑛 < 𝑁)
10396, 93, 97, 100, 102lelttrd 11063 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑛𝑖) < 𝑁)
10490, 103jca 511 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
105 elfzo0 13356 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁))
106 3anass 1093 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑛𝑖) ∈ ℕ0𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
107105, 106bitri 274 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑛𝑖) ∈ (0..^𝑁) ↔ ((𝑛𝑖) ∈ ℕ0 ∧ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
108107baib 535 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑛𝑖) ∈ ℕ0 → ((𝑛𝑖) ∈ (0..^𝑁) ↔ (𝑁 ∈ ℕ ∧ (𝑛𝑖) < 𝑁)))
109104, 108syl5ibrcom 246 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ ℕ0 → (𝑛𝑖) ∈ (0..^𝑁)))
11087, 109syld 47 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 → (𝑛𝑖) ∈ (0..^𝑁)))
111110pm4.71rd 562 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ 𝐵 ↔ ((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵)))
112 ancom 460 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
113 elin 3899 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ ((𝑛𝑖) ∈ 𝐵 ∧ (𝑛𝑖) ∈ (0..^𝑁)))
114112, 113bitr4i 277 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑛𝑖) ∈ (0..^𝑁) ∧ (𝑛𝑖) ∈ 𝐵) ↔ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))
115111, 114bitr2di 287 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)) ↔ (𝑛𝑖) ∈ 𝐵))
116115anbi2d 628 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (0..^𝑁)) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
11785, 116sylan2 592 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑖 ∈ (0..^𝑁)) ∧ 𝑛 ∈ (ℕ0 ∩ (0..^𝑁))) → ((𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁))) ↔ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)))
118117rabbidva 3402 . . . . . . . . . . . . . . . . . . 19 ((𝜑𝑖 ∈ (0..^𝑁)) → {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)})
119 inrab2 4238 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))}
120 inrab2 4238 . . . . . . . . . . . . . . . . . . 19 ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)) = {𝑛 ∈ (ℕ0 ∩ (0..^𝑁)) ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)}
121118, 119, 1203eqtr4g 2804 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑖 ∈ (0..^𝑁)) → ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁)) = ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁)))
122121oveq2d 7271 . . . . . . . . . . . . . . . . 17 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) = (((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))))
123122ineq1d 4142 . . . . . . . . . . . . . . . 16 ((𝜑𝑖 ∈ (0..^𝑁)) → ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ (𝐵 ∩ (0..^𝑁)))} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12477, 84, 1233eqtrd 2782 . . . . . . . . . . . . . . 15 ((𝜑𝑖 ∈ (0..^𝑁)) → ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)))
12574, 124eqeq12d 2754 . . . . . . . . . . . . . 14 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)) ↔ ((((𝑃𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁)) = ((((𝑄𝑖) ∩ (0..^𝑁)) sadd ({𝑛 ∈ ℕ0 ∣ (𝑖𝐴 ∧ (𝑛𝑖) ∈ 𝐵)} ∩ (0..^𝑁))) ∩ (0..^𝑁))))
12659, 125syl5ibr 245 . . . . . . . . . . . . 13 ((𝜑𝑖 ∈ (0..^𝑁)) → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁))))
127126expcom 413 . . . . . . . . . . . 12 (𝑖 ∈ (0..^𝑁) → (𝜑 → (((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁)) → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
128127a2d 29 . . . . . . . . . . 11 (𝑖 ∈ (0..^𝑁) → ((𝜑 → ((𝑃𝑖) ∩ (0..^𝑁)) = ((𝑄𝑖) ∩ (0..^𝑁))) → (𝜑 → ((𝑃‘(𝑖 + 1)) ∩ (0..^𝑁)) = ((𝑄‘(𝑖 + 1)) ∩ (0..^𝑁)))))
12931, 37, 43, 49, 57, 128fzind2 13433 . . . . . . . . . 10 (𝑁 ∈ (0...𝑁) → (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁))))
13025, 129mpcom 38 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
131130adantr 480 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → ((𝑃𝑁) ∩ (0..^𝑁)) = ((𝑄𝑁) ∩ (0..^𝑁)))
132131eleq2d 2824 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁))))
133 elin 3899 . . . . . . . . 9 (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑃𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
134133rbaib 538 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
135134adantl 481 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑃𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑃𝑁)))
136 elin 3899 . . . . . . . . 9 (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝑄𝑁) ∧ 𝑘 ∈ (0..^𝑁)))
137136rbaib 538 . . . . . . . 8 (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
138137adantl 481 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ ((𝑄𝑁) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (𝑄𝑁)))
139132, 135, 1383bitr3d 308 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑃𝑁) ↔ 𝑘 ∈ (𝑄𝑁)))
14052adantr 480 . . . . . . . 8 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝐵 ∩ (0..^𝑁)) ⊆ ℕ0)
1412, 140, 53, 13smupval 16123 . . . . . . 7 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑄𝑁) = ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))
142141eleq2d 2824 . . . . . 6 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝑄𝑁) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
14322, 139, 1423bitrd 304 . . . . 5 ((𝜑𝑘 ∈ (0..^𝑁)) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁)))))
144143ex 412 . . . 4 (𝜑 → (𝑘 ∈ (0..^𝑁) → (𝑘 ∈ (𝐴 smul 𝐵) ↔ 𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))))))
145144pm5.32rd 577 . . 3 (𝜑 → ((𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁))))
146 elin 3899 . . 3 (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ (𝑘 ∈ (𝐴 smul 𝐵) ∧ 𝑘 ∈ (0..^𝑁)))
147 elin 3899 . . 3 (𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)) ↔ (𝑘 ∈ ((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∧ 𝑘 ∈ (0..^𝑁)))
148145, 146, 1473bitr4g 313 . 2 (𝜑 → (𝑘 ∈ ((𝐴 smul 𝐵) ∩ (0..^𝑁)) ↔ 𝑘 ∈ (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁))))
149148eqrdv 2736 1 (𝜑 → ((𝐴 smul 𝐵) ∩ (0..^𝑁)) = (((𝐴 ∩ (0..^𝑁)) smul (𝐵 ∩ (0..^𝑁))) ∩ (0..^𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  {crab 3067  cin 3882  wss 3883  c0 4253  ifcif 4456  𝒫 cpw 4530   class class class wbr 5070  cmpt 5153  wf 6414  cfv 6418  (class class class)co 7255  cmpo 7257  0cc0 10802  1c1 10803   + caddc 10805   < clt 10940  cle 10941  cmin 11135  cn 11903  0cn0 12163  cz 12249  cuz 12511  ...cfz 13168  ..^cfzo 13311  seqcseq 13649   sadd csad 16055   smul csmu 16056
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-inf2 9329  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-xor 1504  df-tru 1542  df-fal 1552  df-had 1596  df-cad 1610  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-disj 5036  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-oi 9199  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-clim 15125  df-sum 15326  df-dvds 15892  df-bits 16057  df-sad 16086  df-smu 16111
This theorem is referenced by:  smueq  16126
  Copyright terms: Public domain W3C validator