Linear inconsistency certificate check

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

Check a witness y that A x = b has no solution (yA = 0, yb != 0) or no x >= 0 solution (Farkas: yA >= 0, yb < 0).

Use when you need to: verify a certificate that a linear system has no solution · check a Farkas witness for A x = b with x >= 0 · prove inconsistent simultaneous equations with multipliers.

Decide before calling

Read the versioned contract and the supported scope below. Reuse linear-inconsistency-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 linear-inconsistency-certificate-check@1.0.0 for verify a certificate that a linear system has no solution. 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:

{
  "matrix": [
    [
      "1",
      "1"
    ],
    [
      "1",
      "1"
    ]
  ],
  "rhs": [
    "1",
    "2"
  ],
  "variant": "free",
  "witness": [
    "1",
    "-1"
  ]
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "first_discrepancy": null,
    "reference_version": "r49-linear-inconsistency-1.0.0 (theorem of alternatives for Ax = b and Farkas lemma for Ax = b, x >= 0, Schrijver 1986 sections 3.1 and 7.3; exact rational arithmetic)"
  }
}

How to call it

MCP

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

{
  "id": "linear-inconsistency-certificate-check",
  "version": "1.0.0",
  "input": {
    "matrix": [
      [
        "1",
        "1"
      ],
      [
        "1",
        "1"
      ]
    ],
    "rhs": [
      "1",
      "2"
    ],
    "variant": "free",
    "witness": [
      "1",
      "-1"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/linear-inconsistency-certificate-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"matrix":[["1","1"],["1","1"]],"rhs":["1","2"],"variant":"free","witness":["1","-1"]}'

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

CLI

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

Get the client at /clients/cli/.