Skip to content

Solo-core: choose product/elimination form before F1.4 preservation (Fst/Snd unsound as-is) #93

Closed

Description

@hyperpolymath

Context

Surfaced while proving progress (F1.3, landed in #92). It gates F1.4 preservation.

Problem

The Solo-core kernel currently mixes two incompatible product disciplines:

  • Intro is multiplicative — THPair/T_Pair splits the context (ctxAdd g1 g2 = g), i.e. the tensor ⊗ rule.
  • Elimination is projective — Fst/Snd (THFst/THSnd).

preservation of Fst (Pair v₁ v₂) → v₁ needs Has g v₁ a, but inversion only gives Has g₁ v₁ a with g = g₁ + g₂. Projecting discards v₂ and its resources g₂; in the exact (linear) accounting that's a context mismatch, and the rigid T-Var rule blocks a generic affine-weakening rescue. So preservation is unsound for Fst/Snd on open terms as the rules stand. (Progress is unaffected — projections just step.)

Options

  1. Additive products & — make T_Pair share the context (both components typed in the same g); Fst/Snd become sound. Loses multiplicative tensor.
  2. Multiplicative tensor ⊗ — keep the splitting T_Pair; remove Fst/Snd, add let (x, y) = e in body (uses both). Linear-logic-correct; clean preservation. The (Flour, Water) dough example reads as a tensor, which favours this.
  3. Both & and ⊗ — full linear story (projections for &, let-pair for ⊗). More constructors/cases.

Recommendation

Option 2 (tensor + let-pair) is the minimal clean fix since T_Pair is already multiplicative; revisit & later if additive products are wanted.

Acceptance

  • Decision recorded in META.a2ml / a decision note.
  • Kernel updated on both Coq and Idris tracks.
  • preservation (F1.4) proved for the chosen form via the QTT substitution lemma.

Tracked in STATE.a2ml [blockers-and-issues] product-elim.

https://claude.ai/code/session_01BwV2DWsjkBiNP3oscimMLV

Activity

  1. added
    proofs
    on Jun 5, 2026
  2. hyperpolymath commented on Aug 12, 2026

    @hyperpolymath
    OwnerAuthor

    DESIGN DECISION REQUIRED. Issue identifies soundness problem: Solo-core kernel mixes incompatible product disciplines (multiplicative intro with projective elimination). Preservation (F1.4) is unsound for Fst/Snd on open terms. Options: (1) Additive products & with shared context, (2) Multiplicative tensor with let-pair elimination, (3) Both. Recommendation per issue: Option 2 (tensor + let-pair) is minimal clean fix. Related to issues #107, #109. Decision must be recorded in META.a2ml before kernel can be updated on both Coq and Idris tracks.

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

    design-decisionproofs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions