Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/quandle-cocycle-braid-state-sum

Compute the quandle TWO-COCYCLE state-sum of the closure of one captured signed braid. table[x][y]=x*y is a finite RIGHT QUANDLE on labels0..n-1,n1..3: square/closed, each column bijective, x*x=x, (x*y)*z=(x*z)*(y*z). modulus is2or3; cocycle[x][y] is a residue0..modulus-1, same square shape, normalized phi(x,x)=0, satisfying phi(x,y)+phi(x*y,z)=phi(x,z)+phi(x*z,y*z) modulo modulus. On1..3 strands,

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/quandle-cocycle-braid-state-sum

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/quandle-cocycle-braid-state-sum", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claim":{"colorings":[[0,0],[0,1],[1,0],[1,1]],"count":4,"histogram":[2,2],"weights":[0,1,1,0]},"cocycle":[[0,1],[0,0]],"modulus":2,"strands":2,"table":[[0,0],[1,1]],"word":[1,1]}),
});
console.log(await res.json());

Example input

{
  "claim": {
    "colorings": [
      [
        0,
        0
      ],
      [
        0,
        1
      ],
      [
        1,
        0
      ],
      [
        1,
        1
      ]
    ],
    "count": 4,
    "histogram": [
      2,
      2
    ],
    "weights": [
      0,
      1,
      1,
      0
    ]
  },
  "cocycle": [
    [
      0,
      1
    ],
    [
      0,
      0
    ]
  ],
  "modulus": 2,
  "strands": 2,
  "table": [
    [
      0,
      0
    ],
    [
      1,
      1
    ]
  ],
  "word": [
    1,
    1
  ]
}