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 16111
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 16056 . 2 class smul
2 vx . . 3 setvar 𝑥
3 vy . . 3 setvar 𝑦
4 cn0 12163 . . . 4 class 0
54cpw 4530 . . 3 class 𝒫 ℕ0
6 vk . . . . . 6 setvar 𝑘
76cv 1538 . . . . 5 class 𝑘
8 c1 10803 . . . . . . 7 class 1
9 caddc 10805 . . . . . . 7 class +
107, 8, 9co 7255 . . . . . 6 class (𝑘 + 1)
11 vp . . . . . . . 8 setvar 𝑝
12 vm . . . . . . . 8 setvar 𝑚
1311cv 1538 . . . . . . . . 9 class 𝑝
1412, 2wel 2109 . . . . . . . . . . 11 wff 𝑚𝑥
15 vn . . . . . . . . . . . . . 14 setvar 𝑛
1615cv 1538 . . . . . . . . . . . . 13 class 𝑛
1712cv 1538 . . . . . . . . . . . . 13 class 𝑚
18 cmin 11135 . . . . . . . . . . . . 13 class
1916, 17, 18co 7255 . . . . . . . . . . . 12 class (𝑛𝑚)
203cv 1538 . . . . . . . . . . . 12 class 𝑦
2119, 20wcel 2108 . . . . . . . . . . 11 wff (𝑛𝑚) ∈ 𝑦
2214, 21wa 395 . . . . . . . . . 10 wff (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)
2322, 15, 4crab 3067 . . . . . . . . 9 class {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)}
24 csad 16055 . . . . . . . . 9 class sadd
2513, 23, 24co 7255 . . . . . . . 8 class (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})
2611, 12, 5, 4, 25cmpo 7257 . . . . . . 7 class (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)}))
27 cc0 10802 . . . . . . . . . 10 class 0
2816, 27wceq 1539 . . . . . . . . 9 wff 𝑛 = 0
29 c0 4253 . . . . . . . . 9 class
3016, 8, 18co 7255 . . . . . . . . 9 class (𝑛 − 1)
3128, 29, 30cif 4456 . . . . . . . 8 class if(𝑛 = 0, ∅, (𝑛 − 1))
3215, 4, 31cmpt 5153 . . . . . . 7 class (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))
3326, 32, 27cseq 13649 . . . . . 6 class seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
3410, 33cfv 6418 . . . . 5 class (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))
357, 34wcel 2108 . . . 4 wff 𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))
3635, 6, 4crab 3067 . . 3 class {𝑘 ∈ ℕ0𝑘 ∈ (seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝑥 ∧ (𝑛𝑚) ∈ 𝑦)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))‘(𝑘 + 1))}
372, 3, 5, 5, 36cmpo 7257 . 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  16112
  Copyright terms: Public domain W3C validator