Skip to content
HALOWERK

Datenvertragswerk

finite field quadratic witt decomposition

For a symmetric n by n Gram matrix A, n=1..4, over the prime field p=3 or5, use q(x)=x A x^T. Return row basis B, G=B A B^T, hyperbolic_planes h, anisotropic_dimension a and radical_dimension r. Basis order consists of h adjacent hyperbolic pairs with Gram [[0,1],[1,0]], then an anisotropic block, then radical basis. All cross blocks are zero; n=2h+a+r. Exhaustive lexicographic vector enumeration and rank extension fix the witness. The radical does not contribute to h; no claim of Magma.

POST https://datenvertrag.halowerk.com/v1/finite-field-quadratic-witt-decomposition

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pSee schemaYes
matrixarrayYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "p": {
      "enum": [
        3,
        5
      ]
    },
    "matrix": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4
        },
        "minItems": 1,
        "maxItems": 4
      },
      "minItems": 1,
      "maxItems": 4
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "hyperbolic_planes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4
            },
            "anisotropic_dimension": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4
            },
            "radical_dimension": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4
            }
          },
          "required": [
            "hyperbolic_planes",
            "anisotropic_dimension",
            "radical_dimension"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "p",
    "matrix",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "p": 3,
  "matrix": [
    [
      0,
      1
    ],
    [
      1,
      0
    ]
  ],
  "claim": {
    "hyperbolic_planes": 1,
    "anisotropic_dimension": 0,
    "radical_dimension": 0
  }
}

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 โ†’