Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FormaSL — Language Definition Foundations

Status: STABLE
Authority: NORMATIVE DESIGN — CB-L1 LANGUAGE / THEORY / REFERENCE / TYPE
Parent: ../FORMASL.md Roadmap: WHOLE-LANGUAGE-ROADMAP.md
Acceptance horizon: V2-WHOLE-LANGUAGE-H1
Date: 2026-08-22
Purpose: define the stable FormaSL language-definition infrastructure for program/module structure, declaration and theory artifacts, binding/reference resolution, static type/formation semantics and elaboration boundaries before operation-specific semantic families are closed.


1. Jurisdiction

This document owns the STABLE decisions closed by:

CB-L1 — LANGUAGE / THEORY / REFERENCE / TYPE

covering P1 obligations:

A2  semantic identity / reference / higher-order designation
A7  typed role-incidence metagraph relation/participation integration
A8  type / formation system kernel
A11 semantic kind / theory / rule / constraint / policy jurisdiction
B1  semantic construction / theory definition
C1  program / modules / imports / binding / resolution / linking
C4  elaboration and phase semantics

It consumes without reopening:

  • the typed role-incidence Semantic Metagraph;
  • the semantic-reference / co-reference boundary;
  • the protected type capability contract;
  • Semantic Continuity;
  • .fsl source authority and .fsp realization separation;
  • current governance/effect/observation STABLE semantics.

This document does not define:

  • query, graph-analysis, reasoning or projection semantics;
  • result/standing/provenance algebra beyond interfaces required here;
  • governance/lifecycle operator decomposition;
  • concrete surface grammar;
  • AST, scope graph, symbol-table or checker implementation;
  • concrete explicit-semantic-program representation;
  • .fsp, planner, runtime or storage architecture;
  • proof-assistant representation.

2. Governing separations

The language-definition layer preserves:

SourceUnit != LanguageModule
LanguageModule != SemanticTheory
LanguageModule != PackageVersion
LanguageModule != MetagraphSubgraph

BindingIdentity != DeclarationIdentity != SemanticReferentIdentity
BindingCategory != DeclarationKind != SemanticKind
ResolvedBinding != SituatedCoReferenceJudgment

LanguageScope != SemanticScope / Context / Frame / Jurisdiction
ModuleInterface != ModuleImplementation
InterfaceView != DeclarationIdentity
InterfaceCompatibility != TheorySatisfaction
InterfaceCompatibility != SemanticConformance
InterfaceCompatibility != Truth

TypeIdentity
!= TypeContractRevision
!= TypeContractEquivalence
!= Subtyping
!= Inheritance / Specialization

ParsedOrEditingSource
!= AdmittedResolvedProgram
!= ExplicitSemanticProgram

SourceModuleCompatibility != ExecutableLinkCompatibility
SharedDefineSurface != SharedDeclarationKind != SharedSemanticKind
RuntimeBehavioralAgreement != ElaborationSemanticEquivalence

These distinctions are semantic/language jurisdictions. They do not imply one physical data structure per distinction.

NECESSARY DISTINGUISHABILITY
!= MANDATORY ONTOLOGICAL BOX

3. Program and module model

3.1 Source Unit

A SourceUnit is an authoring/transport representation containing source text or equivalent authored FormaSL program material.

Filename, path, serialization or source-unit identity does not create semantic identity.

3.2 Language Module

A LanguageModule is a language-level unit of:

binding
visibility
import/export
interface contract
source-level composition
resolution basis

A module may be represented by one or more source units. The mapping is not semantically fixed by H1.

3.3 Package / version

A package/version unit groups modules/source for distribution and reproducibility. It may participate in a frozen resolution/version basis.

PackageMembership -/-> SemanticIdentity
PackagePublisher -/-> SemanticAuthority

3.4 Metagraph region

A module may declare or reference semantic objects represented in the metagraph, but:

LanguageModule != MetagraphSubgraph
ModuleMembership != GraphMembership
GraphMembership != Truth

4. Binding, declaration and semantic referent identity

4.1 BindingIdentity

Identity of a name-bearing binding/export/import/local designation within a language resolution basis.

4.2 DeclarationIdentity

Identity of a declaration introduced by the language definition.

4.3 SemanticReferentIdentity

Identity of a semantic referent designated/introduced by a declaration when that declaration has such a semantic referent.

4.4 Alias / re-export law

A pure alias or re-export may create a new binding/designator/interface view while preserving the declaration and semantic referent it designates.

