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

Theorem signspval 33563
Description: The value of the skipping 0 sign operation. (Contributed by Thierry Arnoux, 9-Sep-2018.)
Hypothesis
Ref Expression
signsw.p âĻĢ = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} â†Ķ if(𝑏 = 0, 𝑎, 𝑏))
Assertion
Ref Expression
signspval ((𝑋 ∈ {-1, 0, 1} ∧ 𝑌 ∈ {-1, 0, 1}) → (𝑋 âĻĢ 𝑌) = if(𝑌 = 0, 𝑋, 𝑌))
Distinct variable groups:   𝑎,𝑏,𝑋   𝑌,𝑎,𝑏
Allowed substitution hints:   âĻĢ (𝑎,𝑏)

Proof of Theorem signspval
StepHypRef Expression
1 ifcl 4574 . 2 ((𝑋 ∈ {-1, 0, 1} ∧ 𝑌 ∈ {-1, 0, 1}) → if(𝑌 = 0, 𝑋, 𝑌) ∈ {-1, 0, 1})
2 ifeq1 4533 . . 3 (𝑎 = 𝑋 → if(𝑏 = 0, 𝑎, 𝑏) = if(𝑏 = 0, 𝑋, 𝑏))
3 eqeq1 2737 . . . 4 (𝑏 = 𝑌 → (𝑏 = 0 ↔ 𝑌 = 0))
4 id 22 . . . 4 (𝑏 = 𝑌 → 𝑏 = 𝑌)
53, 4ifbieq2d 4555 . . 3 (𝑏 = 𝑌 → if(𝑏 = 0, 𝑋, 𝑏) = if(𝑌 = 0, 𝑋, 𝑌))
6 signsw.p . . 3 âĻĢ = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} â†Ķ if(𝑏 = 0, 𝑎, 𝑏))
72, 5, 6ovmpog 7567 . 2 ((𝑋 ∈ {-1, 0, 1} ∧ 𝑌 ∈ {-1, 0, 1} ∧ if(𝑌 = 0, 𝑋, 𝑌) ∈ {-1, 0, 1}) → (𝑋 âĻĢ 𝑌) = if(𝑌 = 0, 𝑋, 𝑌))
81, 7mpd3an3 1463 1 ((𝑋 ∈ {-1, 0, 1} ∧ 𝑌 ∈ {-1, 0, 1}) → (𝑋 âĻĢ 𝑌) = if(𝑌 = 0, 𝑋, 𝑌))
Colors of variables: wff setvar class
Syntax hints:   → wi 4   ∧ wa 397   = wceq 1542   ∈ wcel 2107  ifcif 4529  {ctp 4633  (class class class)co 7409   ∈ cmpo 7411  0cc0 11110  1c1 11111  -cneg 11445
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5300  ax-nul 5307  ax-pr 5428
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ral 3063  df-rex 3072  df-rab 3434  df-v 3477  df-sbc 3779  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-br 5150  df-opab 5212  df-id 5575  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-iota 6496  df-fun 6546  df-fv 6552  df-ov 7412  df-oprab 7413  df-mpo 7414
This theorem is referenced by:  signsw0glem  33564  signswmnd  33568  signswrid  33569  signswlid  33570  signswn0  33571  signswch  33572
  Copyright terms: Public domain W3C validator