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

Theorem smuval 15820
Description: Define the addition of two bit sequences, using df-had 1595 and df-cad 1609 bit operations. (Contributed by Mario Carneiro, 9-Sep-2016.)
Hypotheses
Ref Expression
smuval.a (𝜑𝐴 ⊆ ℕ0)
smuval.b (𝜑𝐵 ⊆ ℕ0)
smuval.p 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
smuval.n (𝜑𝑁 ∈ ℕ0)
Assertion
Ref Expression
smuval (𝜑 → (𝑁 ∈ (𝐴 smul 𝐵) ↔ 𝑁 ∈ (𝑃‘(𝑁 + 1))))
Distinct variable groups:   𝑚,𝑛,𝑝,𝐴   𝑛,𝑁   𝜑,𝑛   𝐵,𝑚,𝑛,𝑝
Allowed substitution hints:   𝜑(𝑚,𝑝)   𝑃(𝑚,𝑛,𝑝)   𝑁(𝑚,𝑝)

Proof of Theorem smuval
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 smuval.a . . . 4 (𝜑𝐴 ⊆ ℕ0)
2 smuval.b . . . 4 (𝜑𝐵 ⊆ ℕ0)
3 smuval.p . . . 4 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
41, 2, 3smufval 15816 . . 3 (𝜑 → (𝐴 smul 𝐵) = {𝑘 ∈ ℕ0𝑘 ∈ (𝑃‘(𝑘 + 1))})
54eleq2d 2875 . 2 (𝜑 → (𝑁 ∈ (𝐴 smul 𝐵) ↔ 𝑁 ∈ {𝑘 ∈ ℕ0𝑘 ∈ (𝑃‘(𝑘 + 1))}))
6 smuval.n . . 3 (𝜑𝑁 ∈ ℕ0)
7 id 22 . . . . 5 (𝑘 = 𝑁𝑘 = 𝑁)
8 fvoveq1 7158 . . . . 5 (𝑘 = 𝑁 → (𝑃‘(𝑘 + 1)) = (𝑃‘(𝑁 + 1)))
97, 8eleq12d 2884 . . . 4 (𝑘 = 𝑁 → (𝑘 ∈ (𝑃‘(𝑘 + 1)) ↔ 𝑁 ∈ (𝑃‘(𝑁 + 1))))
109elrab3 3629 . . 3 (𝑁 ∈ ℕ0 → (𝑁 ∈ {𝑘 ∈ ℕ0𝑘 ∈ (𝑃‘(𝑘 + 1))} ↔ 𝑁 ∈ (𝑃‘(𝑁 + 1))))
116, 10syl 17 . 2 (𝜑 → (𝑁 ∈ {𝑘 ∈ ℕ0𝑘 ∈ (𝑃‘(𝑘 + 1))} ↔ 𝑁 ∈ (𝑃‘(𝑁 + 1))))
125, 11bitrd 282 1 (𝜑 → (𝑁 ∈ (𝐴 smul 𝐵) ↔ 𝑁 ∈ (𝑃‘(𝑁 + 1))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  {crab 3110  wss 3881  c0 4243  ifcif 4425  𝒫 cpw 4497  cmpt 5110  cfv 6324  (class class class)co 7135  cmpo 7137  0cc0 10526  1c1 10527   + caddc 10529  cmin 10859  0cn0 11885  seqcseq 13364   sadd csad 15759   smul csmu 15760
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 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-1cn 10584  ax-addcl 10586
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-nn 11626  df-n0 11886  df-seq 13365  df-smu 15815
This theorem is referenced by:  smuval2  15821  smupvallem  15822  smu01lem  15824
  Copyright terms: Public domain W3C validator