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 30434
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 4563 . 2 {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩})
2 brprop.a . . . . . . 7 (𝜑𝐴𝑉)
3 brprop.b . . . . . . 7 (𝜑𝐵𝑊)
4 fmptsn 6922 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
52, 3, 4syl2anc 586 . . . . . 6 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
6 incom 4171 . . . . . . . 8 ({𝐴} ∩ {𝐴, 𝐶}) = ({𝐴, 𝐶} ∩ {𝐴})
7 prid1g 4689 . . . . . . . . . 10 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
8 snssi 4734 . . . . . . . . . 10 (𝐴 ∈ {𝐴, 𝐶} → {𝐴} ⊆ {𝐴, 𝐶})
92, 7, 83syl 18 . . . . . . . . 9 (𝜑 → {𝐴} ⊆ {𝐴, 𝐶})
10 df-ss 3945 . . . . . . . . 9 ({𝐴} ⊆ {𝐴, 𝐶} ↔ ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
119, 10sylib 220 . . . . . . . 8 (𝜑 → ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
126, 11syl5eqr 2869 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∩ {𝐴}) = {𝐴})
1312mpteq1d 5148 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) = (𝑥 ∈ {𝐴} ↦ 𝐵))
145, 13eqtr4d 2858 . . . . 5 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵))
15 brprop.c . . . . . . 7 (𝜑𝐶𝑉)
16 brprop.d . . . . . . 7 (𝜑𝐷𝑊)
17 fmptsn 6922 . . . . . . 7 ((𝐶𝑉𝐷𝑊) → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
1815, 16, 17syl2anc 586 . . . . . 6 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
19 mptprop.1 . . . . . . . 8 (𝜑𝐴𝐶)
20 difprsn1 4726 . . . . . . . 8 (𝐴𝐶 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2119, 20syl 17 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2221mpteq1d 5148 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷) = (𝑥 ∈ {𝐶} ↦ 𝐷))
2318, 22eqtr4d 2858 . . . . 5 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2414, 23uneq12d 4133 . . . 4 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷)))
25 partfun 30421 . . . 4 (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2624, 25syl6eqr 2873 . . 3 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)))
27 elsn2g 4596 . . . . . 6 (𝐴𝑉 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
282, 27syl 17 . . . . 5 (𝜑 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
2928ifbid 4482 . . . 4 (𝜑 → if(𝑥 ∈ {𝐴}, 𝐵, 𝐷) = if(𝑥 = 𝐴, 𝐵, 𝐷))
3029mpteq2dv 5155 . . 3 (𝜑 → (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
3126, 30eqtrd 2855 . 2 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
321, 31syl5eq 2867 1 (𝜑 → {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208   = wceq 1536  wcel 2113  wne 3015  cdif 3926  cun 3927  cin 3928  wss 3929  ifcif 4460  {csn 4560  {cpr 4562  cop 4566  cmpt 5139
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5196  ax-nul 5203  ax-pr 5323
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-ral 3142  df-rex 3143  df-reu 3144  df-rab 3146  df-v 3493  df-dif 3932  df-un 3934  df-in 3936  df-ss 3945  df-nul 4285  df-if 4461  df-sn 4561  df-pr 4563  df-op 4567  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355
This theorem is referenced by:  cycpm2tr  30782
  Copyright terms: Public domain W3C validator