Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

πŸ€– Generated with SplitRS

FunctionsΒ§

adjacency_matrix_ty
AdjacencyMatrix : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Matrix V V Real The adjacency matrix of a graph.
app
app2
app3
arrow
bool_ty
build_graph_theory_env
Build the graph theory environment, registering all axioms and theorems.
bvar
cayley_graph_ty
CayleyGraph : βˆ€ (G : Group) (S : Finset G), SimpleGraph G The Cayley graph Cay(G, S) with vertex set G and edges from S-generating set.
cheeger_constant_ty
CheegerConstant : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Real The Cheeger constant (edge expansion ratio) of a graph.
cheeger_inequality_ty
CheegerInequality : βˆ€ {V} [Fintype V] (G : SimpleGraph V), Ξ»β‚‚/2 ≀ h(G) ≀ √(2Β·dΒ·Ξ»β‚‚) The Cheeger inequality connecting spectral gap Ξ»β‚‚ to edge expansion h(G).
chromatic_number_ty
chromatic_number : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat
chromatic_polynomial_ty
ChromaticPolynomial : βˆ€ {V} [Fintype V], SimpleGraph V β†’ (Nat β†’ Int) P(G, k) = number of proper k-colorings of G.
clique_cover_number_ty
CliqueCoverNumber : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat The minimum number of cliques needed to cover all vertices.
connectivity_threshold_ty
ConnectivityThreshold : Nat β†’ Real The threshold probability p_c = ln(n)/n for G(n,p) connectivity.
crossing_number_ty
CrossingNumber : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat The crossing number cr(G): minimum crossings in any planar drawing.
cst
deletion_contraction_tutte_ty
DeletionContractionTutte : βˆ€ {V} [Fintype V] (G : SimpleGraph V) (e : Edge V), TuttePolynomial G = TuttePolynomial (Delete G e) + TuttePolynomial (Contract G e) Deletion-contraction recurrence for the Tutte polynomial.
digraph_adj_ty
digraph_adj : βˆ€ {V}, Digraph V β†’ V β†’ V β†’ Bool
digraph_ty
Digraph V = { adj : V β†’ V β†’ Bool }
dynamic_graph_ty
DynamicGraph : Type β†’ Type A dynamic graph supporting incremental/decremental edge updates.
edge_connectivity_ty
EdgeConnectivity : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat Ξ»(G) = minimum number of edges whose removal disconnects G.
edge_expansion_ty
EdgeExpansion : βˆ€ {V}, SimpleGraph V β†’ Real β†’ Prop Cheeger constant h(G) = min over S of |βˆ‚S|/min(|S|,|V\S|).
eigenvalue_interlacing_ty
EigenvalueInterlacing : βˆ€ {V} [Fintype V] (G H : SimpleGraph V), IsInducedSubgraph H G β†’ InterlacesEigenvalues (Laplacian G) (Laplacian H) Cauchy’s eigenvalue interlacing theorem for graph Laplacians.
erdos_renyi_graph_ty
ErdosRenyiGraph : Nat β†’ Real β†’ SimpleGraph The ErdΕ‘s-RΓ©nyi G(n,p) random graph model.
euler_formula_ty
Euler’s formula: V - E + F = 2 for connected planar graphs
eulerian_circuit_thm_ty
Eulerian circuit theorem: G has Eulerian circuit ↔ G is connected ∧ all degrees even
excluded_minor_characterization_ty
ExcludedMinorCharacterization : βˆ€ {V}, SimpleGraph V β†’ Type A graph class is characterized by a finite set of forbidden minors.
four_color_theorem_ty
Four Color Theorem: Ο‡(G) ≀ 4 for any planar graph G
fractional_chromatic_number_ty
FractionalChromaticNumber : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Real Ο‡_f(G) = inf { k/d : G has a (k:d)-coloring }.
fully_dynamic_connectivity_ty
FullyDynamicConnectivity : βˆ€ {V} [Fintype V], DynamicGraph V β†’ Prop A data structure supporting edge insertions, deletions, and connectivity queries.
genus_ty
Genus : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat The genus of a graph: minimum genus of orientable surface for embedding.
graph_homomorphism_ty
GraphHomomorphism : βˆ€ {V W}, SimpleGraph V β†’ SimpleGraph W β†’ Type A graph homomorphism f : V β†’ W preserving adjacency.
graph_laplacian_ty
GraphLaplacian : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Matrix V V Real L = D - A where D is degree matrix, A is adjacency matrix.
graph_minor_ty
GraphMinor : βˆ€ {V W}, SimpleGraph V β†’ SimpleGraph W β†’ Prop H is a minor of G if H can be obtained from a subgraph of G by contracting edges.
graphon_cut_distance_ty
GraphonCutDistance : Graphon β†’ Graphon β†’ Real The cut distance between two graphons.
graphon_ty
Graphon : Type A graphon is a symmetric measurable function W : [0,1]Β² β†’ [0,1].
halls_theorem_ty
Hall’s theorem: bipartite graph G=(AβˆͺB, E) has perfect matching ↔ for all S βŠ† A, |N(S)| β‰₯ |S|
homomorphism_duality_ty
HomomorphismDuality : βˆ€ {V W} (H : SimpleGraph V) (G : SimpleGraph W), Β¬ (Hom H G) ↔ βˆƒ (D : Digraph), DualObstruction D G Homomorphism duality: absence of H-homomorphism characterized by dual.
hypergraph_coloring_ty
HypergraphColoring : βˆ€ {V}, Hypergraph V β†’ Nat β†’ Prop A proper k-coloring of a hypergraph: each hyperedge has at least 2 colors.
hypergraph_turan_ty
HypergraphTuran : βˆ€ (r k n : Nat), TuranDensity r k n TurΓ‘n-type density results for hypergraphs.
hypergraph_ty
Hypergraph : Type β†’ Type A hypergraph on vertex type V: a collection of hyperedges (subsets of V).
ihara_zeta_function_ty
IharaZetaFunction : βˆ€ {V} [Fintype V], SimpleGraph V β†’ (Complex β†’ Complex) The Ihara zeta function Z_G(u) = ∏_p (1 - u^{|p|})^{-1} over prime cycles p.
impl_pi
incremental_connectivity_ty
IncrementalConnectivity : βˆ€ {V} [Fintype V], DynamicGraph V β†’ Prop An online connectivity structure supporting only edge insertions.
is_bipartite_ty
IsBipartite : βˆ€ {V}, SimpleGraph V β†’ Prop
is_eulerian_ty
IsEulerian : βˆ€ {V}, SimpleGraph V β†’ Prop A graph has an Eulerian circuit iff every vertex has even degree and graph is connected
is_hamiltonian_ty
IsHamiltonian : βˆ€ {V}, SimpleGraph V β†’ Prop A graph has a Hamiltonian cycle visiting each vertex exactly once
is_perfect_graph_ty
IsPerfectGraph : βˆ€ {V}, SimpleGraph V β†’ Prop A graph is perfect if Ο‡(H) = Ο‰(H) for every induced subgraph H.
is_perfect_matching_ty
IsPerfectMatching : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Matching β†’ Prop
is_planar_ty
IsPlanar : βˆ€ {V}, SimpleGraph V β†’ Prop
is_tree_ty
IsTree G ↔ Connected G ∧ acyclic G
kruskal_mst
Minimum spanning tree via Kruskal’s algorithm (weighted undirected graph).
kuratowski_theorem_ty
Kuratowski’s theorem: G is planar ↔ G has no Kβ‚… or K₃₃ subdivision
lovasz_theta_ty
LovaszThetaFunction : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Real The LovΓ‘sz theta function Ο‘(G), sandwiched between Ο‰(G) and Ο‡(GΜ…).
matching_polynomial_ty
MatchingPolynomial : βˆ€ {V} [Fintype V], SimpleGraph V β†’ (Real β†’ Real) ΞΌ(G, x) = βˆ‘_k (-1)^k m_k(G) x^{n-2k} where m_k = number of k-matchings.
matching_ty
Matching G = Set of independent edges
max_flow
Max-flow via Ford-Fulkerson with BFS (Edmonds-Karp).
max_flow_min_cut_ty
MaxFlowMinCut : βˆ€ (n : Nat) (s t : Nat) (cap : Nat β†’ Nat β†’ Real), MaxFlow n s t cap = MinCutCapacity n s t cap Max-flow min-cut theorem for real-valued capacities.
mengers_theorem_ty
MengersThm : βˆ€ {V} [Fintype V] (G : SimpleGraph V) (s t : V), MaxDisjointPaths G s t = MinVertexCut G s t Menger’s theorem: max number of vertex-disjoint s-t paths = min vertex cut size.
nat_ty
pathwidth_ty
Pathwidth : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat pw(G) = min over path decompositions of (max bag size - 1).
phase_transition_ty
PhaseTransition : βˆ€ (n : Nat) (p : Real), p > 1/n β†’ GiantComponentExists (ErdosRenyi n p) Phase transition at p = 1/n: a giant component emerges.
pi
prop
real_ty
robertson_seymour_wqo_ty
RobertsonSeymourWQO : βˆ€ {V} (seq : Nat β†’ SimpleGraph V), βˆƒ i j, i < j ∧ Minor (seq i) (seq j) The Robertson-Seymour theorem: graphs are well-quasi-ordered under the minor relation.
semi_streaming_sketch_ty
SemiStreamingSketch : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Type A semi-streaming sketch using O(n Β· polylog n) space for n = |V|.
simple_graph_adj_ty
SimpleGraph.adj : βˆ€ {V}, SimpleGraph V β†’ V β†’ V β†’ Prop
simple_graph_connected_ty
SimpleGraph.Connected : βˆ€ {V}, SimpleGraph V β†’ Prop
simple_graph_degree_ty
SimpleGraph.degree : βˆ€ {V} [Fintype V] [DecidableEq V], SimpleGraph V β†’ V β†’ Nat
simple_graph_ty
SimpleGraph V = { adj : V β†’ V β†’ Prop // sym, irrefl }
sketched_connectivity_ty
SketchedConnectivity : βˆ€ {V} [Fintype V], SemiStreamingSketch β†’ Prop Determine connectivity from a semi-streaming sketch.
spectral_gap_ty
SpectralGap : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Real The spectral gap Ξ»β‚‚ = second smallest eigenvalue of the normalized Laplacian.
strong_perfect_graph_thm_ty
StrongPerfectGraphThm : βˆ€ {V} (G : SimpleGraph V), IsPerfect G ↔ (NoOddHole G ∧ NoOddAntihole G) The strong perfect graph theorem (Chudnovsky-Robertson-Seymour-Thomas 2006).
strongly_regular_graph_ty
StronglyRegularGraph : βˆ€ {V} [Fintype V] (G : SimpleGraph V) (k Ξ» ΞΌ : Nat), Prop srg(n, k, Ξ», ΞΌ): k-regular, adjacent pairs have Ξ» common neighbors, non-adjacent pairs have ΞΌ common neighbors.
sunflower_lemma_ty
SunflowerLemma : βˆ€ (p k : Nat) (F : Finset (Finset Nat)), |F| > (p-1)^k Β· k! β†’ βˆƒ sunflower of size p in F ErdΕ‘s-Ko-Rado sunflower lemma for set families.
szemeredi_regularity_ty
SzemerediRegularity : βˆ€ {V} [Fintype V] (G : SimpleGraph V) (Ξ΅ : Real), βˆƒ partition, Ξ΅-regular and |partition| ≀ M(Ξ΅) SzemerΓ©di regularity lemma: every graph has an Ξ΅-regular partition.
tree_decomposition_ty
TreeDecomposition : βˆ€ {V}, SimpleGraph V β†’ Type A tree decomposition of G: a tree T with bags B(t) βŠ† V covering edges.
treewidth_duality_ty
TreewidthDuality : βˆ€ {V} [Fintype V] (G : SimpleGraph V) (k : Nat), Treewidth G ≀ k ↔ Β¬ HasBranchDecompositionObstruction G k Treewidth duality via brambles/haven obstructions.
treewidth_ty
Treewidth : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat tw(G) = min over tree decompositions of (max bag size - 1).
tutte_polynomial_ty
TuttePolynomial : βˆ€ {V} [Fintype V], SimpleGraph V β†’ (Real β†’ Real β†’ Real) T(G; x, y) = universal graph polynomial encoding many graph invariants.
type0
vertex_connectivity_ty
VertexConnectivity : βˆ€ {V} [Fintype V], SimpleGraph V β†’ Nat ΞΊ(G) = minimum number of vertices whose removal disconnects G.
vertex_expansion_ty
VertexExpansion : βˆ€ {V}, SimpleGraph V β†’ Real β†’ Prop h-vertex expander: for all S with |S| ≀ |V|/2, |N(S)| β‰₯ hΒ·|S|.
wagner_theorem_ty
WagnerThm : βˆ€ {V} (G : SimpleGraph V), IsPlanar G ↔ NoK5Minor G ∧ NoK33Minor G Wagner’s theorem: G is planar iff G has no Kβ‚… or K₃,₃ minor.
walk_ty
Walk G u v = path from u to v in G (list of adjacent vertices)