Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  signswn0 Structured version   Visualization version   GIF version

Theorem signswn0 33386
Description: The zero-skipping operation propagages nonzeros. (Contributed by Thierry Arnoux, 11-Oct-2018.)
Hypotheses
Ref Expression
signsw.p ⨣ = (π‘Ž ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, π‘Ž, 𝑏))
signsw.w π‘Š = {⟨(Baseβ€˜ndx), {-1, 0, 1}⟩, ⟨(+gβ€˜ndx), ⨣ ⟩}
Assertion
Ref Expression
signswn0 (((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) β†’ (𝑋 ⨣ π‘Œ) β‰  0)
Distinct variable groups:   π‘Ž,𝑏,𝑋   π‘Œ,π‘Ž,𝑏
Allowed substitution hints:   ⨣ (π‘Ž,𝑏)   π‘Š(π‘Ž,𝑏)

Proof of Theorem signswn0
StepHypRef Expression
1 signsw.p . . . 4 ⨣ = (π‘Ž ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, π‘Ž, 𝑏))
21signspval 33378 . . 3 ((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) β†’ (𝑋 ⨣ π‘Œ) = if(π‘Œ = 0, 𝑋, π‘Œ))
32adantr 481 . 2 (((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) β†’ (𝑋 ⨣ π‘Œ) = if(π‘Œ = 0, 𝑋, π‘Œ))
4 neeq1 3002 . . 3 (𝑋 = if(π‘Œ = 0, 𝑋, π‘Œ) β†’ (𝑋 β‰  0 ↔ if(π‘Œ = 0, 𝑋, π‘Œ) β‰  0))
5 neeq1 3002 . . 3 (π‘Œ = if(π‘Œ = 0, 𝑋, π‘Œ) β†’ (π‘Œ β‰  0 ↔ if(π‘Œ = 0, 𝑋, π‘Œ) β‰  0))
6 simplr 767 . . 3 ((((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) ∧ π‘Œ = 0) β†’ 𝑋 β‰  0)
7 simpr 485 . . . 4 ((((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) ∧ Β¬ π‘Œ = 0) β†’ Β¬ π‘Œ = 0)
87neqned 2946 . . 3 ((((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) ∧ Β¬ π‘Œ = 0) β†’ π‘Œ β‰  0)
94, 5, 6, 8ifbothda 4557 . 2 (((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) β†’ if(π‘Œ = 0, 𝑋, π‘Œ) β‰  0)
103, 9eqnetrd 3007 1 (((𝑋 ∈ {-1, 0, 1} ∧ π‘Œ ∈ {-1, 0, 1}) ∧ 𝑋 β‰  0) β†’ (𝑋 ⨣ π‘Œ) β‰  0)
Colors of variables: wff setvar class
Syntax hints:  Β¬ wn 3   β†’ wi 4   ∧ wa 396   = wceq 1541   ∈ wcel 2106   β‰  wne 2939  ifcif 4519  {cpr 4621  {ctp 4623  βŸ¨cop 4625  β€˜cfv 6529  (class class class)co 7390   ∈ cmpo 7392  0cc0 11089  1c1 11090  -cneg 11424  ndxcnx 17105  Basecbs 17123  +gcplusg 17176
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-sep 5289  ax-nul 5296  ax-pr 5417
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-ral 3061  df-rex 3070  df-rab 3430  df-v 3472  df-sbc 3771  df-dif 3944  df-un 3946  df-in 3948  df-ss 3958  df-nul 4316  df-if 4520  df-sn 4620  df-pr 4622  df-op 4626  df-uni 4899  df-br 5139  df-opab 5201  df-id 5564  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-iota 6481  df-fun 6531  df-fv 6537  df-ov 7393  df-oprab 7394  df-mpo 7395
This theorem is referenced by:  signstfvneq0  33398
  Copyright terms: Public domain W3C validator