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 32828
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 6664 and ifmpt2v 7494. (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 6664 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥𝐴𝜑}
32reqabi 3436 . . . . 5 (𝑥𝐷 ↔ (𝑥𝐴𝜑))
43baib 543 . . . 4 (𝑥𝐴 → (𝑥𝐷𝜑))
54ifbid 4503 . . 3 (𝑥𝐴 → if(𝑥𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5194 . 2 (𝑥𝐴 ↦ if(𝑥𝐷, 𝐵, 𝐶)) = (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4035 . . . . 5 𝐷𝐴
8 sseqin2 4175 . . . . 5 (𝐷𝐴 ↔ (𝐴𝐷) = 𝐷)
97, 8mpbi 232 . . . 4 (𝐴𝐷) = 𝐷
109mpteq1i 5190 . . 3 (𝑥 ∈ (𝐴𝐷) ↦ 𝐵) = (𝑥𝐷𝐵)
1110uneq1i 4117 . 2 ((𝑥 ∈ (𝐴𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2792 1 (𝑥𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥𝐷𝐵) ∪ (𝑥 ∈ (𝐴𝐷) ↦ 𝐶))
Colors of variables: wff setvar class
Syntax hints:   = wceq 1559  wcel 2141  {crab 3413  cdif 3901  cun 3902  cin 3903  wss 3904  ifcif 4479  cmpt 5180
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1814  ax-4 1828  ax-5 1929  ax-6 1986  ax-7 2027  ax-8 2143  ax-9 2151  ax-12 2211  ax-ext 2733
This theorem depends on definitions:  df-bi 209  df-an 400  df-or 859  df-3an 1099  df-tru 1562  df-ex 1799  df-sb 2090  df-clab 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3455  df-dif 3907  df-un 3909  df-in 3911  df-ss 3921  df-if 4480  df-opab 5162  df-mpt 5181
This theorem is referenced by:  extvfvcl  33794
  Copyright terms: Public domain W3C validator