File tree Expand file tree Collapse file tree
Mathlib/Combinatorics/SimpleGraph Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88public import Mathlib.Combinatorics.SimpleGraph.Bipartite
99public import Mathlib.Combinatorics.SimpleGraph.Connectivity.Subgraph
1010public import Mathlib.Combinatorics.SimpleGraph.Connectivity.EdgeConnectivity
11+ public import Mathlib.Combinatorics.SimpleGraph.CycleGraph
1112public import Mathlib.Combinatorics.SimpleGraph.DegreeSum
1213public import Mathlib.Combinatorics.SimpleGraph.Metric
1314
@@ -649,4 +650,14 @@ lemma isAcyclic_iff_pairwise_not_isEdgeReachable_two :
649650 rintro ⟨u, v⟩ huv
650651 exact (isBridge_iff_not_isEdgeReachable_two huv).mpr (h huv.ne)
651652
653+ theorem isAcyclic_iff_free_cycleGraph : G.IsAcyclic ↔ ∀ n ≥ 3 , (cycleGraph n).Free G := by
654+ refine ⟨fun h n hn hle ↦ ?_, fun h v p hcyc ↦ h p.length hcyc.three_le_length ?_⟩
655+ · have ⟨v, p, hcyc, hlen⟩ := cycleGraph_isContained_iff hn |>.mp hle
656+ exact h p hcyc
657+ · exact cycleGraph_isContained_iff hcyc.three_le_length |>.mpr ⟨v, p, hcyc, rfl⟩
658+
659+ theorem IsAcyclic.cliqueFree (h : G.IsAcyclic) {n : ℕ} (hn : 3 ≤ n) : G.CliqueFree n := by
660+ refine not_cliqueFree_iff_top_isContained n |>.not_right.mpr fun hle ↦ ?_
661+ exact isAcyclic_iff_free_cycleGraph.mp h n hn <| hle.trans' <| .of_le le_top
662+
652663end SimpleGraph
You can’t perform that action at this time.
0 commit comments