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 48733
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 48731 . . 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 2816 . . . . 5 (𝑔 = 𝐺 → (Vtx‘𝑔) = 𝑉)
6 fveq2 6881 . . . . . . 7 (𝑔 = 𝐺 → (Edg‘𝑔) = (Edg‘𝐺))
7 grtri.e . . . . . . 7 𝐸 = (Edg‘𝐺)
86, 7eqtr4di 2816 . . . . . 6 (𝑔 = 𝐺 → (Edg‘𝑔) = 𝐸)
98csbeq1d 3857 . . . . 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 3862 . . . 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 486 . . 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 4576 . . . . . 6 (𝑣 = 𝑉 → 𝒫 𝑣 = 𝒫 𝑉)
1514adantr 485 . . . . 5 ((𝑣 = 𝑉𝑒 = 𝐸) → 𝒫 𝑣 = 𝒫 𝑉)
16 eleq2 2852 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘1)} ∈ 𝐸))
17 eleq2 2852 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸))
18 eleq2 2852 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘1), (𝑓‘2)} ∈ 𝑒 ↔ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))
1916, 17, 183anbi123d 1464 . . . . . . . 8 (𝑒 = 𝐸 → (({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒) ↔ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸)))
2019anbi2d 641 . . . . . . 7 (𝑒 = 𝐸 → ((𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒)) ↔ (𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))))
2120exbidv 1951 . . . . . 6 (𝑒 = 𝐸 → (∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝑒)) ↔ ∃𝑓(𝑓:(0..^3)–1-1-onto𝑡 ∧ ({(𝑓‘0), (𝑓‘1)} ∈ 𝐸 ∧ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸 ∧ {(𝑓‘1), (𝑓‘2)} ∈ 𝐸))))
2221adantl 486 . . . . 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 3434 . . . 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 3892 . . 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 2814 . 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 3476 . 2 (𝐺𝑊𝐺 ∈ V)
274pweqi 4578 . . . . 5 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
28 fvex 6894 . . . . . 6 (Vtx‘𝐺) ∈ V
2928pwex 5351 . . . . 5 𝒫 (Vtx‘𝐺) ∈ V
3027, 29eqeltri 2859 . . . 4 𝒫 𝑉 ∈ V
3130rabex 5309 . . 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 400  w3a 1103   = wceq 1570  wex 1809  wcel 2143  {crab 3416  Vcvv 3455  csb 3853  𝒫 cpw 4562  {cpr 4591  cmpt 5192  1-1-ontowf1o 6535  cfv 6536  (class class class)co 7410  0cc0 11104  1c1 11105  2c2 12299  3c3 12300  ..^cfzo 13687  Vtxcvtx 29355  Edgcedg 29406  GrTrianglescgrtri 48730
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1825  ax-4 1839  ax-5 1940  ax-6 1997  ax-7 2038  ax-8 2145  ax-9 2153  ax-10 2176  ax-11 2192  ax-12 2213  ax-ext 2735  ax-sep 5257  ax-nul 5269  ax-pow 5336  ax-pr 5404
This proof depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1810  df-nf 1814  df-sb 2097  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-rab 3417  df-v 3457  df-sbc 3745  df-csb 3854  df-dif 3908  df-un 3910  df-in 3912  df-ss 3922  df-nul 4287  df-if 4488  df-pw 4564  df-sn 4590  df-pr 4592  df-op 4596  df-uni 4873  df-br 5110  df-opab 5174  df-mpt 5193  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-iota 6492  df-fun 6538  df-fv 6544  df-grtri 48731
This theorem is used by:  grtriprop  48734  isgrtri  48736
  Copyright terms: Public domain W3C validator