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

Theorem elim2if 29363
Description: Elimination of two conditional operators contained in a wff  ch. (Contributed by Thierry Arnoux, 25-Jan-2017.)
Hypotheses
Ref Expression
elim2if.1  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  A  -> 
( ch  <->  th )
)
elim2if.2  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  B  -> 
( ch  <->  ta )
)
elim2if.3  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  C  -> 
( ch  <->  et )
)
Assertion
Ref Expression
elim2if  |-  ( ch  <->  ( ( ph  /\  th )  \/  ( -.  ph 
/\  ( ( ps 
/\  ta )  \/  ( -.  ps  /\  et ) ) ) ) )

Proof of Theorem elim2if
StepHypRef Expression
1 iftrue 4092 . . 3  |-  ( ph  ->  if ( ph ,  A ,  if ( ps ,  B ,  C ) )  =  A )
2 elim2if.1 . . 3  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  A  -> 
( ch  <->  th )
)
31, 2syl 17 . 2  |-  ( ph  ->  ( ch  <->  th )
)
4 iffalse 4095 . . . . 5  |-  ( -. 
ph  ->  if ( ph ,  A ,  if ( ps ,  B ,  C ) )  =  if ( ps ,  B ,  C )
)
54eqeq1d 2624 . . . 4  |-  ( -. 
ph  ->  ( if (
ph ,  A ,  if ( ps ,  B ,  C ) )  =  B  <->  if ( ps ,  B ,  C )  =  B ) )
6 elim2if.2 . . . 4  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  B  -> 
( ch  <->  ta )
)
75, 6syl6bir 244 . . 3  |-  ( -. 
ph  ->  ( if ( ps ,  B ,  C )  =  B  ->  ( ch  <->  ta )
) )
84eqeq1d 2624 . . . 4  |-  ( -. 
ph  ->  ( if (
ph ,  A ,  if ( ps ,  B ,  C ) )  =  C  <->  if ( ps ,  B ,  C )  =  C ) )
9 elim2if.3 . . . 4  |-  ( if ( ph ,  A ,  if ( ps ,  B ,  C )
)  =  C  -> 
( ch  <->  et )
)
108, 9syl6bir 244 . . 3  |-  ( -. 
ph  ->  ( if ( ps ,  B ,  C )  =  C  ->  ( ch  <->  et )
) )
117, 10elimifd 29362 . 2  |-  ( -. 
ph  ->  ( ch  <->  ( ( ps  /\  ta )  \/  ( -.  ps  /\  et ) ) ) )
123, 11cases 992 1  |-  ( ch  <->  ( ( ph  /\  th )  \/  ( -.  ph 
/\  ( ( ps 
/\  ta )  \/  ( -.  ps  /\  et ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 196    \/ wo 383    /\ wa 384    = wceq 1483   ifcif 4086
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-if 4087
This theorem is referenced by:  elim2ifim  29364
  Copyright terms: Public domain W3C validator