Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cycl3grtrilem Structured version   Visualization version   GIF version

Theorem cycl3grtrilem 47862
Description: Lemma for cycl3grtri 47863. (Contributed by AV, 5-Oct-2025.)
Assertion
Ref Expression
cycl3grtrilem (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺)))

Proof of Theorem cycl3grtrilem
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 pthiswlk 29768 . . . 4 (𝐹(Paths‘𝐺)𝑃𝐹(Walks‘𝐺)𝑃)
2 eqid 2736 . . . . 5 (Edg‘𝐺) = (Edg‘𝐺)
32upgrwlkvtxedg 29686 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝐹(Walks‘𝐺)𝑃) → ∀𝑥 ∈ (0..^(♯‘𝐹)){(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺))
41, 3sylan2 593 . . 3 ((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) → ∀𝑥 ∈ (0..^(♯‘𝐹)){(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺))
54adantr 480 . 2 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → ∀𝑥 ∈ (0..^(♯‘𝐹)){(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺))
6 oveq2 7443 . . . . . . 7 ((♯‘𝐹) = 3 → (0..^(♯‘𝐹)) = (0..^3))
7 fzo0to3tp 13794 . . . . . . 7 (0..^3) = {0, 1, 2}
86, 7eqtrdi 2792 . . . . . 6 ((♯‘𝐹) = 3 → (0..^(♯‘𝐹)) = {0, 1, 2})
98adantl 481 . . . . 5 (((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3) → (0..^(♯‘𝐹)) = {0, 1, 2})
109adantl 481 . . . 4 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → (0..^(♯‘𝐹)) = {0, 1, 2})
1110raleqdv 3325 . . 3 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → (∀𝑥 ∈ (0..^(♯‘𝐹)){(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺)))
12 fveq2 6911 . . . . . . 7 ((♯‘𝐹) = 3 → (𝑃‘(♯‘𝐹)) = (𝑃‘3))
1312eqeq2d 2747 . . . . . 6 ((♯‘𝐹) = 3 → ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ↔ (𝑃‘0) = (𝑃‘3)))
14 c0ex 11259 . . . . . . . 8 0 ∈ V
15 1ex 11261 . . . . . . . 8 1 ∈ V
16 2ex 12347 . . . . . . . 8 2 ∈ V
17 fveq2 6911 . . . . . . . . . 10 (𝑥 = 0 → (𝑃𝑥) = (𝑃‘0))
18 fv0p1e1 12393 . . . . . . . . . 10 (𝑥 = 0 → (𝑃‘(𝑥 + 1)) = (𝑃‘1))
1917, 18preq12d 4747 . . . . . . . . 9 (𝑥 = 0 → {(𝑃𝑥), (𝑃‘(𝑥 + 1))} = {(𝑃‘0), (𝑃‘1)})
2019eleq1d 2825 . . . . . . . 8 (𝑥 = 0 → ({(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺)))
21 fveq2 6911 . . . . . . . . . 10 (𝑥 = 1 → (𝑃𝑥) = (𝑃‘1))
22 oveq1 7442 . . . . . . . . . . . 12 (𝑥 = 1 → (𝑥 + 1) = (1 + 1))
23 1p1e2 12395 . . . . . . . . . . . 12 (1 + 1) = 2
2422, 23eqtrdi 2792 . . . . . . . . . . 11 (𝑥 = 1 → (𝑥 + 1) = 2)
2524fveq2d 6915 . . . . . . . . . 10 (𝑥 = 1 → (𝑃‘(𝑥 + 1)) = (𝑃‘2))
2621, 25preq12d 4747 . . . . . . . . 9 (𝑥 = 1 → {(𝑃𝑥), (𝑃‘(𝑥 + 1))} = {(𝑃‘1), (𝑃‘2)})
2726eleq1d 2825 . . . . . . . 8 (𝑥 = 1 → ({(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺)))
28 fveq2 6911 . . . . . . . . . 10 (𝑥 = 2 → (𝑃𝑥) = (𝑃‘2))
29 oveq1 7442 . . . . . . . . . . . 12 (𝑥 = 2 → (𝑥 + 1) = (2 + 1))
30 2p1e3 12412 . . . . . . . . . . . 12 (2 + 1) = 3
3129, 30eqtrdi 2792 . . . . . . . . . . 11 (𝑥 = 2 → (𝑥 + 1) = 3)
3231fveq2d 6915 . . . . . . . . . 10 (𝑥 = 2 → (𝑃‘(𝑥 + 1)) = (𝑃‘3))
3328, 32preq12d 4747 . . . . . . . . 9 (𝑥 = 2 → {(𝑃𝑥), (𝑃‘(𝑥 + 1))} = {(𝑃‘2), (𝑃‘3)})
3433eleq1d 2825 . . . . . . . 8 (𝑥 = 2 → ({(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺)))
3514, 15, 16, 20, 27, 34raltp 4711 . . . . . . 7 (∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) ↔ ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺)))
36 simpr1 1194 . . . . . . . . 9 (((𝑃‘0) = (𝑃‘3) ∧ ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺))) → {(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺))
37 preq2 4740 . . . . . . . . . . . . . 14 ((𝑃‘0) = (𝑃‘3) → {(𝑃‘2), (𝑃‘0)} = {(𝑃‘2), (𝑃‘3)})
38 prcom 4738 . . . . . . . . . . . . . 14 {(𝑃‘2), (𝑃‘0)} = {(𝑃‘0), (𝑃‘2)}
3937, 38eqtr3di 2791 . . . . . . . . . . . . 13 ((𝑃‘0) = (𝑃‘3) → {(𝑃‘2), (𝑃‘3)} = {(𝑃‘0), (𝑃‘2)})
4039eleq1d 2825 . . . . . . . . . . . 12 ((𝑃‘0) = (𝑃‘3) → ({(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺) ↔ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺)))
4140biimpcd 249 . . . . . . . . . . 11 ({(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺) → ((𝑃‘0) = (𝑃‘3) → {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺)))
42413ad2ant3 1135 . . . . . . . . . 10 (({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺)) → ((𝑃‘0) = (𝑃‘3) → {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺)))
4342impcom 407 . . . . . . . . 9 (((𝑃‘0) = (𝑃‘3) ∧ ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺))) → {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺))
44 simpr2 1195 . . . . . . . . 9 (((𝑃‘0) = (𝑃‘3) ∧ ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺))) → {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))
4536, 43, 443jca 1128 . . . . . . . 8 (((𝑃‘0) = (𝑃‘3) ∧ ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺))) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺)))
4645ex 412 . . . . . . 7 ((𝑃‘0) = (𝑃‘3) → (({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘2), (𝑃‘3)} ∈ (Edg‘𝐺)) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))))
4735, 46biimtrid 242 . . . . . 6 ((𝑃‘0) = (𝑃‘3) → (∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))))
4813, 47biimtrdi 253 . . . . 5 ((♯‘𝐹) = 3 → ((𝑃‘0) = (𝑃‘(♯‘𝐹)) → (∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺)))))
4948impcom 407 . . . 4 (((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3) → (∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))))
5049adantl 481 . . 3 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → (∀𝑥 ∈ {0, 1, 2} {(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))))
5111, 50sylbid 240 . 2 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → (∀𝑥 ∈ (0..^(♯‘𝐹)){(𝑃𝑥), (𝑃‘(𝑥 + 1))} ∈ (Edg‘𝐺) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺))))
525, 51mpd 15 1 (((𝐺 ∈ UPGraph ∧ 𝐹(Paths‘𝐺)𝑃) ∧ ((𝑃‘0) = (𝑃‘(♯‘𝐹)) ∧ (♯‘𝐹) = 3)) → ({(𝑃‘0), (𝑃‘1)} ∈ (Edg‘𝐺) ∧ {(𝑃‘0), (𝑃‘2)} ∈ (Edg‘𝐺) ∧ {(𝑃‘1), (𝑃‘2)} ∈ (Edg‘𝐺)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1086   = wceq 1538  wcel 2107  wral 3060  {cpr 4634  {ctp 4636   class class class wbr 5149  cfv 6566  (class class class)co 7435  0cc0 11159  1c1 11160   + caddc 11162  2c2 12325  3c3 12326  ..^cfzo 13697  chash 14372  Edgcedg 29087  UPGraphcupgr 29120  Walkscwlks 29637  Pathscpths 29753
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1793  ax-4 1807  ax-5 1909  ax-6 1966  ax-7 2006  ax-8 2109  ax-9 2117  ax-10 2140  ax-11 2156  ax-12 2176  ax-ext 2707  ax-rep 5286  ax-sep 5303  ax-nul 5313  ax-pow 5372  ax-pr 5439  ax-un 7758  ax-cnex 11215  ax-resscn 11216  ax-1cn 11217  ax-icn 11218  ax-addcl 11219  ax-addrcl 11220  ax-mulcl 11221  ax-mulrcl 11222  ax-mulcom 11223  ax-addass 11224  ax-mulass 11225  ax-distr 11226  ax-i2m1 11227  ax-1ne0 11228  ax-1rid 11229  ax-rnegex 11230  ax-rrecex 11231  ax-cnre 11232  ax-pre-lttri 11233  ax-pre-lttrn 11234  ax-pre-ltadd 11235  ax-pre-mulgt0 11236
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-ifp 1063  df-3or 1087  df-3an 1088  df-tru 1541  df-fal 1551  df-ex 1778  df-nf 1782  df-sb 2064  df-mo 2539  df-eu 2568  df-clab 2714  df-cleq 2728  df-clel 2815  df-nfc 2891  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-reu 3380  df-rab 3435  df-v 3481  df-sbc 3793  df-csb 3910  df-dif 3967  df-un 3969  df-in 3971  df-ss 3981  df-pss 3984  df-nul 4341  df-if 4533  df-pw 4608  df-sn 4633  df-pr 4635  df-tp 4637  df-op 4639  df-uni 4914  df-int 4953  df-iun 4999  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5584  df-eprel 5590  df-po 5598  df-so 5599  df-fr 5642  df-we 5644  df-xp 5696  df-rel 5697  df-cnv 5698  df-co 5699  df-dm 5700  df-rn 5701  df-res 5702  df-ima 5703  df-pred 6326  df-ord 6392  df-on 6393  df-lim 6394  df-suc 6395  df-iota 6519  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7392  df-ov 7438  df-oprab 7439  df-mpo 7440  df-om 7892  df-1st 8019  df-2nd 8020  df-frecs 8311  df-wrecs 8342  df-recs 8416  df-rdg 8455  df-1o 8511  df-2o 8512  df-oadd 8515  df-er 8750  df-map 8873  df-pm 8874  df-en 8991  df-dom 8992  df-sdom 8993  df-fin 8994  df-dju 9945  df-card 9983  df-pnf 11301  df-mnf 11302  df-xr 11303  df-ltxr 11304  df-le 11305  df-sub 11498  df-neg 11499  df-nn 12271  df-2 12333  df-3 12334  df-n0 12531  df-xnn0 12604  df-z 12618  df-uz 12883  df-fz 13551  df-fzo 13698  df-hash 14373  df-word 14556  df-edg 29088  df-uhgr 29098  df-upgr 29122  df-wlks 29640  df-trls 29733  df-pths 29757
This theorem is referenced by:  cycl3grtri  47863
  Copyright terms: Public domain W3C validator