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

Theorem reftr 22573
Description: Refinement is transitive. (Contributed by Jeff Hankins, 18-Jan-2010.) (Revised by Thierry Arnoux, 3-Feb-2020.)
Assertion
Ref Expression
reftr ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴Ref𝐶)

Proof of Theorem reftr
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2738 . . . 4 𝐵 = 𝐵
2 eqid 2738 . . . 4 𝐶 = 𝐶
31, 2refbas 22569 . . 3 (𝐵Ref𝐶 𝐶 = 𝐵)
4 eqid 2738 . . . 4 𝐴 = 𝐴
54, 1refbas 22569 . . 3 (𝐴Ref𝐵 𝐵 = 𝐴)
63, 5sylan9eqr 2801 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐶 = 𝐴)
7 refssex 22570 . . . . . 6 ((𝐴Ref𝐵𝑥𝐴) → ∃𝑦𝐵 𝑥𝑦)
87ex 412 . . . . 5 (𝐴Ref𝐵 → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
98adantr 480 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
10 refssex 22570 . . . . . . 7 ((𝐵Ref𝐶𝑦𝐵) → ∃𝑧𝐶 𝑦𝑧)
1110ad2ant2lr 744 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑦𝑧)
12 sstr2 3924 . . . . . . . 8 (𝑥𝑦 → (𝑦𝑧𝑥𝑧))
1312reximdv 3201 . . . . . . 7 (𝑥𝑦 → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1413ad2antll 725 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1511, 14mpd 15 . . . . 5 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑥𝑧)
1615rexlimdvaa 3213 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (∃𝑦𝐵 𝑥𝑦 → ∃𝑧𝐶 𝑥𝑧))
179, 16syld 47 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑧𝐶 𝑥𝑧))
1817ralrimiv 3106 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → ∀𝑥𝐴𝑧𝐶 𝑥𝑧)
19 refrel 22567 . . . . 5 Rel Ref
2019brrelex1i 5634 . . . 4 (𝐴Ref𝐵𝐴 ∈ V)
2120adantr 480 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴 ∈ V)
224, 2isref 22568 . . 3 (𝐴 ∈ V → (𝐴Ref𝐶 ↔ ( 𝐶 = 𝐴 ∧ ∀𝑥𝐴𝑧𝐶 𝑥𝑧)))
2321, 22syl 17 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝐴Ref𝐶 ↔ ( 𝐶 = 𝐴 ∧ ∀𝑥𝐴𝑧𝐶 𝑥𝑧)))
246, 18, 23mpbir2and 709 1 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴Ref𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  Vcvv 3422  wss 3883   cuni 4836   class class class wbr 5070  Refcref 22561
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-ref 22564
This theorem is referenced by:  refssfne  34474
  Copyright terms: Public domain W3C validator