Guth
NewsDocs
Page actions
View as Markdown ↗
Explore MCP tools ↗

instrument implementation / implementation-contract

Magic Square / Latin Square Generator implementation

A source-bound implementation contract for Magic Square / Latin Square Generator; deployment and executable qualification remain separate.

Status: VERIFIED_CLEANLifecycle: implementation-contract

Binding contract

This record describes what an executable surface must bind and validate. It does not claim that a public calculator, package, or production route is deployed.

Record owner
Guth Instruments
Lifecycle
verified-clean
Evidence ID
t4-237
Effect
Computation or source lookup only

Input and validation requirements

The extreme-order vector exposes an unsafe acceptance path: n=1,000,000,000 requires 10^18 cells, exceeds JavaScript safe-integer precision, and cannot be practically allocated. The Latin-square vector also exposes an unresolved zero-based versus one-based symbol convention that can change the validity result.

Required corrections

No binding erratum is attached to this unique-name record. Implementers must still preserve the declared units, domain, and failure behavior.

Inspectable interface fixture

The sample below is evidence for interface and validation tests, not a production implementation.

{
  "inputs": {
    "operation": "generate_magic",
    "order": 1
  },
  "expected_outputs": {
    "square": [
      [
        1
      ]
    ],
    "magic_constant": 1,
    "valid": true
  },
  "working": "Magic constant: M=1(1²+1)/2=1(2)/2=1. The only row, column, and both diagonals contain 1, so each sums to 1. The square is valid."
}

Other records

Sources and evidence

These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.

  • VERIFIED_LEDGER.json
  • evidence-tranche4/tranche4-results.json