NewBinding -/-> NewDeclaration
NewBinding -/-> NewSemanticReferent
AliasOrReExport -/-> KindChangingTransition

Creating a new declaration/referent/type identity requires an explicit declaration/evolution construct governed by its owner.

4.5 Cross-revision identity

SameQualifiedNameAcrossRevisions
-/-> SameDeclarationIdentity

Historical resolution uses the declaration identity fixed by its basis. Positive declaration/referent succession across source revisions belongs to the explicit evolution/revision semantics closed later by CB-L4.


5. Binding category, declaration kind and semantic kind

The language uses shared binding/resolution infrastructure without collapsing semantic jurisdictions.

5.1 BindingCategory

A language-resolution category sufficient to govern name lookup/reference behavior, conceptually including roles such as:

module binding
local binder
role binding
declaration binding

This is not a required closed implementation enum.

5.2 DeclarationKind

Language-definition category of a declaration.

H1 must distinguish at least the materially different declaration jurisdictions needed for:

type
relation / role contract
theory / ontology
rule
validation constraint
governance policy
named semantic content
named operation/computation

The concrete taxonomy may be extensible through the language-admission discipline.

5.3 SemanticKind

Semantic jurisdiction of the artifact denoted/introduced by a declaration, when such a semantic kind is material.

DeclarationKind -/-> UniversalSemanticKind

A named operation can have a language declaration kind without becoming a domain ontological kind by compiler fiat.

5.4 Kind-indexed references

Resolution/checking may require an expected binding/declaration/semantic target contract. A textually valid name that resolves to the wrong kind does not become admissible merely because the spelling matches.

5.5 H1 productive relation / role contract authoring

The relation / role contract declaration jurisdiction is productive in H1. It is not satisfied merely by admitting a declaration-kind tag.

The source language must be able to declare or resolve enough contract content to realize the already-closed typed role-incidence metagraph without leaving material participation semantics to P3, a provider, runtime or storage.

Conceptually, an H1 relation contract establishes or resolves at least:

RelationDeclarationIdentity
RelationContractRevision / Basis
RoleContractSet
ApplicableStatic / FormationDependencies

For each role whose distinction is material, the contract establishes or resolves:

RoleSemanticIdentity under the relation contract
ParticipantAdmissibilityContract
RoleSpecialization / Refinement relation when explicitly used
Participation / OccurrenceGuarantees when material
BindingLocalQualificationContract / Locus when material

Preserve:

RoleName != RoleSemanticIdentity
RelationContract != OntologicalRelationCategory
RoleContract != OntologicalRole
RoleContract != ValidationConstraint
RelationDeclaration != RelationInstance
RelationSpecialization != Subtyping by default
RoleSpecialization != Subtyping by default
ParticipationDistinguishability != MandatoryParticipationIdentity

Participant admissibility may consume the shared type/static kernel, but:

SemanticTypeContract
!= OntologicalCategory
!= SituatedClassification

The participant-admissibility contract must be able to range over the semantic references/kinds already admitted by H1 when the applicable relation requires them. It may therefore admit higher-order semantic referents, including relations or conditionally referable participations, under their type/reference contracts. It must not be artificially restricted to a storage-level entity class or primitive value category.

Recursive/cyclic semantic participation remains possible through the already-closed reference/formation discipline when the applicable contracts permit it. Recursive semantic structure does not authorize recursive/unbounded name resolution or storage recursion as semantic authority.

5.5.1 Participation / occurrence guarantees

When semantically relevant to the relation, source-authorized contract information must be sufficient to determine the applicable semantics of:

cardinality / occurrence bounds
duplicate / repetition
multiplicity
ordering
slot / key semantics

This is a capability requirement, not a universal requirement that every relation spell every dimension explicitly.

A declaration-kind-owned default is admissible only when its semantic meaning is fixed by the language contract. P3, runtime, provider, serialization or storage may not invent a default.

NoAuthoredClause
-/-> ImplementationChoosesSetBagSequenceOrCardinality

The language therefore does not impose one universal set, bag, sequence, unique-player or one-player-per-role semantics on the graph core.

A cardinality/occurrence guarantee must determine or reference the semantic counting basis relevant to the bound. In particular, it must be reconstructible whether the bound ranges over semantic participations/occupancies after the applicable correlation semantics or another explicitly defined semantic unit.

CardinalityCountUnit
!= SourceDeclarationCount
!= PhysicalBindingRecordCount
!= SerializationEntryCount

