Skip to content
HALOWERK

Datenvertragswerk

boolean walsh slice preimage family

Reconstructs every Boolean truth table compatible with 0..2 exact signed Walsh coefficients, for n in 1..3 input bits. Truth mask bit x equals f(x); an observation with frequency s and coefficient c means W_f(s) = SUM over x of (-1)^(f(x) XOR parity(x&s)) equals c, with no absolute value, binning or normalization. Returns all truth_masks ascending, count and feasible. An empty list returns all 2^(2^n) functions; incompatible coefficients give a known empty family.

POST https://datenvertrag.halowerk.com/v1/boolean-walsh-slice-preimage-family

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
nSee schemaYes
observationsSee schemaYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "n": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 3
        },
        {
          "type": "null"
        }
      ]
    },
    "observations": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "frequency": {
                "type": "integer",
                "minimum": 0,
                "maximum": 7
              },
              "coefficient": {
                "type": "integer",
                "minimum": -8,
                "maximum": 8,
                "multipleOf": 2
              }
            },
            "required": [
              "frequency",
              "coefficient"
            ],
            "additionalProperties": false
          },
          "minItems": 0,
          "maxItems": 2
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "truth_masks": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 255
              },
              "minItems": 0,
              "maxItems": 256
            },
            "count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 257
            },
            "feasible": {
              "type": "boolean"
            }
          },
          "required": [
            "truth_masks",
            "count",
            "feasible"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "n",
    "observations",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "n": 1,
  "observations": [],
  "claim": {
    "truth_masks": [
      0,
      1,
      2,
      3
    ],
    "count": 4,
    "feasible": true
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’