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 33058
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 6689 and ifmpt2v 7525. (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 6689 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥𝐴𝜑}
32reqabi 3442 . . . . 5 (𝑥𝐷 ↔ (𝑥𝐴𝜑))
43baib 545 . . . 4 (𝑥𝐴 → (𝑥𝐷𝜑))
54ifbid 4516 . . 3 (𝑥𝐴 → if(𝑥𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5211 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4039 . . . . 5 𝐷𝐴
8 sseqin2 4179 . . . . 5 (𝐷𝐴 ↔ (𝐴𝐷) = 𝐷)
97, 8mpbi 233 . . . 4 (𝐴𝐷) = 𝐷
109mpteq1i 5207 . . 3 (𝑥 ∈ (𝐴𝐷) ↦ 𝐵) = (𝑥𝐷𝐵)
1110uneq1i 4121 . 2 ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2797 1 (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1570  wcel 2146  {crab 3419  cdif 3905  cun 3906  cin 3907  wss 3908  ifcif 4492  cmpt 5197
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-12 2216  ax-ext 2738
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2745  df-cleq 2758  df-clel 2841  df-rab 3420  df-v 3460  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-if 4493  df-opab 5179  df-mpt 5198
This theorem is used by:  extvfvcl  33957
  Copyright terms: Public domain W3C validator