Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  mptprop Structured version   Visualization version   GIF version

Theorem mptprop 30933
Description: Rewrite pairs of ordered pairs as mapping to functions. (Contributed by Thierry Arnoux, 24-Sep-2023.)
Hypotheses
Ref Expression
brprop.a (𝜑𝐴𝑉)
brprop.b (𝜑𝐵𝑊)
brprop.c (𝜑𝐶𝑉)
brprop.d (𝜑𝐷𝑊)
mptprop.1 (𝜑𝐴𝐶)
Assertion
Ref Expression
mptprop (𝜑 → {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝑥,𝐷   𝜑,𝑥
Allowed substitution hints:   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem mptprop
StepHypRef Expression
1 df-pr 4561 . 2 {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩})
2 brprop.a . . . . . . 7 (𝜑𝐴𝑉)
3 brprop.b . . . . . . 7 (𝜑𝐵𝑊)
4 fmptsn 7021 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
52, 3, 4syl2anc 583 . . . . . 6 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
6 incom 4131 . . . . . . . 8 ({𝐴} ∩ {𝐴, 𝐶}) = ({𝐴, 𝐶} ∩ {𝐴})
7 prid1g 4693 . . . . . . . . . 10 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
8 snssi 4738 . . . . . . . . . 10 (𝐴 ∈ {𝐴, 𝐶} → {𝐴} ⊆ {𝐴, 𝐶})
92, 7, 83syl 18 . . . . . . . . 9 (𝜑 → {𝐴} ⊆ {𝐴, 𝐶})
10 df-ss 3900 . . . . . . . . 9 ({𝐴} ⊆ {𝐴, 𝐶} ↔ ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
119, 10sylib 217 . . . . . . . 8 (𝜑 → ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
126, 11eqtr3id 2793 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∩ {𝐴}) = {𝐴})
1312mpteq1d 5165 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) = (𝑥 ∈ {𝐴} ↦ 𝐵))
145, 13eqtr4d 2781 . . . . 5 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵))
15 brprop.c . . . . . . 7 (𝜑𝐶𝑉)
16 brprop.d . . . . . . 7 (𝜑𝐷𝑊)
17 fmptsn 7021 . . . . . . 7 ((𝐶𝑉𝐷𝑊) → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
1815, 16, 17syl2anc 583 . . . . . 6 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
19 mptprop.1 . . . . . . . 8 (𝜑𝐴𝐶)
20 difprsn1 4730 . . . . . . . 8 (𝐴𝐶 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2119, 20syl 17 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2221mpteq1d 5165 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷) = (𝑥 ∈ {𝐶} ↦ 𝐷))
2318, 22eqtr4d 2781 . . . . 5 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2414, 23uneq12d 4094 . . . 4 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷)))
25 partfun 6564 . . . 4 (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2624, 25eqtr4di 2797 . . 3 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)))
27 elsn2g 4596 . . . . . 6 (𝐴𝑉 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
282, 27syl 17 . . . . 5 (𝜑 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
2928ifbid 4479 . . . 4 (𝜑 → if(𝑥 ∈ {𝐴}, 𝐵, 𝐷) = if(𝑥 = 𝐴, 𝐵, 𝐷))
3029mpteq2dv 5172 . . 3 (𝜑 → (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
3126, 30eqtrd 2778 . 2 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
321, 31syl5eq 2791 1 (𝜑 → {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205   = wceq 1539  wcel 2108  wne 2942  cdif 3880  cun 3881  cin 3882  wss 3883  ifcif 4456  {csn 4558  {cpr 4560  cop 4564  cmpt 5153
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425
This theorem is referenced by:  cycpm2tr  31288
  Copyright terms: Public domain W3C validator