Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/integer-lattice-coset-intersection

For each lattice supply column-Hermite parameters[a,b,c] generating(a,0),(b,c),wherea,c1..4and0<=b<a,plus integeroffset coordinates-8..8. Compute the complete cosetintersection: canonicalcommonlatticebasis[(A,0),(B,C)]withA,Cpositive and0<=B<A; representative chosen0<=x<A,0<=y<C if compatible,else null. Allsolutions equal representative plus the commonlattice. Return nonemptyflag; emptycoset still

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/integer-lattice-coset-intersection

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/integer-lattice-coset-intersection", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claim":{"basis":[[6,0],[0,6]],"nonempty":true,"representative":[4,4]},"left":{"hnf":[2,0,2],"offset":[0,0]},"right":{"hnf":[3,0,3],"offset":[1,1]}}),
});
console.log(await res.json());

Example input

{
  "claim": {
    "basis": [
      [
        6,
        0
      ],
      [
        0,
        6
      ]
    ],
    "nonempty": true,
    "representative": [
      4,
      4
    ]
  },
  "left": {
    "hnf": [
      2,
      0,
      2
    ],
    "offset": [
      0,
      0
    ]
  },
  "right": {
    "hnf": [
      3,
      0,
      3
    ],
    "offset": [
      1,
      1
    ]
  }
}