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

Theorem ex-res 28226
Description: Example for df-res 5531. Example by David A. Wheeler. (Contributed by Mario Carneiro, 7-May-2015.)
Assertion
Ref Expression
ex-res ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (𝐹𝐵) = {⟨2, 6⟩})

Proof of Theorem ex-res
StepHypRef Expression
1 simpl 486 . . . . 5 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → 𝐹 = {⟨2, 6⟩, ⟨3, 9⟩})
2 df-pr 4528 . . . . 5 {⟨2, 6⟩, ⟨3, 9⟩} = ({⟨2, 6⟩} ∪ {⟨3, 9⟩})
31, 2eqtrdi 2849 . . . 4 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → 𝐹 = ({⟨2, 6⟩} ∪ {⟨3, 9⟩}))
43reseq1d 5817 . . 3 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (𝐹𝐵) = (({⟨2, 6⟩} ∪ {⟨3, 9⟩}) ↾ 𝐵))
5 resundir 5833 . . 3 (({⟨2, 6⟩} ∪ {⟨3, 9⟩}) ↾ 𝐵) = (({⟨2, 6⟩} ↾ 𝐵) ∪ ({⟨3, 9⟩} ↾ 𝐵))
64, 5eqtrdi 2849 . 2 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (𝐹𝐵) = (({⟨2, 6⟩} ↾ 𝐵) ∪ ({⟨3, 9⟩} ↾ 𝐵)))
7 2re 11699 . . . . . . 7 2 ∈ ℝ
87elexi 3460 . . . . . 6 2 ∈ V
9 6re 11715 . . . . . . 7 6 ∈ ℝ
109elexi 3460 . . . . . 6 6 ∈ V
118, 10relsnop 5642 . . . . 5 Rel {⟨2, 6⟩}
12 dmsnopss 6038 . . . . . 6 dom {⟨2, 6⟩} ⊆ {2}
13 snsspr2 4708 . . . . . . 7 {2} ⊆ {1, 2}
14 simpr 488 . . . . . . 7 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → 𝐵 = {1, 2})
1513, 14sseqtrrid 3968 . . . . . 6 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → {2} ⊆ 𝐵)
1612, 15sstrid 3926 . . . . 5 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → dom {⟨2, 6⟩} ⊆ 𝐵)
17 relssres 5859 . . . . 5 ((Rel {⟨2, 6⟩} ∧ dom {⟨2, 6⟩} ⊆ 𝐵) → ({⟨2, 6⟩} ↾ 𝐵) = {⟨2, 6⟩})
1811, 16, 17sylancr 590 . . . 4 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → ({⟨2, 6⟩} ↾ 𝐵) = {⟨2, 6⟩})
19 1re 10630 . . . . . . . 8 1 ∈ ℝ
20 1lt3 11798 . . . . . . . 8 1 < 3
2119, 20gtneii 10741 . . . . . . 7 3 ≠ 1
22 2lt3 11797 . . . . . . . 8 2 < 3
237, 22gtneii 10741 . . . . . . 7 3 ≠ 2
2421, 23nelpri 4554 . . . . . 6 ¬ 3 ∈ {1, 2}
2514eleq2d 2875 . . . . . 6 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (3 ∈ 𝐵 ↔ 3 ∈ {1, 2}))
2624, 25mtbiri 330 . . . . 5 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → ¬ 3 ∈ 𝐵)
27 ressnop0 6892 . . . . 5 (¬ 3 ∈ 𝐵 → ({⟨3, 9⟩} ↾ 𝐵) = ∅)
2826, 27syl 17 . . . 4 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → ({⟨3, 9⟩} ↾ 𝐵) = ∅)
2918, 28uneq12d 4091 . . 3 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (({⟨2, 6⟩} ↾ 𝐵) ∪ ({⟨3, 9⟩} ↾ 𝐵)) = ({⟨2, 6⟩} ∪ ∅))
30 un0 4298 . . 3 ({⟨2, 6⟩} ∪ ∅) = {⟨2, 6⟩}
3129, 30eqtrdi 2849 . 2 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (({⟨2, 6⟩} ↾ 𝐵) ∪ ({⟨3, 9⟩} ↾ 𝐵)) = {⟨2, 6⟩})
326, 31eqtrd 2833 1 ((𝐹 = {⟨2, 6⟩, ⟨3, 9⟩} ∧ 𝐵 = {1, 2}) → (𝐹𝐵) = {⟨2, 6⟩})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399   = wceq 1538  wcel 2111  cun 3879  wss 3881  c0 4243  {csn 4525  {cpr 4527  cop 4531  dom cdm 5519  cres 5521  Rel wrel 5524  cr 10525  1c1 10527  2c2 11680  3c3 11681  6c6 11684  9c9 11687
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-po 5438  df-so 5439  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-2 11688  df-3 11689  df-4 11690  df-5 11691  df-6 11692
This theorem is referenced by:  ex-ima  28227
  Copyright terms: Public domain W3C validator