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 4570 . 2 {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩})
2 brprop.a . . . . . . 7 (𝜑𝐴𝑉)
3 brprop.b . . . . . . 7 (𝜑𝐵𝑊)
4 fmptsn 6929 . . . . . . 7 ((𝐴𝑉𝐵𝑊) → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
52, 3, 4syl2anc 586 . . . . . 6 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
6 incom 4178 . . . . . . . 8 ({𝐴} ∩ {𝐴, 𝐶}) = ({𝐴, 𝐶} ∩ {𝐴})
7 prid1g 4696 . . . . . . . . . 10 (𝐴𝑉𝐴 ∈ {𝐴, 𝐶})
8 snssi 4741 . . . . . . . . . 10 (𝐴 ∈ {𝐴, 𝐶} → {𝐴} ⊆ {𝐴, 𝐶})
92, 7, 83syl 18 . . . . . . . . 9 (𝜑 → {𝐴} ⊆ {𝐴, 𝐶})
10 df-ss 3952 . . . . . . . . 9 ({𝐴} ⊆ {𝐴, 𝐶} ↔ ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
119, 10sylib 220 . . . . . . . 8 (𝜑 → ({𝐴} ∩ {𝐴, 𝐶}) = {𝐴})
126, 11syl5eqr 2870 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∩ {𝐴}) = {𝐴})
1312mpteq1d 5155 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) = (𝑥 ∈ {𝐴} ↦ 𝐵))
145, 13eqtr4d 2859 . . . . 5 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵))
15 brprop.c . . . . . . 7 (𝜑𝐶𝑉)
16 brprop.d . . . . . . 7 (𝜑𝐷𝑊)
17 fmptsn 6929 . . . . . . 7 ((𝐶𝑉𝐷𝑊) → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
1815, 16, 17syl2anc 586 . . . . . 6 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐶} ↦ 𝐷))
19 mptprop.1 . . . . . . . 8 (𝜑𝐴𝐶)
20 difprsn1 4733 . . . . . . . 8 (𝐴𝐶 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2119, 20syl 17 . . . . . . 7 (𝜑 → ({𝐴, 𝐶} ∖ {𝐴}) = {𝐶})
2221mpteq1d 5155 . . . . . 6 (𝜑 → (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷) = (𝑥 ∈ {𝐶} ↦ 𝐷))
2318, 22eqtr4d 2859 . . . . 5 (𝜑 → {⟨𝐶, 𝐷⟩} = (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2414, 23uneq12d 4140 . . . 4 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷)))
25 partfun 30421 . . . 4 (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = ((𝑥 ∈ ({𝐴, 𝐶} ∩ {𝐴}) ↦ 𝐵) ∪ (𝑥 ∈ ({𝐴, 𝐶} ∖ {𝐴}) ↦ 𝐷))
2624, 25syl6eqr 2874 . . 3 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)))
27 elsn2g 4603 . . . . . 6 (𝐴𝑉 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
282, 27syl 17 . . . . 5 (𝜑 → (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴))
2928ifbid 4489 . . . 4 (𝜑 → if(𝑥 ∈ {𝐴}, 𝐵, 𝐷) = if(𝑥 = 𝐴, 𝐵, 𝐷))
3029mpteq2dv 5162 . . 3 (𝜑 → (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 ∈ {𝐴}, 𝐵, 𝐷)) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
3126, 30eqtrd 2856 . 2 (𝜑 → ({⟨𝐴, 𝐵⟩} ∪ {⟨𝐶, 𝐷⟩}) = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
321, 31syl5eq 2868 1 (𝜑 → {⟨𝐴, 𝐵⟩, ⟨𝐶, 𝐷⟩} = (𝑥 ∈ {𝐴, 𝐶} ↦ if(𝑥 = 𝐴, 𝐵, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208   = wceq 1537  wcel 2114  wne 3016  cdif 3933  cun 3934  cin 3935  wss 3936  ifcif 4467  {csn 4567  {cpr 4569  cop 4573  cmpt 5146
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pr 5330
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362
This theorem is referenced by:  cycpm2tr  30761
  Copyright terms: Public domain W3C validator