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

Definition df-smu 16183
Description: Define the multiplication of two bit sequences, using repeated sequence addition. (Contributed by Mario Carneiro, 9-Sep-2016.)
Assertion
Ref Expression
df-smu smul = (𝑥 ∈ 𝒫 ℕ0, 𝑦 ∈ 𝒫 ℕ0 ↦ {𝑘 ∈ ℕ0𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))})
Distinct variable group:   𝑘,𝑚,𝑛,𝑝,𝑥,𝑦

Detailed syntax breakdown of Definition df-smu
StepHypRef Expression
1 csmu 16128 . 2 class smul
2 vx . . 3 setvar 𝑥
3 vy . . 3 setvar 𝑦
4 cn0 12233 . . . 4 class 0
54cpw 4533 . . 3 class 𝒫 ℕ0
6 vk . . . . . 6 setvar 𝑘
76cv 1538 . . . . 5 class 𝑘
8 c1 10872 . . . . . . 7 class 1
9 caddc 10874 . . . . . . 7 class +
107, 8, 9co 7275 . . . . . 6 class (𝑘 + 1)
11 vp . . . . . . . 8 setvar 𝑝
12 vm . . . . . . . 8 setvar 𝑚
1311cv 1538 . . . . . . . . 9 class 𝑝
1412, 2wel 2107 . . . . . . . . . . 11 wff 𝑚𝑥
15 vn . . . . . . . . . . . . . 14 setvar 𝑛
1615cv 1538 . . . . . . . . . . . . 13 class 𝑛
1712cv 1538 . . . . . . . . . . . . 13 class 𝑚
18 cmin 11205 . . . . . . . . . . . . 13 class
1916, 17, 18co 7275 . . . . . . . . . . . 12 class (𝑛𝑚)
203cv 1538 . . . . . . . . . . . 12 class 𝑦
2119, 20wcel 2106 . . . . . . . . . . 11 wff (𝑛𝑚) ∈ 𝑦
2214, 21wa 396 . . . . . . . . . 10 wff (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)
2322, 15, 4crab 3068 . . . . . . . . 9 class {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)}
24 csad 16127 . . . . . . . . 9 class sadd
2513, 23, 24co 7275 . . . . . . . 8 class (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})
2611, 12, 5, 4, 25cmpo 7277 . . . . . . 7 class (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)}))
27 cc0 10871 . . . . . . . . . 10 class 0
2816, 27wceq 1539 . . . . . . . . 9 wff 𝑛 = 0
29 c0 4256 . . . . . . . . 9 class
3016, 8, 18co 7275 . . . . . . . . 9 class (𝑛 − 1)
3128, 29, 30cif 4459 . . . . . . . 8 class if(𝑛 = 0, ∅, (𝑛 − 1))
3215, 4, 31cmpt 5157 . . . . . . 7 class (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))
3326, 32, 27cseq 13721 . . . . . 6 class seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
3410, 33cfv 6433 . . . . 5 class (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))
357, 34wcel 2106 . . . 4 wff 𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))
3635, 6, 4crab 3068 . . 3 class {𝑘 ∈ ℕ0𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))}
372, 3, 5, 5, 36cmpo 7277 . 2 class (𝑥 ∈ 𝒫 ℕ0, 𝑦 ∈ 𝒫 ℕ0 ↦ {𝑘 ∈ ℕ0𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))})
381, 37wceq 1539 1 wff smul = (𝑥 ∈ 𝒫 ℕ0, 𝑦 ∈ 𝒫 ℕ0 ↦ {𝑘 ∈ ℕ0𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))})
Colors of variables: wff setvar class
This definition is referenced by:  smufval  16184
  Copyright terms: Public domain W3C validator