If unresolved participation correlation can change the count relevant to a cardinality judgment, the language may preserve the cardinality result as unresolved or use another contract-defined conservative/result rule; it may not choose an arbitrary physical count.

If later surface syntax provides shorthands such as required or unique, those forms must elaborate to an explicit relation/role occurrence guarantee under this contract rather than creating a second hidden cardinality semantics.

5.5.2 Qualification locus

Where binding-local qualification is admitted, the applicable contract/basis must make reconstructible enough to determine:

admissible qualification kind / type
which participation/binding is qualified
its semantic locus / jurisdiction

This does not create one universal metadata bag and does not make every qualification part of relation identity.

5.5.3 Participation correlation

When composition may observe potentially overlapping participation contributions, the applicable relation/role contract or frozen basis must determine enough correlation semantics to distinguish, where material:

coalesced occupancy / participation
preserved distinct participation
explicitly unresolved correlation

No universal correlation calculus is required by H1.

Correlation may not be inferred merely from:

source count
physical binding identity
structural equality
qualification equality
serialization order
storage order

Distinguishing multiple participations/occupancies for cardinality, ordering, qualification or other observables does not create universal participation identity. A participation becomes a semantic target/identity-bearing referent only under the applicable contract described by the closed architecture.

5.5.4 Static/interface visibility

Every material relation/role guarantee that a client or subtype is entitled to rely on participates in the declaration-kind-owned static contract and is available, directly or by stable reference, to:

  • module/interface compatibility;
  • kind-specific static compatibility;
  • subtyping/substitutability where applicable;
  • elaboration/source correspondence.

Hidden provider/runtime knowledge cannot discharge a source-level relation/role guarantee.

5.5.5 Jurisdiction of superficially similar constraints

A syntactically or conceptually similar condition does not automatically have the same semantic standing.

ConstitutiveRoleOccurrenceGuarantee
!= ValidationConstraint
!= Ontology / Theory CardinalityAxiom

A relation/role occurrence bound belongs here only when the author declares what participation the relation contract itself permits/requires. A validation requirement remains owned by validation semantics. A theory/ontology axiom remains interpreted under its theory/formalism basis.

The same program may explicitly relate/reuse these artifacts without collapsing them.


6. Basis-relative language resolution

Resolution is a language judgment, not a world-identity oracle.

Conceptually:

Resolve(Basis, Designator, ExpectedTargetContract)
  = Unique(ResolvedBinding, BasisEvidence)
  | Ambiguous(Candidates, BasisEvidence)
  | Unresolved(Reason, BasisEvidence)

The representation of this relation is open.

6.1 Resolution basis

The basis preserves/references enough to reconstruct:

  • module/interface revisions;
  • imports/aliases/visibility;
  • interface views/ascriptions;
  • expected target contract;
  • declaration identities consulted;
  • language-defined scope/priority path.

A mutable latest locator is insufficient.

BasisChange -/-> RetroactiveRetargeting

6.2 Resolution outcomes

At minimum diagnostics must be able to distinguish relevant failure classes such as:

NoCandidate
KindMismatch
AliasCycleWithoutGroundTarget
InvalidImportOrVisibility
AmbiguousCandidateSet

These are language-definition outcomes, not semantic FALSE or runtime failure.

6.3 Grounded finite resolution

H1 language binding resolution over one frozen basis must have a finite operational realization.

An alias cycle with no grounded declaration target does not resolve successfully and may not select an arbitrary representative.

AliasCycle != RecursiveSemanticDefinition
AliasCycle != RecursiveModuleGroup

Recursive semantic structure in the metagraph does not imply recursive/unbounded name resolution.


7. Declarative resolution specificity

Implementation order has no semantic priority.

ImportOrder
HashIterationOrder
FilesystemOrder
LoadOrder
InternalIdOrder
!= ResolutionPriority

H1 uses these declarative rules.

7.1 Explicit qualification

Explicit qualification restricts resolution to the declared module/interface path/basis subject to visibility/kind checks.

7.2 Lexical locality

For local bindings in nested lexical scopes, the nearest enclosing admissible lexical binding dominates more distant lexical scopes.

7.3 Current module versus imported bindings

A declaration/explicit alias introduced in the current module scope is more specific than a binding reachable only through an unqualified import edge.

7.4 Competing imports

Same-specificity candidates reachable through different imports are unordered by import position.

one maximal candidate  -> Unique
multiple maximal candidates -> Ambiguous
no maximal admissible candidate -> Unresolved

