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

Theorem ifnebib 32216
Description: The converse of ifbi 4550 holds if the two values are not equal. (Contributed by Thierry Arnoux, 20-Feb-2025.)
Assertion
Ref Expression
ifnebib (𝐴𝐵 → (if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵) ↔ (𝜑𝜓)))

Proof of Theorem ifnebib
StepHypRef Expression
1 eqif 4569 . . 3 (if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵) ↔ ((𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) ∨ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)))
2 ifnetrue 32214 . . . . . 6 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) → 𝜑)
32adantrl 713 . . . . 5 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → 𝜑)
4 simprl 768 . . . . 5 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → 𝜓)
53, 42thd 265 . . . 4 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → (𝜑𝜓))
6 ifnefals 32215 . . . . . 6 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵) → ¬ 𝜑)
76adantrl 713 . . . . 5 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → ¬ 𝜑)
8 simprl 768 . . . . 5 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → ¬ 𝜓)
97, 82falsed 376 . . . 4 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → (𝜑𝜓))
105, 9jaodan 955 . . 3 ((𝐴𝐵 ∧ ((𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) ∨ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵))) → (𝜑𝜓))
111, 10sylan2b 593 . 2 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵)) → (𝜑𝜓))
12 ifbi 4550 . . 3 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
1312adantl 481 . 2 ((𝐴𝐵 ∧ (𝜑𝜓)) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
1411, 13impbida 798 1 (𝐴𝐵 → (if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 844   = wceq 1540  wne 2939  ifcif 4528
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-ext 2702
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-ex 1781  df-sb 2067  df-clab 2709  df-cleq 2723  df-clel 2809  df-ne 2940  df-if 4529
This theorem is referenced by:  ply1moneq  33107
  Copyright terms: Public domain W3C validator