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 32641
Description: The converse of ifbi 4480 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 4499 . . 3 (if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵) ↔ ((𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) ∨ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)))
2 ifnetrue 32639 . . . . . 6 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) → 𝜑)
32adantrl 723 . . . . 5 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → 𝜑)
4 simprl 777 . . . . 5 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → 𝜓)
53, 42thd 267 . . . 4 ((𝐴𝐵 ∧ (𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴)) → (𝜑𝜓))
6 ifnefals 32640 . . . . . 6 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵) → ¬ 𝜑)
76adantrl 723 . . . . 5 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → ¬ 𝜑)
8 simprl 777 . . . . 5 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → ¬ 𝜓)
97, 82falsed 378 . . . 4 ((𝐴𝐵 ∧ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵)) → (𝜑𝜓))
105, 9jaodan 966 . . 3 ((𝐴𝐵 ∧ ((𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐴) ∨ (¬ 𝜓 ∧ if(𝜑, 𝐴, 𝐵) = 𝐵))) → (𝜑𝜓))
111, 10sylan2b 601 . 2 ((𝐴𝐵 ∧ if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵)) → (𝜑𝜓))
12 ifbi 4480 . . 3 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
1312adantl 483 . 2 ((𝐴𝐵 ∧ (𝜑𝜓)) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
1411, 13impbida 807 1 (𝐴𝐵 → (if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 397  wo 854   = wceq 1548  wne 2936  ifcif 4457
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1975  ax-7 2016  ax-8 2123  ax-9 2131  ax-ext 2713
This theorem depends on definitions:  df-bi 209  df-an 398  df-or 855  df-ex 1788  df-sb 2075  df-clab 2720  df-cleq 2733  df-clel 2816  df-ne 2937  df-if 4458
This theorem is referenced by:  ply1moneq  33683
  Copyright terms: Public domain W3C validator