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 33252
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 6678 and ifmpt2v 7514. (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 6678 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
2 partfun2.1 . . . . . 6 𝐷 = {𝑥 ∈ 𝐴 ∣ 𝜑}
32reqabi 3435 . . . . 5 (𝑥 ∈ 𝐷 ↔ (𝑥 ∈ 𝐴 ∧ 𝜑))
43baib 545 . . . 4 (𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐷 ↔ 𝜑))
54ifbid 4506 . . 3 (𝑥 ∈ 𝐴 → if(𝑥 ∈ 𝐷, 𝐵, 𝐶) = if(𝜑, 𝐵, 𝐶))
65mpteq2ia 5200 . 2 (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐷, 𝐵, 𝐶)) = (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶))
72ssrab3 4030 . . . . 5 𝐷 ⊆ 𝐴
8 sseqin2 4169 . . . . 5 (𝐷 ⊆ 𝐴 ↔ (𝐴 ∩ 𝐷) = 𝐷)
97, 8mpbi 233 . . . 4 (𝐴 ∩ 𝐷) = 𝐷
109mpteq1i 5196 . . 3 (𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) = (𝑥 ∈ 𝐷 ↦ 𝐵)
1110uneq1i 4111 . 2 ((𝑥 ∈ (𝐴 ∩ 𝐷) ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
121, 6, 113eqtr3i 2792 1 (𝑥 ∈ 𝐴 ↦ if(𝜑, 𝐵, 𝐶)) = ((𝑥 ∈ 𝐷 ↦ 𝐵) ∪ (𝑥 ∈ (𝐴 ∖ 𝐷) ↦ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1570   ∈ wcel 2145  {crab 3413   ∖ cdif 3896   ∪ cun 3897   ∩ cin 3898   ⊆ wss 3899  ifcif 4482   ↦ cmpt 5186
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 2147  ax-9 2155  ax-12 2213  ax-ext 2733
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 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-if 4483  df-opab 5168  df-mpt 5187
This theorem is used by:  extvfvcl  34150
  Copyright terms: Public domain W3C validator