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 33385
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 6726 and ifmpt2v 7563. (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 6726 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥 ∈ 𝐴 ∣ 𝜑}
32reqabi 3440 . . . . 5 (𝑥 ∈ 𝐷 ↔ (𝑥 ∈ 𝐴 ∧ 𝜑))
43baib 545 . . . 4 (𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐷 ↔ 𝜑))
54ifbid 4511 . . 3 (𝑥 ∈ 𝐴 → if(𝑥 ∈ 𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5209 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4012 . . . . 5 𝐷 ⊆ 𝐴
8 sseqin2 4125 . . . . 5 (𝐷 ⊆ 𝐴 ↔ (𝐴 ∩ 𝐷) = 𝐷)
97, 8mpbi 233 . . . 4 (𝐴 ∩ 𝐷) = 𝐷
109mpteq1i 5205 . . 3 (𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) = (𝑥 ∈ 𝐷 ↦ 𝐵)
1110uneq1i 4168 . 2 ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2800 1 (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1572   ∈ wcel 2151  {crab 3418   ⊆ wss 3902   ∖ cdif 4050   ∩ cin 4094   ∪ cun 4154  ifcif 4487   ↦ cmpt 5195
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-12 2220  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-if 4488  df-opab 5177  df-mpt 5196
This theorem is used by:  extvfvcl  34296
  Copyright terms: Public domain W3C validator