The author can qualify, alias, hide or restrict explicitly.

7.5 Expected target contract participates in admissibility

Wrong-kind bindings do not become semantically acceptable merely because they are lexically closer. Concrete namespace rules may refine candidate visibility, but all outcomes remain language-defined/reconstructible.


8. Module interface and interface view

8.1 Interface contract

A module has a static interface contract, whether authored explicitly, inferred or synthesized.

For each exported binding the interface exposes enough information, where applicable, to reconstruct:

exported designator
BindingCategory
DeclarationKind
binding/declaration identity contract
semantic referent/kind contract where applicable
static declaration/signature contract
TypeIdentity / TypeContractRevision
relation/role contract revision and material static guarantees where applicable
type exposure mode
visibility
required static dependencies
version/basis identity

8.2 InterfaceView

An InterfaceView is the client-visible static contract selected/ascribed at an import/export boundary.

Same DeclarationIdentity -/-> Same InterfaceView
Same TypeIdentity -/-> Same TypeExposureView

A view is a language contract role; it need not be a first-class ontological object or runtime record.

8.3 Module compatibility

Use the source-level judgments:

ModuleProvidesInterface(Module, Interface)
InterfaceCompatible(Required, ProvidedView)

Compatibility is directional and consumer-guarantee preserving:

every required binding/static guarantee the client may rely on must be supplied by a unique compatible provided binding under the applicable kind-specific static relation.

Extra provided exports do not become client requirements merely because they exist.

InterfaceCompatibility
!= TheorySatisfaction
!= SemanticConformance
!= Admission
!= Truth

8.4 Kind-owned compatibility

For each required export r, a compatible provider p must satisfy conceptually:

BindingCategoryCompatible(r,p)
AND DeclarationKindCompatible(r,p)
AND KindSpecificStaticContractCompatible(r,p)

The declaration-kind owner defines the kind-specific compatibility relation. The module system may not invent that relation.

8.5 Source module vs executable linking

SourceModuleCompatibility != ExecutableLinkCompatibility

P3 executable architecture must preserve/correspond to this source-level contract.


9. Theory and ontology artifacts

9.1 TheoryArtifact

A TheoryArtifact is a referable intensional semantic artifact organizing declarations, sentences/premises, rules, constraints or other semantic content under an identified theory/formalism basis.

TheoryArtifact != LanguageModule
TheoryArtifact != Package
TheoryArtifact != Claim
TheoryArtifact != Truth

An ontology is an intensional theory-like semantic artifact under an ontology/theory contract. It is not a top-level operator by default.

9.2 Theory basis / formalism

Each theory identifies/resolves the formalism/theory-language contract under which its contents are interpreted sufficiently for the operations that consume it.

No universal logic is required.

SharedMetagraphCarrier
!= SharedLogic
!= SharedTheorySatisfactionRelation

The vocabulary/signature relevant to current H1 theory use must remain distinguishable and reconstructible from the theory’s admitted declarations/references plus its formalism basis where required by a consuming theory relation or operation.

NecessarySignatureDistinguishability
!= MandatoryFirstClassSignatureArtifact

H1 does not require a standalone institution-style signature object merely because a theory may be described abstractly as sentences over a signature. A future theory relation that needs a stronger explicit signature-morphism contract must establish that requirement through its own material trigger/owner.

9.3 Theory adoption / membership

A theory can adopt items under its own intensional basis, conceptually:

TheoryAdopts(Theory, Item, Basis)

or an equivalent kind-owned relation.

TheoryAdopts(T,S)
-/-> Truth(S)
-/-> Claim(S)
-/-> GlobalAcceptance(S)

Theory membership does not erase the original declaration/semantic kind of an item.

9.4 Theory composition / mapping

Preserve:

ModuleImport
!= TheoryInclusion
!= TheoryExtension
!= TheoryMapping
!= TheoryInterpretation
!= TheoryRefinement

A theory relation/mapping is an explicit semantic relation under its contract.

TheoryMapping != NameAlias
TheoryMapping != SemanticReferentIdentity

A mapping is not assumed conservative, satisfaction-preserving or equivalent unless the theory-specific contract establishes that property.

Different theories may resolve different formalism bases and remain connected by explicit theory relations without requiring one universal logic or one universal heterogeneous-theory calculus.

9.5 Reasoning boundary

CB-L1 defines theory artifact construction/reference/integration, not consequence.

WellFormedTheory
!= ConsistentTheory by default
!= SatisfiedTheory
!= EntailingAnyConclusion

