ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  xordidc Unicode version

Theorem xordidc 1389
Description: Conjunction distributes over exclusive-or, for decidable propositions. This is one way to interpret the distributive law of multiplication over addition in modulo 2 arithmetic. (Contributed by Jim Kingdon, 14-Jul-2018.)
Assertion
Ref Expression
xordidc  |-  (DECID  ph  ->  (DECID  ps 
->  (DECID  ch  ->  ( ( ph  /\  ( ps  \/_  ch ) )  <->  ( ( ph  /\  ps )  \/_  ( ph  /\  ch )
) ) ) ) )

Proof of Theorem xordidc
StepHypRef Expression
1 dcbi 926 . . . . 5  |-  (DECID  ps  ->  (DECID  ch 
-> DECID  ( ps  <->  ch ) ) )
21imp 123 . . . 4  |-  ( (DECID  ps 
/\ DECID  ch )  -> DECID  ( ps  <->  ch )
)
3 annimdc 927 . . . . . 6  |-  (DECID  ph  ->  (DECID  ( ps  <->  ch )  ->  (
( ph  /\  -.  ( ps 
<->  ch ) )  <->  -.  ( ph  ->  ( ps  <->  ch )
) ) ) )
43imp 123 . . . . 5  |-  ( (DECID  ph  /\ DECID  ( ps  <->  ch ) )  -> 
( ( ph  /\  -.  ( ps  <->  ch )
)  <->  -.  ( ph  ->  ( ps  <->  ch )
) ) )
5 pm5.32 449 . . . . . 6  |-  ( (
ph  ->  ( ps  <->  ch )
)  <->  ( ( ph  /\ 
ps )  <->  ( ph  /\ 
ch ) ) )
65notbii 658 . . . . 5  |-  ( -.  ( ph  ->  ( ps 
<->  ch ) )  <->  -.  (
( ph  /\  ps )  <->  (
ph  /\  ch )
) )
74, 6bitrdi 195 . . . 4  |-  ( (DECID  ph  /\ DECID  ( ps  <->  ch ) )  -> 
( ( ph  /\  -.  ( ps  <->  ch )
)  <->  -.  ( ( ph  /\  ps )  <->  ( ph  /\ 
ch ) ) ) )
82, 7sylan2 284 . . 3  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> 
( ( ph  /\  -.  ( ps  <->  ch )
)  <->  -.  ( ( ph  /\  ps )  <->  ( ph  /\ 
ch ) ) ) )
9 xornbidc 1381 . . . . . 6  |-  (DECID  ps  ->  (DECID  ch 
->  ( ( ps  \/_  ch )  <->  -.  ( ps  <->  ch ) ) ) )
109imp 123 . . . . 5  |-  ( (DECID  ps 
/\ DECID  ch )  ->  ( ( ps  \/_  ch )  <->  -.  ( ps  <->  ch )
) )
1110adantl 275 . . . 4  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> 
( ( ps  \/_  ch )  <->  -.  ( ps  <->  ch ) ) )
1211anbi2d 460 . . 3  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> 
( ( ph  /\  ( ps  \/_  ch )
)  <->  ( ph  /\  -.  ( ps  <->  ch )
) ) )
13 dcan2 924 . . . . . 6  |-  (DECID  ph  ->  (DECID  ps 
-> DECID  ( ph  /\  ps )
) )
1413imp 123 . . . . 5  |-  ( (DECID  ph  /\ DECID  ps )  -> DECID 
( ph  /\  ps )
)
1514adantrr 471 . . . 4  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> DECID  ( ph  /\  ps ) )
16 dcan2 924 . . . . . 6  |-  (DECID  ph  ->  (DECID  ch 
-> DECID  ( ph  /\  ch )
) )
1716imp 123 . . . . 5  |-  ( (DECID  ph  /\ DECID  ch )  -> DECID 
( ph  /\  ch )
)
1817adantrl 470 . . . 4  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> DECID  ( ph  /\  ch ) )
19 xornbidc 1381 . . . 4  |-  (DECID  ( ph  /\ 
ps )  ->  (DECID  ( ph  /\  ch )  -> 
( ( ( ph  /\ 
ps )  \/_  ( ph  /\  ch ) )  <->  -.  ( ( ph  /\  ps )  <->  ( ph  /\  ch ) ) ) ) )
2015, 18, 19sylc 62 . . 3  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> 
( ( ( ph  /\ 
ps )  \/_  ( ph  /\  ch ) )  <->  -.  ( ( ph  /\  ps )  <->  ( ph  /\  ch ) ) ) )
218, 12, 203bitr4d 219 . 2  |-  ( (DECID  ph  /\  (DECID  ps  /\ DECID  ch ) )  -> 
( ( ph  /\  ( ps  \/_  ch )
)  <->  ( ( ph  /\ 
ps )  \/_  ( ph  /\  ch ) ) ) )
2221exp32 363 1  |-  (DECID  ph  ->  (DECID  ps 
->  (DECID  ch  ->  ( ( ph  /\  ( ps  \/_  ch ) )  <->  ( ( ph  /\  ps )  \/_  ( ph  /\  ch )
) ) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104  DECID wdc 824    \/_ wxo 1365
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699
This theorem depends on definitions:  df-bi 116  df-stab 821  df-dc 825  df-xor 1366
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator