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

Theorem partfun2 32933
Description: Rewrite a function defined by parts, using a mapping and an if construct, into a union of functions on disjoint domains. See also partfun 6672 and ifmpt2v 7502. (Contributed by Thierry Arnoux, 25-Jan-2026.)
Hypothesis
Ref Expression
partfun2.1 𝐷 = {𝑥𝐴𝜑}
Assertion
Ref Expression
partfun2 (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥)   𝐵(𝑥)   𝐶(𝑥)   𝐷(𝑥)

Proof of Theorem partfun2
StepHypRef Expression
1 partfun 6672 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥𝐴𝜑}
32reqabi 3440 . . . . 5 (𝑥𝐷 ↔ (𝑥𝐴𝜑))
43baib 544 . . . 4 (𝑥𝐴 → (𝑥𝐷𝜑))
54ifbid 4507 . . 3 (𝑥𝐴 → if(𝑥𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5200 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4038 . . . . 5 𝐷𝐴
8 sseqin2 4178 . . . . 5 (𝐷𝐴 ↔ (𝐴𝐷) = 𝐷)
97, 8mpbi 233 . . . 4 (𝐴𝐷) = 𝐷
109mpteq1i 5196 . . 3 (𝑥 ∈ (𝐴𝐷) ↦ 𝐵) = (𝑥𝐷𝐵)
1110uneq1i 4120 . 2 ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2796 1 (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1563  wcel 2145  {crab 3417  cdif 3904  cun 3905  cin 3906  wss 3907  ifcif 4483  cmpt 5186
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1818  ax-4 1832  ax-5 1933  ax-6 1990  ax-7 2031  ax-8 2147  ax-9 2155  ax-12 2215  ax-ext 2737
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3an 1103  df-tru 1566  df-ex 1803  df-sb 2094  df-clab 2744  df-cleq 2757  df-clel 2840  df-rab 3418  df-v 3459  df-dif 3910  df-un 3912  df-in 3914  df-ss 3924  df-if 4484  df-opab 5168  df-mpt 5187
This theorem is referenced by:  extvfvcl  33843
  Copyright terms: Public domain W3C validator