Maxflow certificate check

maxflow-certificate-check · version 1.0.0 · Numbers & math · free, no key needed

Check an exact max-flow/min-cut certificate and return the first deterministic discrepancy.

Use when you need to: check max flow certificate · validate max flow min cut proof · check claimed maximum flow.

Decide before calling

Read the versioned contract and the supported scope below. Reuse maxflow-certificate-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use maxflow-certificate-check@1.0.0 for check max flow certificate. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "nodes": [
    "s",
    "t"
  ],
  "edges": [
    {
      "from": "s",
      "to": "t",
      "capacity": "3"
    }
  ],
  "source": "s",
  "sink": "t",
  "flow": [
    "3"
  ],
  "claimed_value": "3",
  "source_side": [
    "s"
  ]
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "discrepancy": null,
    "reference_version": "Ford-Fulkerson max-flow/min-cut theorem (Ahuja-Magnanti-Orlin 1993, Sections 6.1-6.5)"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "maxflow-certificate-check",
  "version": "1.0.0",
  "input": {
    "nodes": [
      "s",
      "t"
    ],
    "edges": [
      {
        "from": "s",
        "to": "t",
        "capacity": "3"
      }
    ],
    "source": "s",
    "sink": "t",
    "flow": [
      "3"
    ],
    "claimed_value": "3",
    "source_side": [
      "s"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/maxflow-certificate-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"nodes":["s","t"],"edges":[{"from":"s","to":"t","capacity":"3"}],"source":"s","sink":"t","flow":["3"],"claimed_value":"3","source_side":["s"]}'

The machine-readable contract is at /v1/tools/maxflow-certificate-check/versions/1.0.0.

CLI

node cli.mjs run maxflow-certificate-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.