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

Theorem partfun 29475
Description: Rewrite a function defined by parts, using a mapping and an if construct, into a union of functions on disjoint domains. (Contributed by Thierry Arnoux, 30-Mar-2017.)
Assertion
Ref Expression
partfun (𝑥𝐴 ↦ if(𝑥𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴𝐵) ↦ 𝐷))

Proof of Theorem partfun
StepHypRef Expression
1 mptun 6025 . 2 (𝑥 ∈ ((𝐴𝐵) ∪ (𝐴𝐵)) ↦ if(𝑥𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷)))
2 inundif 4046 . . 3 ((𝐴𝐵) ∪ (𝐴𝐵)) = 𝐴
3 eqid 2622 . . 3 if(𝑥𝐵, 𝐶, 𝐷) = if(𝑥𝐵, 𝐶, 𝐷)
42, 3mpteq12i 4742 . 2 (𝑥 ∈ ((𝐴𝐵) ∪ (𝐴𝐵)) ↦ if(𝑥𝐵, 𝐶, 𝐷)) = (𝑥𝐴 ↦ if(𝑥𝐵, 𝐶, 𝐷))
5 elinel2 3800 . . . . 5 (𝑥 ∈ (𝐴𝐵) → 𝑥𝐵)
65iftrued 4094 . . . 4 (𝑥 ∈ (𝐴𝐵) → if(𝑥𝐵, 𝐶, 𝐷) = 𝐶)
76mpteq2ia 4740 . . 3 (𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴𝐵) ↦ 𝐶)
8 eldifn 3733 . . . . 5 (𝑥 ∈ (𝐴𝐵) → ¬ 𝑥𝐵)
98iffalsed 4097 . . . 4 (𝑥 ∈ (𝐴𝐵) → if(𝑥𝐵, 𝐶, 𝐷) = 𝐷)
109mpteq2ia 4740 . . 3 (𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴𝐵) ↦ 𝐷)
117, 10uneq12i 3765 . 2 ((𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴𝐵) ↦ if(𝑥𝐵, 𝐶, 𝐷))) = ((𝑥 ∈ (𝐴𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴𝐵) ↦ 𝐷))
121, 4, 113eqtr3i 2652 1 (𝑥𝐴 ↦ if(𝑥𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴𝐵) ↦ 𝐷))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1483  wcel 1990  cdif 3571  cun 3572  cin 3573  ifcif 4086  cmpt 4729
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-nfc 2753  df-ral 2917  df-v 3202  df-dif 3577  df-un 3579  df-in 3581  df-if 4087  df-opab 4713  df-mpt 4730
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator