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 48783
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 48781 . . 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 6886 . . . . . 6 (𝑔 = 𝐺 → (Vtx‘𝑔) = (Vtx‘𝐺))
4 grtri.v . . . . . 6 𝑉 = (Vtx‘𝐺)
53, 4eqtr4di 2818 . . . . 5 (𝑔 = 𝐺 → (Vtx‘𝑔) = 𝑉)
6 fveq2 6886 . . . . . . 7 (𝑔 = 𝐺 → (Edg‘𝑔) = (Edg‘𝐺))
7 grtri.e . . . . . . 7 𝐸 = (Edg‘𝐺)
86, 7eqtr4di 2818 . . . . . 6 (𝑔 = 𝐺 → (Edg‘𝑔) = 𝐸)
98csbeq1d 3858 . . . . 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 3863 . . . 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 6900 . . . 4 𝑉 ∈ V
137fvexi 6900 . . . 4 𝐸 ∈ V
14 pweq 4578 . . . . . 6 (𝑣 = 𝑉 → 𝒫 𝑣 = 𝒫 𝑉)
1514adantr 486 . . . . 5 ((𝑣 = 𝑉𝑒 = 𝐸) → 𝒫 𝑣 = 𝒫 𝑉)
16 eleq2 2854 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘1)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘1)} ∈ 𝐸))
17 eleq2 2854 . . . . . . . . 9 (𝑒 = 𝐸 → ({(𝑓‘0), (𝑓‘2)} ∈ 𝑒 ↔ {(𝑓‘0), (𝑓‘2)} ∈ 𝐸))
18 eleq2 2854 . . . . . . . . 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 3436 . . . 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 3893 . . 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 2816 . 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 3478 . 2 (𝐺𝑊𝐺 ∈ V)
274pweqi 4580 . . . . 5 𝒫 𝑉 = 𝒫 (Vtx‘𝐺)
28 fvex 6899 . . . . . 6 (Vtx‘𝐺) ∈ V
2928pwex 5353 . . . . 5 𝒫 (Vtx‘𝐺) ∈ V
3027, 29eqeltri 2861 . . . 4 𝒫 𝑉 ∈ V
3130rabex 5311 . . 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 7002 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 2146  {crab 3418  Vcvv 3457  csb 3854  𝒫 cpw 4564  {cpr 4593  cmpt 5194  1-1-ontowf1o 6540  cfv 6541  (class class class)co 7420  0cc0 11120  1c1 11121  2c2 12315  3c3 12316  ..^cfzo 13704  Vtxcvtx 29406  Edgcedg 29457  GrTrianglescgrtri 48780
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 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2737  ax-sep 5259  ax-nul 5271  ax-pow 5338  ax-pr 5406
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 2569  df-eu 2599  df-clab 2744  df-cleq 2757  df-clel 2840  df-nfc 2914  df-ne 2961  df-ral 3082  df-rex 3092  df-rab 3419  df-v 3459  df-sbc 3747  df-csb 3855  df-dif 3909  df-un 3911  df-in 3913  df-ss 3923  df-nul 4287  df-if 4490  df-pw 4566  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4875  df-br 5112  df-opab 5176  df-mpt 5195  df-id 5558  df-xp 5669  df-rel 5670  df-cnv 5671  df-co 5672  df-dm 5673  df-iota 6497  df-fun 6543  df-fv 6549  df-grtri 48781
This theorem is used by:  grtriprop  48784  isgrtri  48786
  Copyright terms: Public domain W3C validator