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

instrument implementation / implementation-contract

Set Operations Visualizer (Venn) implementation

A source-bound implementation contract for Set Operations Visualizer (Venn); 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
t6-117
Effect
Computation or source lookup only

Input and validation requirements

The extreme-integer vector can break the plain-JavaScript implementation: 9007199254740992 and 9007199254740993 are mathematically distinct set elements but can collapse to the same IEEE-754 Number, producing an incorrect union. Complement also requires an explicit universe; without one, the result is undefined.

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": {
    "sets": {
      "A": [
        1,
        2,
        3,
        5
      ],
      "B": [
        3,
        4,
        5,
        6
      ]
    },
    "operation": "union"
  },
  "expected_outputs": {
    "result": [
      1,
      2,
      3,
      4,
      5,
      6
    ],
    "shaded_regions": [
      "A-only",
      "B-only",
      "A-intersection-B"
    ]
  },
  "working": "Start with A = {1,2,3,5}. Add elements of B = {3,4,5,6}, keeping each element only once: {1,2,3,5} ∪ {3,4,5,6} = {1,2,3,4,5,6}. Region check: A-only = {1,2}, B-only = {4,6}, A∩B = {3,5}; their union is {1,2,3,4,5,6}."
}

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-tranche6/tranche6-results.json