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 33317
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 6686 and ifmpt2v 7522. (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 6686 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥 ∈ 𝐴 ∣ 𝜑}
32reqabi 3434 . . . . 5 (𝑥 ∈ 𝐷 ↔ (𝑥 ∈ 𝐴 ∧ 𝜑))
43baib 545 . . . 4 (𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐷 ↔ 𝜑))
54ifbid 4505 . . 3 (𝑥 ∈ 𝐴 → if(𝑥 ∈ 𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5199 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4007 . . . . 5 𝐷 ⊆ 𝐴
8 sseqin2 4120 . . . . 5 (𝐷 ⊆ 𝐴 ↔ (𝐴 ∩ 𝐷) = 𝐷)
97, 8mpbi 233 . . . 4 (𝐴 ∩ 𝐷) = 𝐷
109mpteq1i 5195 . . 3 (𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) = (𝑥 ∈ 𝐷 ↦ 𝐵)
1110uneq1i 4163 . 2 ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2791 1 (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1569   ∈ wcel 2144  {crab 3412   ⊆ wss 3895   ∖ cdif 4045   ∩ cin 4089   ∪ cun 4149  ifcif 4481   ↦ cmpt 5185
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-12 2212  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-if 4482  df-opab 5167  df-mpt 5186
This theorem is used by:  extvfvcl  34214
  Copyright terms: Public domain W3C validator