Reasoning/consequence belongs to CB-L3.


10. H1 static type kernel

The static type architecture is a shared kernel extended by declaration/operation owners in later bundles.

CB-L1 STATIC KERNEL
+ KIND/OPERATION-SPECIFIC STATIC RULES
= COMPLETE P2 STATIC SEMANTICS

10.1 Required H1 capabilities

H1 requires:

  • stable semantic type identity;
  • named type references;
  • parameterized type declarations;
  • bounded type parameters;
  • explicit inheritance / typed specialization;
  • separately checked subtyping/substitutability;
  • abstract/opaque type exposure;
  • transparent distinct types;
  • aliases/co-designation;
  • module/interface export of type contracts;
  • type-contract revision/basis.

10.2 Not required by H1

H1 does not currently require as universal mechanisms:

dependent/value-indexed types
refinement types
higher-rank polymorphism
higher-kinded type parameters
impredicative polymorphism
equirecursive types
universal structural subtyping
universal nominal subtyping

Agda’s dependent metalanguage does not establish dependent types in the FormaSL object language.


11. Core type roles and judgments

At the contract level, the static kernel provides roles equivalent to:

TypeIdentity
TypeContractRevision
TypeParameter
TypeConstructorIdentity / arity contract
TypeExpression
StaticGuarantee relation/family
StaticEnvironment

and judgments equivalent to:

WellFormedType(Env, Type)
WellFormedTypeDeclaration(Env, Decl)
WellFormedModuleInterface(Env, Interface)
TypeEquivalent(Env, T1, T2)
Subtype(Env, S, T)
TypeArgumentSatisfiesBound(Env, A, Bound)
WellFormedDeclaration(Env, Declaration)

Concrete notation, data structures and algorithms remain open.

11.1 Minimum type-expression capability

The language supports at least named type references, type variables and application of declared parameterized type constructors.

Later bundles may introduce result/row/collection or operation-specific type constructors without reopening the kernel when they obey these contracts.


12. Parametric polymorphism

H1 adopts declaration-level parametric polymorphism with explicit type parameters and optional bounds.

A type parameter is a static binder, not a domain individual.

Instantiation requires:

well-formed type argument
+ satisfaction of every declared bound

Subtype-style bounds consume the Subtype judgment.

H1 does not require arbitrary higher-rank polymorphic values.


13. Type identity, aliases and exposure

Preserve:

TypeIdentity
!= TypeContractRevision
!= TypeContractEquivalence
!= Subtyping
!= Inheritance

13.1 Abstract / opaque type view

Exposes type identity + selected guarantees while hiding selected definition/equality information from the client.

13.2 Transparent distinct type

Has a distinct TypeIdentity while exposing selected definition/representation/contract information.

Transparency does not create alias identity.

13.3 Type alias / co-designation

No new TypeIdentity is created; the binding designates an existing TypeIdentity under the alias contract.

13.4 Revision

Preserving a TypeIdentity across revisions does not imply compatibility of TypeContractRevision values.

Historical type judgments remain basis-relative.


14. Inheritance / specialization

Inheritance is explicit typed specialization:

Specializes(Child, Parent, Contract)

It may govern inherited/reused declaration structure/refinement under the applicable kind.

Specializes(S,T) -/-> Subtype(S,T)
Specializes(S,T) -/-> TypeIdentity(S)=TypeIdentity(T)

Strict specialization cycles are invalid for H1 unless the source explicitly uses another relation such as equivalence/alias to express the intended semantics.

Semantic graph cycles remain allowed independently.


15. Subtyping / safe substitutability

Subtype(S,T) means an admissible S may be used where T is required without violating any static consumer guarantee the consumer of T is entitled to rely on.

Each participating declaration/type kind exposes the static guarantee relation it owns.

Conceptually:

Subtype(S,T)
requires
for every required static guarantee g of T,
S discharges g under the applicable static guarantee relation.

Subtyping may arise only through language-authorized rules such as:

accepted explicit subtype declaration
reflexivity
transitivity
explicit kind-specific derived rule

It does not arise from:

inheritance alone
structural similarity alone
shared representation
graph membership
module import
situated domain classification

Before implementation authorization every H1 subtype-introducing rule must have a checkable acceptance mechanism fixed by the downstream contract.

An unchecked written S <: T is not semantic authority merely because it appears in source.


16. Generic type constructors and variance

