MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  mndifsplit Structured version   Visualization version   GIF version

Theorem mndifsplit 20203
Description: Lemma for maducoeval2 20207. (Contributed by SO, 16-Jul-2018.)
Hypotheses
Ref Expression
mndifsplit.b 𝐵 = (Base‘𝑀)
mndifsplit.0g 0 = (0g𝑀)
mndifsplit.pg + = (+g𝑀)
Assertion
Ref Expression
mndifsplit ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))

Proof of Theorem mndifsplit
StepHypRef Expression
1 pm2.21 118 . . . 4 (¬ (𝜑𝜓) → ((𝜑𝜓) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 ))))
21imp 443 . . 3 ((¬ (𝜑𝜓) ∧ (𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
323ad2antl3 1217 . 2 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
4 mndifsplit.b . . . . . 6 𝐵 = (Base‘𝑀)
5 mndifsplit.pg . . . . . 6 + = (+g𝑀)
6 mndifsplit.0g . . . . . 6 0 = (0g𝑀)
74, 5, 6mndrid 17081 . . . . 5 ((𝑀 ∈ Mnd ∧ 𝐴𝐵) → (𝐴 + 0 ) = 𝐴)
873adant3 1073 . . . 4 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → (𝐴 + 0 ) = 𝐴)
98adantr 479 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (𝜑 ∧ ¬ 𝜓)) → (𝐴 + 0 ) = 𝐴)
10 iftrue 4041 . . . . 5 (𝜑 → if(𝜑, 𝐴, 0 ) = 𝐴)
11 iffalse 4044 . . . . 5 𝜓 → if(𝜓, 𝐴, 0 ) = 0 )
1210, 11oveqan12d 6546 . . . 4 ((𝜑 ∧ ¬ 𝜓) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = (𝐴 + 0 ))
1312adantl 480 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (𝜑 ∧ ¬ 𝜓)) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = (𝐴 + 0 ))
14 iftrue 4041 . . . . 5 ((𝜑𝜓) → if((𝜑𝜓), 𝐴, 0 ) = 𝐴)
1514orcs 407 . . . 4 (𝜑 → if((𝜑𝜓), 𝐴, 0 ) = 𝐴)
1615ad2antrl 759 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (𝜑 ∧ ¬ 𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = 𝐴)
179, 13, 163eqtr4rd 2654 . 2 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (𝜑 ∧ ¬ 𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
184, 5, 6mndlid 17080 . . . . 5 ((𝑀 ∈ Mnd ∧ 𝐴𝐵) → ( 0 + 𝐴) = 𝐴)
19183adant3 1073 . . . 4 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → ( 0 + 𝐴) = 𝐴)
2019adantr 479 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑𝜓)) → ( 0 + 𝐴) = 𝐴)
21 iffalse 4044 . . . . 5 𝜑 → if(𝜑, 𝐴, 0 ) = 0 )
22 iftrue 4041 . . . . 5 (𝜓 → if(𝜓, 𝐴, 0 ) = 𝐴)
2321, 22oveqan12d 6546 . . . 4 ((¬ 𝜑𝜓) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = ( 0 + 𝐴))
2423adantl 480 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑𝜓)) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = ( 0 + 𝐴))
2514olcs 408 . . . 4 (𝜓 → if((𝜑𝜓), 𝐴, 0 ) = 𝐴)
2625ad2antll 760 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = 𝐴)
2720, 24, 263eqtr4rd 2654 . 2 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
28 simp1 1053 . . . . 5 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → 𝑀 ∈ Mnd)
294, 6mndidcl 17077 . . . . . 6 (𝑀 ∈ Mnd → 0𝐵)
3028, 29syl 17 . . . . 5 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → 0𝐵)
314, 5, 6mndlid 17080 . . . . 5 ((𝑀 ∈ Mnd ∧ 0𝐵) → ( 0 + 0 ) = 0 )
3228, 30, 31syl2anc 690 . . . 4 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → ( 0 + 0 ) = 0 )
3332adantr 479 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑 ∧ ¬ 𝜓)) → ( 0 + 0 ) = 0 )
3421, 11oveqan12d 6546 . . . 4 ((¬ 𝜑 ∧ ¬ 𝜓) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = ( 0 + 0 ))
3534adantl 480 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑 ∧ ¬ 𝜓)) → (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )) = ( 0 + 0 ))
36 ioran 509 . . . . 5 (¬ (𝜑𝜓) ↔ (¬ 𝜑 ∧ ¬ 𝜓))
37 iffalse 4044 . . . . 5 (¬ (𝜑𝜓) → if((𝜑𝜓), 𝐴, 0 ) = 0 )
3836, 37sylbir 223 . . . 4 ((¬ 𝜑 ∧ ¬ 𝜓) → if((𝜑𝜓), 𝐴, 0 ) = 0 )
3938adantl 480 . . 3 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑 ∧ ¬ 𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = 0 )
4033, 35, 393eqtr4rd 2654 . 2 (((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) ∧ (¬ 𝜑 ∧ ¬ 𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
413, 17, 27, 404casesdan 987 1 ((𝑀 ∈ Mnd ∧ 𝐴𝐵 ∧ ¬ (𝜑𝜓)) → if((𝜑𝜓), 𝐴, 0 ) = (if(𝜑, 𝐴, 0 ) + if(𝜓, 𝐴, 0 )))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 381  wa 382  w3a 1030   = wceq 1474  wcel 1976  ifcif 4035  cfv 5790  (class class class)co 6527  Basecbs 15641  +gcplusg 15714  0gc0g 15869  Mndcmnd 17063
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2032  ax-13 2232  ax-ext 2589  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-ral 2900  df-rex 2901  df-reu 2902  df-rmo 2903  df-rab 2904  df-v 3174  df-sbc 3402  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-nul 3874  df-if 4036  df-sn 4125  df-pr 4127  df-op 4131  df-uni 4367  df-br 4578  df-opab 4638  df-mpt 4639  df-id 4943  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-iota 5754  df-fun 5792  df-fv 5798  df-riota 6489  df-ov 6530  df-0g 15871  df-mgm 17011  df-sgrp 17053  df-mnd 17064
This theorem is referenced by:  maducoeval2  20207  madugsum  20210
  Copyright terms: Public domain W3C validator