Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/finite-monoid-group-completion

From a supplied complete1..5element associative commutative monoid table withidentityelement0,construct its Grothendieck group of formal differences. Pair(a,b) is equivalent(c,d) iff some sourceelementt gives(a+d)+t=(c+b)+t. Return every equivalenceclass with all orderedsourcepairs,leastpair representatives,pair-to-class matrix,complete groupaddition,inverses and canonicalsource map a->[a,0]. Clas

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/finite-monoid-group-completion

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/finite-monoid-group-completion", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed_value":{"addition":[[0,1],[1,0]],"classes":[[[0,0],[1,1]],[[0,1],[1,0]]],"group_size":2,"identity":0,"inverse":[0,1],"monoid_map":[0,1],"pair_classes":[[0,1],[1,0]],"representatives":[[0,0],[0,1]],"source_size":2},"table":[[0,1],[1,0]]}),
});
console.log(await res.json());

Example input

{
  "claimed_value": {
    "addition": [
      [
        0,
        1
      ],
      [
        1,
        0
      ]
    ],
    "classes": [
      [
        [
          0,
          0
        ],
        [
          1,
          1
        ]
      ],
      [
        [
          0,
          1
        ],
        [
          1,
          0
        ]
      ]
    ],
    "group_size": 2,
    "identity": 0,
    "inverse": [
      0,
      1
    ],
    "monoid_map": [
      0,
      1
    ],
    "pair_classes": [
      [
        0,
        1
      ],
      [
        1,
        0
      ]
    ],
    "representatives": [
      [
        0,
        0
      ],
      [
        0,
        1
      ]
    ],
    "source_size": 2
  },
  "table": [
    [
      0,
      1
    ],
    [
      1,
      0
    ]
  ]
}