A type-constructor application is well formed only when:

  • the constructor resolves uniquely;
  • arity matches;
  • arguments are well formed;
  • bounds are satisfied;
  • no kind/reference ambiguity remains.

H1 has no implicit generic subtype propagation.

S <: T
-/-> F<S> <: F<T>

unless F’s declaration/static contract explicitly admits a sound variance/subtype propagation rule.

This conservative default is part of H1 semantics.


17. Recursive declarations versus recursive types

The metagraph may contain recursive/cyclic semantic structures.

That does not imply equirecursive type equality.

Named declarations may mutually reference predeclared identities/interfaces when an explicit formation rule permits it.

A pure alias cycle without grounded identity remains invalid resolution.


18. Static phase jurisdiction

The logical language-definition stages are:

SOURCE / AUTHORING REPRESENTATION
-> STRUCTURAL / SYNTACTIC FORMATION
-> LANGUAGE RESOLUTION / BINDING
-> STATIC FORMATION + TYPE / INTERFACE JUDGMENTS
-> ADMITTED RESOLVED PROGRAM
-> ELABORATION
-> EXPLICIT SEMANTIC PROGRAM

These are semantic/language jurisdictions, not mandatory compiler passes.

Static judgments may consume:

  • source declarations;
  • imported interfaces/views;
  • declared semantic/type contracts;
  • compile/elaboration-time derived information explicitly authorized by the language.

They may not silently depend on ordinary runtime state, current world truth, dynamic observations or provider/runtime behavior.

WellTyped != SituatedClassification

A dynamic semantic classification must use an explicit dynamic judgment/operation rather than changing static typing by stealth.


19. Elaboration contract

19.1 Domain

Elaborate : AdmittedResolvedProgram -> ExplicitSemanticProgram

Raw/incomplete/ambiguous/invalid source remains representable for diagnostics/tooling but does not receive executable semantic meaning through invented defaults.

19.2 Prohibitions

Elaboration may not:

  • choose among ambiguous references;
  • invent binding/declaration/semantic kind;
  • invent relation/role occurrence, multiplicity, ordering, qualification-locus or participation-correlation semantics;
  • repair unresolved imports/references;
  • use runtime observation/world truth as static authority;
  • introduce category transitions absent from the language semantics.

19.3 Coherence

If multiple target representations are admitted:

Elaborate(P,T1) AND Elaborate(P,T2)
-> SemanticEquivalent_H1(T1,T2)

under the language semantic observation/correspondence horizon.

SemanticCoherenceRequired
!= UniqueTargetRepresentationRequired

Runtime agreement under one current realization does not establish elaboration equivalence.


20. Explicit Semantic Program contract

ExplicitSemanticProgram is an abstract P2 contract role, not a frozen IR.

For every admitted source construct it makes explicit or reconstructible at least:

module/interface basis
BindingIdentity
DeclarationIdentity
BindingCategory
DeclarationKind
SemanticReferentIdentity / SemanticKind where applicable
TypeIdentity / TypeContractRevision / relevant static contract
relation/role contract revision and material participation guarantees where applicable
semantic reference/designation relation
source correspondence
resolution/version basis
inter-declaration static dependencies
construct/category identity needed by its semantic owner

It must not leave unresolved language-definition decisions for P3.

It does not determine:

storage
.fsp provider binding
planner strategy
runtime state
machine representation
number of later IRs

Later P2 bundles enrich operation/result forms; P2B freezes the complete executable semantic interface before P3.


21. DEFINE surface disposition

FormaSL preserves/generalizes the V1 ergonomic idea of a coherent declaration family while rejecting one universal semantic definition kind.

Conceptually:

DEFINE-LIKE AUTHORING FORM
-> DeclarationKind-specific semantics
-> optional SemanticKind-governed artifact as defined by that declaration contract
SharedSurfaceKeyword
!= SharedDeclarationKind
!= SharedSemanticKind

The exact keyword/grammar remains open.


22. DX constraints from the formative probe

Any eventual surface must preserve at least these usability properties:

  • common module/declaration authoring remains concise;
  • declaration kinds such as type/theory/rule/constraint/policy are explicit enough to diagnose wrong-kind references;
  • relation/role contracts expose materially different role participation semantics without forcing one universal constraint bag;
  • alias identity versus distinct type creation is lexically/structurally unambiguous;
  • interface exposure may be explicit where abstraction matters but need not impose ceremony on every trivial module;
  • ambiguous imports are diagnosed, not resolved by order;
  • diagnostics distinguish unknown, ambiguous, wrong-kind, alias-cycle, interface incompatibility and static-vs-dynamic typing mistakes;
  • source/package paths do not silently carry semantic identity.

