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 31031
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 4564 . 2 {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩})
2 brprop.a . . . . . . 7 (𝜑𝐴𝑉)
3 brprop.b . . . . . . 7 (𝜑𝐵𝑊)
4 fmptsn 7039 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
52, 3, 4syl2anc 584 . . . . . 6 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
6 incom 4135 . . . . . . . 8 ({𝐴} ∩ {𝐴, 𝐶}) = ({𝐴, 𝐶} ∩ {𝐴})
7 prid1g 4696 . . . . . . . . . 10 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
8 snssi 4741 . . . . . . . . . 10 (𝐴 ∈ {𝐴, 𝐶} → {𝐴} ⊆ {𝐴, 𝐶})
92, 7, 83syl 18 . . . . . . . . 9 (𝜑 → {𝐴} ⊆ {𝐴, 𝐶})
10 df-ss 3904 . . . . . . . . 9 ({𝐴} ⊆ {𝐴, 𝐶} ↔ ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
119, 10sylib 217 . . . . . . . 8 (𝜑 → ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
126, 11eqtr3id 2792 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∩ {𝐴}) = {𝐴})
1312mpteq1d 5169 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) = (𝑥 ∈ {𝐴} ↦ 𝐵))
145, 13eqtr4d 2781 . . . . 5 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵))
15 brprop.c . . . . . . 7 (𝜑𝐶𝑉)
16 brprop.d . . . . . . 7 (𝜑𝐷𝑊)
17 fmptsn 7039 . . . . . . 7 ((𝐶𝑉𝐷𝑊) → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
1815, 16, 17syl2anc 584 . . . . . 6 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
19 mptprop.1 . . . . . . . 8 (𝜑𝐴𝐶)
20 difprsn1 4733 . . . . . . . 8 (𝐴𝐶 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2119, 20syl 17 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2221mpteq1d 5169 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷) = (𝑥 ∈ {𝐶} ↦ 𝐷))
2318, 22eqtr4d 2781 . . . . 5 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2414, 23uneq12d 4098 . . . 4 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷)))
25 partfun 6580 . . . 4 (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2624, 25eqtr4di 2796 . . 3 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)))
27 elsn2g 4599 . . . . . 6 (𝐴𝑉 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
282, 27syl 17 . . . . 5 (𝜑 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
2928ifbid 4482 . . . 4 (𝜑 → if(𝑥 ∈ {𝐴}, 𝐵, 𝐷) = if(𝑥 = 𝐴, 𝐵, 𝐷))
3029mpteq2dv 5176 . . 3 (𝜑 → (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
3126, 30eqtrd 2778 . 2 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
321, 31eqtrid 2790 1 (𝜑 → {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205   = wceq 1539  wcel 2106  wne 2943  cdif 3884  cun 3885  cin 3886  wss 3887  ifcif 4459  {csn 4561  {cpr 4563  cop 4567  cmpt 5157
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440
This theorem is referenced by:  cycpm2tr  31386
  Copyright terms: Public domain W3C validator