Skip to content

Research note: preserve provisional type-system designs for future model re-audit and repair #44

Description

@isomorphisms

Current status — 2026-09-02

STANDING_POLICY / RESEARCH. Retain this as the durable auditability rule for provisional mathematical/type-system designs. It is not an implementation task: later systems must be able to distinguish settled, open, research-only, and not-verified claims and repair them rather than inherit prose as authority.


Motivation

The August 29, 2026 type-system work is intentionally being written down even where implementation may be far away. A future model may be materially better at theorem search, counterexample generation, compiler synthesis, and cross-checking mathematical assumptions. The useful artifact now is therefore not merely code; it is a durable, structured design record that a later system can audit rather than blindly inherit.

This note is about the AI/CI boundary for that workflow.

Required distinction: settled kernel vs provisional research

Design notes should explicitly mark at least:

SETTLED / algebraically routine
OPEN / representation undecided
RESEARCH / mathematical or engineering question
NOT_VERIFIED / code or compiler receipt absent

A later automated pass should not treat all prose as equal-authority specification.

Examples from today's work:

Relatively settled kernels

  • signed elapsed Duration has additive abelian-group structure;
  • Instant + Duration -> Instant and Instant - Instant -> Duration;
  • exact unit definitions/conversions should remain exact where the standards define them exactly;
  • physical dimensions normalize algebraically under multiplication/division;
  • ordinary interval endpoint semantics and outward rounding are well-defined requirements;
  • latitude/longitude are coordinates on a spherical/ellipsoidal object, not the ontology of location.

Deliberately open

  • representation of vague phrases such as last month;
  • correlated uncertainty beyond naive interval arithmetic;
  • relation, if any, between measurement uncertainty and infinitesimal/dual-number structures;
  • exact geofence uncertainty representation (region, cover, probability, sheaf/cosheaf, combinations);
  • how much theorem-guided higher-math inference belongs in elaboration;
  • exact lowering/runtime representation.

Future-model audit contract

A future automated design/rewrite pass should be encouraged to:

  1. reconstruct the claimed laws and type signatures;
  2. search for counterexamples and edge cases;
  3. distinguish mathematical error from implementation inconvenience;
  4. compare against authoritative definitions/standards where relevant;
  5. preserve explicit ambiguity instead of guessing a convenient meaning;
  6. produce an explanation trace for every inferred or changed semantic rule;
  7. retain provenance: what came from a prior design note, what was independently derived, and what was changed;
  8. add executable tests before or alongside implementation where practical;
  9. report actual compile/run status honestly (NOT_VERIFIED until there is a real receipt).

The desired future behavior is closer to “AlphaGo the design space”: explore alternatives, find contradictions or stronger formulations, and propose repairs. It is not “a newer model said so, therefore overwrite history.”

Useful regression/evaluation corpus

The following examples should become long-lived semantic probes because they expose common premature erasure mistakes:

# dimensions / units
1 ft + 3 in
1/4 in + 1/16 in
gallon / second
metre / second / second
foot + second   # unresolved/incompatible dimension

# time
Instant + 5 minutes
Instant - Instant
5 minutes - 8 minutes
1 calendar month != definitionally 30 days
last month      # preserve contextual/vague semantics

# intervals / tolerance
[1,3] + [4,9] = [5,12]
x:[0,1]; x-x    # correlation/dependency probe
0.250 in ± 0.001 in

# geography
all longitudes at a pole denote the same spherical point
International Date Line periodicity
mixed datum/CRS requires an explicit transformation
uncertain location crossing a fence boundary must not become a false precise Bool

# higher-math constraint inference
presheaf restriction indices
Einstein/index-domain constraints
dimensional normalization
theorem lookup only with explicit typed hypotheses

These tests are valuable even before a full language implementation because they let future systems compare proposed designs against the same semantic targets.

Cross-links

Principle

Preserve enough structure today that a better compiler/model tomorrow can audit, derive, test, and repair the design. Do not preserve ambiguity by silently choosing a placeholder meaning; preserve it explicitly as an unresolved typed/design constraint.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions