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

Theorem reftr 22411
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 2737 . . . 4 𝐵 = 𝐵
2 eqid 2737 . . . 4 𝐶 = 𝐶
31, 2refbas 22407 . . 3 (𝐵Ref𝐶 𝐶 = 𝐵)
4 eqid 2737 . . . 4 𝐴 = 𝐴
54, 1refbas 22407 . . 3 (𝐴Ref𝐵 𝐵 = 𝐴)
63, 5sylan9eqr 2800 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐶 = 𝐴)
7 refssex 22408 . . . . . 6 ((𝐴Ref𝐵𝑥𝐴) → ∃𝑦𝐵 𝑥𝑦)
87ex 416 . . . . 5 (𝐴Ref𝐵 → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
98adantr 484 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑦𝐵 𝑥𝑦))
10 refssex 22408 . . . . . . 7 ((𝐵Ref𝐶𝑦𝐵) → ∃𝑧𝐶 𝑦𝑧)
1110ad2ant2lr 748 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑦𝑧)
12 sstr2 3908 . . . . . . . 8 (𝑥𝑦 → (𝑦𝑧𝑥𝑧))
1312reximdv 3192 . . . . . . 7 (𝑥𝑦 → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1413ad2antll 729 . . . . . 6 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → (∃𝑧𝐶 𝑦𝑧 → ∃𝑧𝐶 𝑥𝑧))
1511, 14mpd 15 . . . . 5 (((𝐴Ref𝐵𝐵Ref𝐶) ∧ (𝑦𝐵𝑥𝑦)) → ∃𝑧𝐶 𝑥𝑧)
1615rexlimdvaa 3204 . . . 4 ((𝐴Ref𝐵𝐵Ref𝐶) → (∃𝑦𝐵 𝑥𝑦 → ∃𝑧𝐶 𝑥𝑧))
179, 16syld 47 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝑥𝐴 → ∃𝑧𝐶 𝑥𝑧))
1817ralrimiv 3104 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → ∀𝑥𝐴𝑧𝐶 𝑥𝑧)
19 refrel 22405 . . . . 5 Rel Ref
2019brrelex1i 5605 . . . 4 (𝐴Ref𝐵𝐴 ∈ V)
2120adantr 484 . . 3 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴 ∈ V)
224, 2isref 22406 . . 3 (𝐴 ∈ V → (𝐴Ref𝐶 ↔ ( 𝐶 = 𝐴 ∧ ∀𝑥𝐴𝑧𝐶 𝑥𝑧)))
2321, 22syl 17 . 2 ((𝐴Ref𝐵𝐵Ref𝐶) → (𝐴Ref𝐶 ↔ ( 𝐶 = 𝐴 ∧ ∀𝑥𝐴𝑧𝐶 𝑥𝑧)))
246, 18, 23mpbir2and 713 1 ((𝐴Ref𝐵𝐵Ref𝐶) → 𝐴Ref𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2110  wral 3061  wrex 3062  Vcvv 3408  wss 3866   cuni 4819   class class class wbr 5053  Refcref 22399
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pow 5258  ax-pr 5322  ax-un 7523
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-pw 4515  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-xp 5557  df-rel 5558  df-ref 22402
This theorem is referenced by:  refssfne  34284
  Copyright terms: Public domain W3C validator