# Polyhedral Cone Hilbert Basis AI Agent Connect

> Polyhedral Cone Hilbert Basis MCP gives your AI client the mathematical tools needed to work with rational polyhedral cones. You can compute minimal integer vector sets, validate cone definitions using rays or inequalities, and check if specific vectors fall within a defined cone. It handles both ray-based and inequality-based cone definitions for complex geometric analysis.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_DTcU50WoYi7f93cje1tBsHEW9ew5yohJzRCmdMXJ/ai-agent-connect
- **Tags:** hilbert-basis, polyhedral-cone, integer-programming, geometry, linear-algebra

## Description

You can now give your AI agent the ability to solve complex problems in discrete geometry and integer programming. This MCP provides the specialized math functions required to handle rational polyhedral cones. Whether you are working with ray-based definitions or inequality-based constraints, your agent can process the geometry accurately. 

You can use it to find the minimal set of integer vectors, known as a Hilbert basis, for any given cone. If you need to ensure a cone is mathematically sound, the MCP can check the integrity of your rays or inequalities. It also handles membership testing, letting you quickly confirm if a specific integer vector sits inside your defined space. Once a basis is calculated, you can pull descriptive statistics to understand its properties. This turns your AI client into a capable partner for geometric computation and algebraic analysis.

## Tools

### compute_hilbert_basis
This tool finds the minimal set of integer vectors that form the Hilbert basis for your specified cone.

### get_basis_properties
Use this to pull descriptive statistics and analyze the properties of a Hilbert basis you previously computed.

### validate_cone_integrity
This tool checks if your provided rays or inequalities actually define a valid, closed rational polyhedral cone.

### verify_membership
This tool confirms whether a specific integer vector belongs to your defined polyhedral cone.

## Prompt Examples

**Prompt:** 
```
Find the Hilbert basis for a 2D cone defined by the rays [1,0] and [0,1].
```

**Response:** 
```
The Hilbert basis for the cone defined by rays [1,0] and [0,1] is [[1,0], [0,1]].
```

**Prompt:** 
```
Is the vector [2,2] inside the cone defined by rays [1,0] and [0,1]?
```

**Response:** 
```
Yes, the vector [2,2] is inside the defined cone.
```

**Prompt:** 
```
Check if the cone defined by the inequality x >= 0 and y >= 0 is valid.
```

**Response:** 
```
The cone defined by the inequalities x >= 0 and y >= 0 is a valid, pointed rational polyhedral cone.
```

## Capabilities

### Hilbert Basis Computation
Your agent calculates the minimal integer vector set for any rational polyhedral cone.

### Cone Validation
The MCP verifies that your ray or inequality definitions form a valid, closed cone.

### Vector Membership Testing
Your AI client checks if specific integer vectors are contained within a defined cone.

### Basis Analysis
The tool provides descriptive statistics for previously computed Hilbert bases.

### Dual Definition Support
The MCP processes cones defined via either rays or inequalities.

## Use Cases

### Integer Programming
Use the Hilbert basis tool to find the fundamental vectors needed for solving integer programming problems.

### Geometric Verification
Confirm that a set of inequalities correctly describes a closed rational polyhedral cone.

### Vector Analysis
Quickly check if a specific coordinate set falls within a defined geometric boundary.

### Mathematical Research
Analyze the statistical properties of computed bases to study cone structures.

## Benefits

- Automates the calculation of minimal integer vector sets.
- Validates geometric definitions to prevent errors in downstream calculations.
- Provides direct membership testing for integer vectors.
- Supports both ray and inequality formats for flexible input.

## How It Works

Connecting this MCP to your AI client gives it immediate access to specialized geometric math tools.

1. Connect your AI client to Vinkius to activate the MCP.
2. Provide the cone definition using rays or inequalities.
3. Your agent invokes the necessary tool to compute or validate the data.
4. The MCP returns the mathematical results directly to your agent's context.

## Frequently Asked Questions

**What is a Hilbert basis?**
A Hilbert basis is the minimal set of integer vectors that can generate all other integer vectors within a rational polyhedral cone.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**Does it support inequality-based cones?**
Yes, the MCP supports both ray-based and inequality-based cone definitions.

**How do I check if a vector is in a cone?**
You can use the verify_membership tool to check if a specific integer vector belongs to your defined cone.

**Do I need to host the math engine myself?**
No, Vinkius hosts and manages the MCP, so it is ready to use as soon as you connect your client.

**How can I check if a vector is inside my defined cone?**
You can use the `verify_membership` tool by providing the cone definition and the integer vector you wish to test.

**Why might a basis computation return an 'incomplete' status?**
Calculating a Hilbert basis is computationally intensive. An 'incomplete' status means the algorithm reached a resource limit (like time or memory) before finding all irreducible vectors.