No exact tokens are frozen by this section.


23. Semantic Continuity obligations

Across source/module/resolution/type/elaboration boundaries, when material:

  • identity is preserved directly or by stable reference;
  • module/interface/type/relation-contract revision basis remains reconstructible;
  • role semantic identity and material participation guarantees survive by value or stable reference;
  • participation multiplicity/order/slot and qualification locus survive when made semantically material by the applicable contract;
  • unresolved participation correlation remains unresolved rather than being silently coalesced or split by representation;
  • language visibility remains distinct from semantic applicability;
  • source/module authorship does not become semantic issuer/authority;
  • theory membership/import does not become truth/Claim;
  • interface opacity is explicit information restriction, not identity erasure;
  • static source/resolution/type dependencies remain reconstructible for diagnostics/accountability;
  • unique/ambiguous/unresolved/ill-formed/type-incompatible outcomes remain distinct from FALSE/runtime failure;
  • representation changes do not define semantic meaning.

The CB-L1 continuity audit found no current-horizon ACCIDENTALLY-LOST dimension after the bounded relation/role authoring hardening.


24. V1 disposition owned by this contract

CB-L1 adopts these V1 evidence dispositions:

imports / QualifiedRef        = PRESERVE + GENERALIZE
module structure              = PRESERVE + GENERALIZE
`define <kind>` DX            = PRESERVE + GENERALIZE
named typed relation roles    = PRESERVE + GENERALIZE into relation/role contracts
role cardinality capability   = PRESERVE + GENERALIZE when constitutive participation semantics
`required` / `unique` surface = CAPABILITY PRESERVED; exact derived syntax not frozen
generic V1 constraint bag     = DROP WITH JUSTIFICATION; split by semantic jurisdiction
V1 `subSchema` bridge         = REPLACE by explicit Specializes + separately checked Subtype
V1 `disjoint` bucket          = REPLACE / RELOCATE by theory/ontology or competent constraint owner
V1 arbitrary invariant bucket = REFINE / RELOCATE by static/validation/runtime jurisdiction
bounded generics              = PRESERVE + GENERALIZE capability
System-F<:-style mechanism    = EVIDENCE, NOT FROZEN
CheckedProgram != CoreProgram = PRESERVE + GENERALIZE jurisdiction
category-specific ref paths   = PRESERVE + GENERALIZE into kind-indexed resolution
source spans / diagnostics    = PRESERVE capability
structural vs nominal checks  = PRESERVE distinction, mechanism open

No V1 ADT, CoreTerm, symbol table, namespace layout or package-ID implementation is normative here.


25. Downstream interface

To CB-L2 — Situated Result Contract

CB-L2 consumes:

  • the binding/declaration/type/kind model;
  • module/interface basis;
  • type-kernel extension interface;
  • source/elaboration correspondence;
  • the requirement that result/type declarations preserve basis/identity/dependence.

CB-L2 owns result standing, provenance/dependence and completion algebra.

To CB-L3 — Computational Regime Boundaries

CB-L3 consumes:

  • named/kinded operation/theory/rule declarations;
  • shared type/static kernel;
  • kind-owned compatibility extension point;
  • theory artifact basis;
  • module/reference resolution.

CB-L3 owns MATCH/ANALYZE/INFERENCE/PROJECT semantics and their operation-specific typing rules.

To CB-L4 — Lifecycle / Governance / Dynamics

CB-L4 consumes:

  • binding/declaration/referent identity;
  • kinded policy/constraint/Claim/revision declarations;
  • module/type basis;
  • negative rule that path reuse does not imply identity continuity.

CB-L4 owns positive source/referent succession/evolution semantics and lifecycle category transitions.

To CB-L5/P2B

CB-L5 audits that all later kind/operation-specific rules compose with this language-definition kernel and freezes the whole-language executable semantic interface.


26. Formalization routing

No CB-L1 mechanization is authorized by this document.

Formalization is deferred until the exact relation/calculus needed for a material theorem is formally determined.

High-risk downstream obligations include:

alias/declaration identity non-creation
resolution groundedness/cycle/uniqueness or equivalent acceptance property
interface consumer-guarantee preservation
type identity/equality/subtyping safety
relation/role contract guarantee preservation across elaboration and interfaces
historical resolution non-retroactivity with CB-L4
whole-language elaboration semantic coherence with P2B/P3

