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

Theorem grtri 48921
Description: The triangles in a graph. (Contributed by AV, 20-Jul-2025.)
Hypotheses
Ref Expression
grtri.v 𝑉 = (Vtx‘𝐺)
grtri.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
grtri (𝐺𝑊 → (GrTriangles‘𝐺) = {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))})
Distinct variable groups:   𝑓,𝐸,𝑡   𝑓,𝐺,𝑡   𝑓,𝑉,𝑡
Allowed substitution hints:   𝑊(𝑡, 𝑓)

Proof of Theorem grtri
Dummy variables 𝑒 𝑔 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-grtri 48919 . . 3 GrTriangles = (𝑔 ∈ V ↦ (Vtx‘𝑔) / 𝑣(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))})
21a1i 11 . 2 (𝐺𝑊 → GrTriangles = (𝑔 ∈ V ↦ (Vtx‘𝑔) / 𝑣(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))}))
3 fveq2 6881 . . . . . 6 (𝑔 = 𝐺 → (Vtx‘𝑔) = (Vtx‘𝐺))
4 grtri.v . . . . . 6 𝑉 = (Vtx‘𝐺)
53, 4eqtr4di 2813 . . . . 5 (𝑔 = 𝐺 → (Vtx‘𝑔) = 𝑉)
6 fveq2 6881 . . . . . . 7 (𝑔 = 𝐺 → (Edg‘𝑔) = (Edg‘𝐺))
7 grtri.e . . . . . . 7 𝐸 = (Edg‘𝐺)
86, 7eqtr4di 2813 . . . . . 6 (𝑔 = 𝐺 → (Edg‘𝑔) = 𝐸)
98csbeq1d 3851 . . . . 5 (𝑔 = 𝐺(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = 𝐸 / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))})
105, 9csbeq12dv 3856 . . . 4 (𝑔 = 𝐺(Vtx‘𝑔) / 𝑣(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = 𝑉 / 𝑣𝐸 / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))})
1110adantl 487 . . 3 ((𝐺𝑊𝑔 = 𝐺) → (Vtx‘𝑔) / 𝑣(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = 𝑉 / 𝑣𝐸 / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))})
124fvexi 6895 . . . 4 𝑉 ∈ V
137fvexi 6895 . . . 4 𝐸 ∈ V
14 pweq 4571 . . . . . 6 (𝑣 = 𝑉 → 𝒫 𝑣 = 𝒫 𝑉)
1514adantr 486 . . . . 5 ((𝑣 = 𝑉𝑒 = 𝐸) → 𝒫 𝑣 = 𝒫 𝑉)
16 eleq2 2849 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘1)} ∈ 𝐸))
17 eleq2 2849 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸))
18 eleq2 2849 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘1), (𝑓‘2)} ∈ 𝑒 ↔ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))
1916, 17, 183anbi123d 1464 . . . . . . . 8 (𝑒 = 𝐸 → (({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒) ↔ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸)))
2019anbi2d 642 . . . . . . 7 (𝑒 = 𝐸 → ((𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒)) ↔ (𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))))
2120exbidv 1954 . . . . . 6 (𝑒 = 𝐸 → (∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒)) ↔ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))))
2221adantl 487 . . . . 5 ((𝑣 = 𝑉𝑒 = 𝐸) → (∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒)) ↔ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))))
2315, 22rabeqbidv 3429 . . . 4 ((𝑣 = 𝑉𝑒 = 𝐸) → {𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))})
2412, 13, 23csbie2 3886 . . 3 𝑉 / 𝑣𝐸 / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))}
2511, 24eqtrdi 2811 . 2 ((𝐺𝑊𝑔 = 𝐺) → (Vtx‘𝑔) / 𝑣(Edg‘𝑔) / 𝑒{𝑡 ∈ 𝒫 𝑣 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒))} = {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))})
26 elex 3471 . 2 (𝐺𝑊𝐺 ∈ V)
274pweqi 4573 . . . . 5 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
28 fvex 6894 . . . . . 6 (Vtx‘𝐺) ∈ V
2928pwex 5345 . . . . 5 𝒫 (Vtx‘𝐺) ∈ V
3027, 29eqeltri 2856 . . . 4 𝒫 𝑉 ∈ V
3130rabex 5303 . . 3 {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))} ∈ V
3231a1i 11 . 2 (𝐺𝑊 → {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))} ∈ V)
332, 25, 26, 32fvmptd 6997 1 (𝐺𝑊 → (GrTriangles‘𝐺) = {𝑡 ∈ 𝒫 𝑉 ∣ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wb 209  wa 401  w3a 1103   = wceq 1570  wex 1812  wcel 2145  {crab 3412  Vcvv 3450  csb 3847  𝒫 cpw 4557  {cpr 4586  cmpt 5186  1-1-ontowf1o 6534  cfv 6535  (class class class)co 7416  0cc0 11149  1c1 11150  2c2 12344  3c3 12345  ..^cfzo 13734  Vtxcvtx 29485  Edgcedg 29536  GrTrianglescgrtri 48918
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5251  ax-nul 5263  ax-pow 5330  ax-pr 5398
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-iota 6491  df-fun 6537  df-fv 6543  df-grtri 48919
This theorem is used by:  grtriprop  48922  isgrtri  48924
  Copyright terms: Public domain W3C validator