MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fvpr1g Structured version   Visualization version   GIF version

Theorem fvpr1g 7221
Description: The value of a function with a domain of (at most) two elements. (Contributed by Alexander van der Vekens, 3-Dec-2017.)
Assertion
Ref Expression
fvpr1g ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = 𝐶)

Proof of Theorem fvpr1g
StepHypRef Expression
1 df-pr 4591 . . . . 5 {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩} = ({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})
21fveq1i 6912 . . . 4 ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴)
3 necom 3012 . . . . 5 (𝐴 ≠ 𝐵 ↔ 𝐵 ≠ 𝐴)
4 fvunsn 7210 . . . . 5 (𝐵 ≠ 𝐴 → (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
53, 4sylbi 220 . . . 4 (𝐴 ≠ 𝐵 → (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
62, 5eqtrid 2810 . . 3 (𝐴 ≠ 𝐵 → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
763ad2ant3 1153 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
8 fvsng 7211 . . 3 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊) → ({⟨𝐴, 𝐶⟩}‘𝐴) = 𝐶)
983adant3 1150 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩}‘𝐴) = 𝐶)
107, 9eqtrd 2798 1 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147   ≠ wne 2959   ∪ cun 4152  {csn 4588  {cpr 4590  ⟨cop 4838  ‘cfv 6561
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-12 2216  ax-ext 2735  ax-sep 5253  ax-nul 5264  ax-pr 5396
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-res 5668  df-iota 6515  df-fun 6563  df-fv 6569
This theorem is used by:  fvpr2g  7222  fvpr1  7223  fvtp1g  7229  fpropnf1  7297  f1prex  7318  wrdlen2i  15125  fvpr0o  17763  linds2eq  34020  zlmodzxzscm  49684  zlmodzxzadd  49685  lincvalpr  49745  ldepspr  49800  2arymptfv  49977  fv1prop  50026
  Copyright terms: Public domain W3C validator