Attempting to prove arbitrary carrier-ID distinctions or a simplified symbol table would not discharge these normative claims.

SEMANTIC CLOSURE != FORMALIZATION
MECHANIZATION AUTHORIZED = NO

27. Protected open questions after CB-L1

The following remain intentionally open without blocking this contract:

  • exact concrete grammar/tokens;
  • exact relation/role declaration tokens and clause grammar;
  • concrete notation for material occurrence/multiplicity/order/slot guarantees;
  • whether declaration-kind-owned defaults are surfaced explicitly or by a concise source form, provided their semantics are language-defined;
  • explicit vs inferred interface syntax;
  • scope graph versus another resolver representation;
  • physical namespace/symbol-table data structures;
  • exact checker algorithm;
  • bidirectional versus constraint-based implementation;
  • operation/result-specific type constructors and typing rules;
  • richer dependent/refinement/higher-rank/higher-kinded type extensions outside H1;
  • richer module functors/generative module instances outside H1;
  • package manager/registry/lockfile mechanism;
  • exact ExplicitSemanticProgram representation;
  • richer standalone theory-signature/morphism authoring if a future material workload requires it;
  • universal heterogeneous-theory calculus beyond current H1;
  • query/reasoning/analysis/projection semantics;
  • lifecycle/governance positive evolution relations;
  • P2B global composition closure;
  • all P3 executable IR/realization/planner/runtime structures.

Any future extension must preserve the stable distinctions here or provide a material reopen trigger.


28. Acceptance gate

CB-L1 was closed after:

  • authority/P0/P1 coverage;
  • V1 design/formalization/implementation evidence;
  • primary theory on modules, resolution, phase distinction, elaboration, type systems and theory structuring;
  • two destructive composition rounds plus bounded hardening;
  • static type/module kernel closure;
  • formative surface/DX probes;
  • Semantic Continuity audit;
  • V1 regression audit;
  • selective-formalization determinacy review;
  • final sufficiency audit.

A later H1 functional-sufficiency review on 2026-08-22 admitted one bounded FUNCTIONAL DEPTH GAP: the architecture already assigned material participation semantics to relation / role contract, while CB-L1 only guaranteed the declaration jurisdiction and generic static extension point. ../TYPE-THEORY-ONTOLOGY-AUTHORING-CAPABILITY-ADEQUACY-REVIEW-1.md records the evidence, counterevidence and targeted terminal re-audit. Section 5.5 closes that authoring-depth gap without reopening the Semantic Metagraph, type topology or theory/ontology topology.

The same review tested type and theory/ontology authoring. No additional material H1 functional gap was demonstrated. Institutions/DOL evidence established the importance of signature/vocabulary distinguishability, but current H1 can reconstruct the required vocabulary through formalism basis plus admitted declarations/references; Section 9.2 records that boundary without introducing a mandatory standalone signature artifact.

Current result:

CB_L1_AUTHORITY_COVERAGE          = PASS
CB_L1_RELATION_ROLE_AUTHORING     = PASS AFTER TARGETED HARDENING
CB_L1_TYPE_AUTHORING              = PASS FOR CURRENT H1
CB_L1_THEORY_ONTOLOGY_AUTHORING   = PASS FOR CURRENT H1
CB_L1_COMPOSITION_ATTACK          = PASS AFTER TARGETED TERMINAL REAUDIT
CB_L1_SURFACE_DX                  = PASS AT CONTRACT LEVEL; EXACT SYNTAX OPEN
CB_L1_TYPE_SURFACE_DX             = PASS
CB_L1_SEMANTIC_CONTINUITY         = PASS AFTER TARGETED TERMINAL REAUDIT
CB_L1_V1_REGRESSION               = PASS AFTER RELATION/ROLE CAPABILITY RESTORATION
CB_L1_BLOCKING_UNKNOWN            = NONE
CB_L1_FORMALIZATION_REQUIRED_NOW  = NO
CB_L1_SUBJECT_SUFFICIENT          = YES
CB_L1                              = STABLE / TERMINAL FOR CURRENT H1 SCOPE

This closes only CB-L1 and the bounded current-H1 authoring sufficiency question.

LANGUAGE_SEMANTIC_CLOSURE   = NOT PASS
LANGUAGE_DEFINITION_CLOSURE = NOT PASS
P2B                         = NOT YET AUTHORIZED
P3                          = NOT AUTHORIZED
IMPLEMENTATION CODE         = NOT AUTHORIZED