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

Theorem reftr 22050
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 2818 . . . 4 𝐵 = 𝐵
2 eqid 2818 . . . 4 𝐶 = 𝐶
31, 2refbas 22046 . . 3 (𝐵Ref𝐶 𝐶 = 𝐵)
4 eqid 2818 . . . 4 𝐴 = 𝐴
54, 1refbas 22046 . . 3 (𝐴Ref𝐵 𝐵 = 𝐴)
63, 5sylan9eqr 2875 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐶 = 𝐴)
7 refssex 22047 . . . . . 6 ((𝐴Ref𝐵𝑥𝐴) → ∃𝑦𝐵 𝑥𝑦)
87ex 413 . . . . 5 (𝐴Ref𝐵 → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
98adantr 481 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
10 refssex 22047 . . . . . . 7 ((𝐵Ref𝐶𝑦𝐵) → ∃𝑧𝐶 𝑦𝑧)
1110ad2ant2lr 744 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑦𝑧)
12 sstr2 3971 . . . . . . . 8 (𝑥𝑦 → (𝑦𝑧𝑥𝑧))
1312reximdv 3270 . . . . . . 7 (𝑥𝑦 → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1413ad2antll 725 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1511, 14mpd 15 . . . . 5 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑥𝑧)
1615rexlimdvaa 3282 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (∃𝑦𝐵 𝑥𝑦 → ∃𝑧𝐶 𝑥𝑧))
179, 16syld 47 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑧𝐶 𝑥𝑧))
1817ralrimiv 3178 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → ∀𝑥𝐴𝑧𝐶 𝑥𝑧)
19 refrel 22044 . . . . 5 Rel Ref
2019brrelex1i 5601 . . . 4 (𝐴Ref𝐵𝐴 ∈ V)
2120adantr 481 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴 ∈ V)
224, 2isref 22045 . . 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 207  wa 396   = wceq 1528  wcel 2105  wral 3135  wrex 3136  Vcvv 3492  wss 3933   cuni 4830   class class class wbr 5057  Refcref 22038
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ral 3140  df-rex 3141  df-rab 3144  df-v 3494  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4831  df-br 5058  df-opab 5120  df-xp 5554  df-rel 5555  df-ref 22041
This theorem is referenced by:  refssfne  33603
  Copyright terms: Public domain W3C validator