Expand description
Auto-generated module
π€ Generated with SplitRS
FunctionsΒ§
- alternating_
path_ ty Alternating_path : Graph β Matching β List Nat β Propβ alternating path wrt matching.- app
- app2
- app3
- arrow
- assignment_
ty Assignment : Nat β (Nat β Nat) β Propβ a permutation assignment for nΓn matrix.- augmenting_
path_ ty AugmentingPath : Graph β Matching β List Nat β Propβ augmenting path.- berge_
theorem_ ty BergeTheorem : max matching augmenting path characterization- bipartite_
graph_ ty BipartiteGraph : Typeβ bipartite graph with two vertex sets.- bipartite_
incidence_ tu_ ty BipartiteIncidenceTU : incidence matrix of bipartite graph is TU.- blossom_
ty Blossom : Graph β Matching β List Nat β Propβ odd cycle contracted in Edmondsβ algorithm.- bool_ty
- branch_
and_ bound_ ty BranchAndBound : ILPInstance β List Intβ branch-and-bound solver.- build_
combinatorial_ optimization_ env - Register all combinatorial optimization axioms into the kernel environment.
- bvar
- christofides_
approximation_ ty ChristofidesApproximation : 3/2-approximation for metric TSP.- cost_
matrix_ ty CostMatrix : Nat β Nat β Realβ cost matrix for assignment.- cst
- cut_
capacity_ ty CutCapacity : FlowNetwork β (Nat β Bool) β Realβ total capacity of a cut.- cut_ty
Cut : FlowNetwork β (Nat β Bool) β Propβ s-t cut (partition of vertices).- dinics_
complexity_ ty DinicsComplexity : Dinic's algorithm runs in O(VΒ² E).- facet_
defining_ ty FacetDefiningInequality : Polytope β (List Real β Prop) β Prop- flow_
network_ ty FlowNetwork : Typeβ directed graph with capacities.- flow_ty
Flow : FlowNetwork β Typeβ feasible flow satisfying capacity and conservation.- flow_
value_ ty FlowValue : FlowNetwork β Flow β Realβ the value of a flow (net flow out of source).- ford_
fulkerson_ termination_ ty FordFulkersonTermination : Ford-Fulkerson terminates on integer capacities.- gomory_
cut_ ty GomoryCut : ILPInstance β ILPInstanceβ adds a Gomory cutting plane.- graph_
ty Graph : Typeβ a simple undirected graph (vertices: Nat, edges: pairs).- graphic_
matroid_ ty GraphicMatroid : Graph β Matroidβ cycle matroid of a graph.- greedy_
optimality_ ty GreedyOptimality : Greedy algorithm is optimal for matroid weight maximization.- greedy_
set_ cover - Greedy set cover: returns selected set indices covering all elements 0..n_elem.
- hall_
condition_ ty HallCondition : BipartiteGraph β PropFor every subset S of left vertices, |N(S)| β₯ |S|.- hall_
theorem_ ty HallTheorem : β G : BipartiteGraph, HallCondition G β PerfectMatching G- held_
karp_ bound_ ty HeldKarpBound : TSPInstance β Realβ Held-Karp lower bound.- held_
karp_ lower_ bound_ ty HeldKarpLowerBound : HeldKarpBound β€ TSPOptimal.- hungarian
- Solve the minimum-weight assignment problem using the Hungarian algorithm. Returns (total cost, assignment vector where assignment[i] = j means row i β col j).
- hungarian_
algorithm_ ty HungarianAlgorithm : CostMatrix β (Nat β Nat)β solves assignment in O(nΒ³).- hungarian_
correctness_ ty HungarianCorrectness : HungarianAlgorithm gives OptimalAssignment.- ilp_
instance_ ty ILPInstance : Typeβ integer linear program: min cΒ·x s.t. Ax β€ b, x β β€^n.- ilp_
optimal_ ty ILPOptimal : ILPInstance β List Int β Prop- ilp_
solution_ ty ILPSolution : ILPInstance β List Int β Prop- independent_
set_ ty IndependentSet : Matroid β List Nat β Prop- int_ty
- knapsack_
01 - Branch-and-bound for 0-1 knapsack (maximize). items: (value, weight), capacity: max weight. Returns (max_value, selected_item_indices).
- konig_
theorem_ ty KonigTheorem : MaxMatchingSize = MinVertexCoverSizefor bipartite graphs.- list_ty
- lp_
relaxation_ lower_ bound_ ty LPRelaxationLowerBound : LPRelaxation β€ ILP optimal.- lp_
relaxation_ ty LPRelaxation : ILPInstance β Realβ optimal LP relaxation value.- matching_
ty Matching : Graph β Typeβ a set of non-adjacent edges.- matroid_
base_ ty MatroidBase : Matroid β List Nat β Propβ maximal independent set.- matroid_
intersection_ optimality_ ty MatroidIntersectionOptimality : the max weight common independent set.- matroid_
intersection_ ty MatroidIntersection : common independent set in two matroids.- matroid_
rank_ ty MatroidRank : Matroid β Natβ rank of a matroid.- matroid_
ty Matroid : Typeβ a matroid (ground set + independent sets satisfying axioms).- max_
flow_ min_ cut_ ty MaxFlowMinCut : β N, MaxFlow N = MinCut Nβ the max-flow min-cut theorem.- max_
flow_ ty MaxFlow : FlowNetwork β Realβ maximum flow value.- max_
matching_ ty MaxMatching : Graph β Matching β Propβ a maximum cardinality matching.- min_
cut_ ty MinCut : FlowNetwork β Realβ minimum cut capacity.- nat_ty
- optimal_
assignment_ ty OptimalAssignment : CostMatrix β (Nat β Nat) β Propβ assignment minimizing total cost.- option_
ty - pair_ty
- perfect_
matching_ ty PerfectMatching : Graph β Propβ every vertex is matched.- pi
- polymatroid_
rank_ ty PolymatroidRankFunction : axioms for polymatroid rank.- polytope_
ty Polytope : Typeβ a convex polytope (intersection of halfspaces).- polytope_
vertex_ ty Vertex : Polytope β List Real β Propβ extreme point of polytope.- prop
- real_ty
- set_
cover_ approx_ ty SetCoverApproximation : H_n-approximation (log n) for set cover.- strong_
duality_ ty StrongDuality : for LP, dual objective = primal when both feasible.- submodular_
function_ ty SubmodularFunction : (List Nat β Real) β Propf is submodular if f(A) + f(B) β₯ f(AβͺB) + f(Aβ©B).- submodular_
greedy_ approx_ ty SubmodularGreedy_1_2_approx : greedy gives 1/2-approximation for monotone submodular max.- submodular_
maximization_ ty SubmodularMaximization : (List Nat β Real) β List Natβ greedy maximization.- supermodular_
function_ ty SupermodularFunction : (List Nat β Real) β Propβ supermodular (negation of submodular).- totally_
unimodular_ ty TotallyUnimodular : (Nat β Nat β Int) β Propβ every square submatrix has det β {-1,0,1}.- tsp_
held_ karp - Held-Karp DP lower bound (exact TSP for small n β€ 20).
- tsp_
instance_ ty TSPInstance : Typeβ complete graph with edge weights.- tsp_
nearest_ neighbor - Nearest-neighbor heuristic for TSP. Returns tour (list of vertex indices).
- tsp_
optimal_ ty TSPOptimal : TSPInstance β Realβ optimal TSP tour length.- tsp_
tour_ ty TSPTour : TSPInstance β List Nat β Propβ a Hamiltonian cycle.- tu_
integral_ polyhedra_ ty TUIntegralPolyhedra : TU matrix β LP has integer optimal vertex.- tutte_
condition_ ty TutteCondition : Graph β PropFor every S β V, the number of odd components of G-S is β€ |S|.- tutte_
theorem_ ty TutteTheorem : β G, PerfectMatching G β TutteCondition G- type0
- uniform_
matroid_ greedy - Greedy maximum weight independent set in uniform matroid U(k, n). Returns indices of k elements with highest weights.
- uniform_
matroid_ ty UniformMatroid : Nat β Nat β Matroidβ U(k,n) uniform matroid.- vertex_
cover_ approx_ ty VertexCoverApproximation : 2-approx for vertex cover.- weak_
duality_ ty WeakDuality : for LP, dual objective β₯ primal objective.