A.19.CPM:4 - Solution
CPM is an A.6.1 U.Mechanism declaration whose core commitments are:
- Comparator admissibility is declared and gated (
CG-Spec.ComparatorSet, andCG-Spec.SCPwhen numeric operations are involved; scale admissibility via CSLC). - Results are set‑valued relation or poset tokens; partial orders remain partial; no silent scalarization or totalization.
- Admissibility is tri‑state and fail‑closed on missing admissibility and evidence; unknown never coerces into a fabricated outcome.
- Comparison remains distinct from selection; CPM produces relation outcomes;
SelectorMechanismconsumes them.
This pattern defines:
- a stable mechanism boundary for admissible comparison:
Compare(...) → ComparisonResultSlotplus a tri‑stateCompareEligibilityguard; - a stable SlotKind field set (by suite lexicon tokens) that downstream selection and Part‑G wiring can rely on without SlotKind drift;
- an admissibility and evidence responsibility split: admissibility is gated by
CG-Spec(and CSLC), while admission and comparability relations are cited fromCN-Spec; - a minimal replay basis: the identified
CompareorCompareEligibilityapplication, its bound arguments and returned value or explicit absence, with an A.10 evidence-provenance path when the receiving reliance requires it; - planned and actual use: on a P2W path an A.15.2 plan selects editions and policies; A.15.3 typed filling applies to independently declared receiving positions. Actual arguments and results belong to the comparison application; a dated U.Work claim is independently governed;
- a comparison-use boundary: claim scope, selected A.2.6 context slices, optional A.19 predicate, reference plane, and evaluation window are occurrence bindings, not generic context, comparator content, output fields, or an optional model-use structure.
A.19.CPM:4.1 - Operation declaration (normative)
CPM.IntensionRef cites the A.6.1 declaration episteme presented here. CHR resolves compare to its local Compare operation. A changed argument, comparator law or guard requires explicit selection of the changed declaration; another realizer of the same declaration changes no suite member.
-
Declaration boundary: this A.6.1 mechanism intension declares
CompareandCompareEligibility. Applications and their bindings are established separately under the rules below.- Planned use: A.15.2 selects the editions and policies for a proposed comparison. If a receiving position is independently declared, A.15.3 can specify its planned filling. Neither plan asserts an actual Compare argument or result binding.
-
IntensionHeader:
id = CPM,version = 1.0.0,status = stable. -
IntensionRef:
CPM.IntensionRefdesignates thisU.Mechanismepisteme as the suite member named inA.19.CHR:4.2; it is not theEntityOfConcernRefof the declared operation family. -
SignatureManifest (optional; importability): if a CPM publication is intended for reuse beyond the CHR suite, author SHOULD publish a
SignatureManifestthat records (i) the declaredComparestage‑op signature, (ii) the SlotKind field set (by lexicon tokens), and (iii) the set‑valued output commitment (no silent scalarization or totalization). -
Purpose: admissible comparison producing set‑valued parity or poset outcomes (not a single scalar).
-
Imports:
G.0 (CG‑Spec.ComparatorSet, CG‑Spec.SCP, CG‑Spec.MinimalEvidence),A.18 (CSLC),A.19.CN (comparability and admission declarations),A.19.CHR:4.2.1 (CHR SlotKind Lexicon). -
EntityOfConcernRef: the comparison operation family declared by
CompareandCompareEligibilityin this section. -
Effective reference scheme: the CHR suite reference scheme in which the A.19.CHR SlotKind lexicon, CN-Spec, CG-Spec, and ComparatorSpec tokens are interpreted.
-
Direct signature components:
- SubjectKind:
ReadingContent, supplied by the reading contents in the left and right profiles. - RangedValueKind: CHR-typed profile values in a CG-Frame (see
CG-Spec.ComparatorSet). - Results are declared per operation: a set of relation/poset tokens and a separate eligibility judgment.
- Input qualification: bind the left and right profiles to be compared. The
U.ClaimScopestates when claims about comparing them apply. Check that the selectedU.ContextSlicevalues belong to that scope under A.2.6. The extent of the calculation is determined separately.
These are direct A.6.0 declaration components.
- SubjectKind:
Reading range. ReadingContent and profile interpretation come from C.16:5.5.1. Resolve each component’s subject, Characteristic, Scale, attribution and conditions before using its values. A content member can be conditional or insufficiently supported; this operation’s eligibility and evidence rules still decide whether it may be used. Profiles retain the positions or contributor identities, ordering and multiplicity required by their declared basis. An independently materialized result episteme is distinct from the calculated Coordinate and the bound reading content.
Operation-local argument and result declarations
Each argument meaning is declared separately for Compare and CompareEligibility. ByRef means one reference to the stated value and edition; ByValue carries the value itself. Cardinality is per application. A guard can assess an incomplete proposal with 0..1 of each required argument; a missing argument has no binding and prevents pass.
| Direction | Local designator | Meaning and ValueKind | Designation; cardinality |
|---|---|---|---|
| Argument | LeftProfileSlot | Left operand: profile of ReadingContent components with their basis positions, Characteristic and Scale | ByValue; 1 profile |
| Argument | RightProfileSlot | Right operand of the same kind, matched by the comparator or a separately justified basis mapping | ByValue; 1 profile |
| Argument | CNSpecSlot | CN-Spec governing admission and comparability of the operand pair | CNSpecRef; 1 |
| Argument | CGSpecSlot | CG-Spec governing comparator admission, SCP and default evidence conditions | CGSpecRef; 1 |
| Argument | ComparatorSpecSlot | ComparatorSpec supplying the comparison rule and any thresholds or tie-breakers | ComparatorSpecRef; 1 |
| Argument | MinimalEvidenceSlot | MinimalEvidence override used instead of CGSpecSlot.MinimalEvidence | MinimalEvidenceRef; 0..1 |
| Argument | claimScope | U.ClaimScope specifying the cases in which the comparison claim applies. The two profile slots identify what is compared. | ByRef; 1 |
| Argument | selectedSlices | Set of selected U.ContextSlice members of claimScope under A.2.6 | ByValue set of slice references; 1 set |
| Argument | characteristicPredicate | A.19 CharacteristicSpacePredicate used to restrict this comparison, if any | ByValue; 0..1, explicitly absent when unused |
| Argument | referenceScheme | EpistemeInterpretationScheme (C.2.1:4.1.2), governing this comparison | ByRef through C.2.1 SchemeDesignation; 1 |
| Argument | referencePlane | CHR:ReferencePlane value qualifying the comparison | ByValue; 1 |
| Argument | evaluationTime | Evaluation point or interval in the declared time basis, qualifying what is compared | ByValue; 1 |
| Compare result | ComparisonResultSlot | Set of relation or poset tokens returned by the declared comparator | ByValue; 1 set on completed admitted comparison, 0 without a result |
| CompareEligibility result | GuardDecision | Judgment determined by the eligibility predicates: pass, degrade or abstain | ByValue; 1 on completed evaluation |
Resolve the scheme designation under C.2.1:4.2.6 to one rule collection, then check its C.2.1:4.1.2 range and the rules needed by these comparison inputs. The reference token is not the bound scheme. An unresolved required interpretation cannot support a completed admitted comparison; apply the guard and abstention rules below.
Membership alone supplies neither successful comparison nor a cross-scheme correspondence. The application and result bindings below remain independently required.
The argument bindingPredicate for each row holds when that application uses the resolved value for the row’s meaning: operand, comparison/admission rule, evidence condition or explicit comparison-use restriction. A scope, predicate or time appearing in nearby metadata is not bound unless it qualifies this comparison/evaluation. Each indicator-derived profile retains its selected UINDM positions and A.19 basis; equal indices or Characteristic names alone do not establish the comparator’s required position/Scale match.
The ComparisonResultSlot bindingPredicate holds when that Compare application returns the comparator’s lawful set-valued outcome for its bound operands and use restrictions. The guard’s result predicate holds when that CompareEligibility application returns its evaluated judgment. Type compatibility, equal tokens or a copied audit record establish neither return.
A.6.1 governs binding identity and continuous extent within the application; result binding begins at return. Evidence use and a result episteme remain separate relations or objects.
SlotIndex (derived projection). Project the above designators, ValueKinds, designation and cardinalities; the historical Slot suffix supports CHR lookup. The comparison-use arguments are declaration-local names, not new CHR SlotKinds. A.6.5 relation SlotSpecs are not the source of these operation meanings.
OperationAlgebra. The compare stage resolves to Compare with the six profile/specification arguments and the comparison-use arguments above, returning ComparisonResultSlot. CompareEligibility uses those argument meanings to return GuardDecision.
ApplicationPredicate. Compare obtains when a comparison act applies the bound comparator to the bound left/right profiles under the bound scope, slices, optional predicate, scheme, plane and evaluation time, with its admission conditions satisfied by pass or an explicitly permitted degrade branch. A completed act returns the comparator’s token set. CompareEligibility obtains when an evaluation assesses that proposal under the guard predicates and returns its judgment. An unexecuted proposal, passing guard or compatible saved token set does not establish a Compare act.
ApplicationIdentityRule. One application is one comparator invocation or guard-evaluation invocation at its calculation locus, from taking up its operands/rules through return or termination. Reidentification requires that same episode. Two independently begun invocations are distinct even if all their bindings and results agree. Law 7 also distinguishes a newly evaluated comparison after any listed binding changes; it cannot mutate a completed earlier application.
ApplicationExtentRule. Compare extends from use of the chosen operand pair under the comparator to token-set return or termination; CompareEligibility extends from proposal assessment to judgment or termination. An unfinished act has an open extent and no unreturned result binding.
These calculation intervals can occur after, and can be repeated for, the same evaluationTime. A trace identifier only designates an established episode. Ordinary comparison mathematics creates no dated U.Work claim.
For example, an admitted Pareto comparison takes supplier A with cost 10 and quality 0.8, and B with cost 12 and quality 0.9, under declared lower-cost/higher-quality criteria. Neither dominates the other. Two separate invocations for the same procurement evaluation interval can return the same incomparability token set, while each has its own application and result binding. A stored compatible set does not determine which invocation returned it; the claimed binding requires that invocation’s return. Describing the first comparison twice still identifies one application.
-
LawSet (minimum; set-valued comparison, no hidden scalarization):
- ComparatorSet gate:
ComparatorSpecSlotMUST be an element ofCGSpecSlot.ComparatorSet(admissibility gate; citeG.0). - Set‑valued semantics:
ComparisonResultSlotis set‑valued (parity or poset tokens); partial orders remain partial — no silent totalization or scalarization. - CSLC+SCP admissibility: any numeric ops implied by the comparator MUST be admissible under
CGSpecSlot.SCPand CSLC-admissible (citeG.0+A.18). - Unknown is not coerced: missing or unknown evidence MUST NOT be mapped to a comparison outcome; use tri‑state guards.
- No hidden thresholds or tie-breakers: any thresholds, epsilons, priority orders, or tie-break logic MUST live in the declared
ComparatorSpecSlot, or inCNSpecSlot.acceptanceas explicit acceptance clauses, and be edition-pinned for replay; CPM MUST NOT smuggle constants. - No implicit UNM: CPM does not normalize or align internally. Normalization-based comparability requires already-normalized inputs, upstream refs and preservation of the distinctions used by this comparator. If it consumes classes, its query must be constant on them; an inherited operation needs its compatibility/availability argument. Missing support yields
degradeorabstainunder the declared rule. - Binding changes require a new application: a
Compareapplication does not change its profile pair,U.ClaimScope, selected context slices, optional A.19 predicate, comparator, reference scheme or plane, or evaluation window. A changed binding is a different application and requires a newly evaluated outcome.
- ComparatorSet gate:
-
AdmissibilityConditions (tri‑state guard; fail‑closed on missing admissibility and evidence):
CompareEligibility(LeftProfileSlot, RightProfileSlot, CNSpecSlot, CGSpecSlot, ComparatorSpecSlot, MinimalEvidenceSlot?; comparison-use bindings) → GuardDecision ∈ {pass|degrade|abstain}.passrequires: (i) comparator admission and a profile pair in its declared domain; (ii) scale-admissible operations; (iii) profiles admitted to this comparison under the claim scope and selected A.2.6 context slices, whether its result is an order relation, tie or incomparability; (iv) an explicit evaluation point or interval and reference plane; (v) the bound by-value A.19 predicate is applicable and its restriction is respected when used; and (vi) satisfaction of the effective MinimalEvidence policy.- If
CNSpecSlot.comparabilityis normalization‑based (compare‑on‑invariants),passadditionally requires that the inputs are already in the required invariant and normalization regime and that the declared comparator can recover its answer from those results; CPM MUST NOT “make them comparable” by silent normalization. - If
MinimalEvidenceSlotis absent, the guard MUST evaluate evidence againstCGSpecSlot.MinimalEvidence, and MUST NOT returnpasswhen evidence is missing or unknown or fails the effective MinimalEvidence gate. - A
degraderesult requires an explicit failure policy and a defined, admitted narrower comparison whose required input meanings, operations and relations are established. Return only the tokens justified for that bounded use. An undefined comparator result or a missing relation required by every permitted outcome yieldsabstain; the policy cannot fabricate a relation.
-
Applicability:
- Intended for the CHR stage
compare: it may follow indicatorization or scoring and optional folding when those stages are present, and it precedes selection wherever selection occurs. It remains distinct from selection. - Applicable only when
CGSpecSlotsupplies the current admissibility and evidence-policy declarations. Missing declarations fail closed. - Inside the CHR suite,
A.19.CHR:4.5alone determines stage ordering and optionality; CPM does not infer order frommechanisms[]. - Every comparison application binds one
U.ClaimScope, selected A.2.6U.ContextSlicemembers, optional A.19 predicate, effective reference plane, and explicit evaluation point or interval. There is no implicit latest value and no default window inherited from the predicate. - When a comparison relies on a semantic relation between two F.17
SchemeSenseCellvalues, test the F.9BridgePredicateProfile, cite the Bridge only when its predicate obtains, and state a separate C.2.1 bounded-use claim. If the predicate is false or unresolved and that semantic relation is required,CompareEligibilitycannot bepass; follow the declareddegradepolicy when applicable, otherwiseabstain.
A plane-only crossing instead cites the ReferencePlane relation and policy. If both facts are current, state both under their own predicates. Neither branch supplies claim scope, selected slices, predicate, comparator, or evaluation time.
- Intended for the CHR stage
-
Neighboring F.9 Bridge, C.2.1 bounded-use claim, and ReferencePlane relation and policy:
When profiles require interpretation across different semantic contexts, resolve the two F.17
SchemeSenseCellendpoints and test one F.9BridgePredicateProfile. For an obtaining Bridge, state its endpoints and profile separately, then state suitability for the named comparison use in a C.2.1 assertion whose EntityOfConcern is that Bridge and whose ClaimGraph carries<u,d,r,t>and polarity. IncludeCLor an observed-loss note only when the receiving use consumes it; permitted loss remainstin the bounded-use claim.For a ReferencePlane crossing, cite the plane relation and policy separately. Use A.10 when the bounded source-to-use account must remain replayable, and B.3 when a named assurance claim is current. If that assurance argument consumes a locally declared
R_effcalculation, cite its domain model and calculation; neither the Bridge norCLcreates a penalty.Adding or changing any of these neighboring facts does not by itself change the CPM declaration.
-
Neighboring dated work, operation application, result binding, and evidence relations:
The
CompareorCompareEligibilityapplication carries its bound argument values and the corresponding result binding, when returned. If the account also asserts dated comparison U.Work, first establish its complete A.13 core: the performing System, local agential-role kind and membership criterion, and an obtaining assignment of its declared direct species for the relevant scope and time. A.15.1 independently admits that performance; F.6 applies afterward only for precise assignment-bound attribution. Work identity and extent are not automatically those of one operation application.A.2.4 governs any asserted or consumed evidence use with its own evidence claim scope and relevance window. Use A.10 for the evidence-provenance path and local
RelianceDispositionwhen the bounded source-to-use account must remain replayable, and G.11 for any asserted or consumed source or assertion-edition currentness claim.A durable result episteme, when needed, is governed by C.2.1, and any current entity-identity inception claim by A.15.PROD. No universal work-result or comparison-result relation is presumed.
To replay the comparison or eligibility evaluation, recover:
- the profile values or upstream refs,
U.ClaimScope, selected A.2.6 context slices, optional A.19 predicate, effective reference scheme and plane, and evaluation point or interval that were bound; identify any missing required argument; - the bound
CNSpecRef.edition,CGSpecRef.edition, and effectiveComparatorSpecRef, identifying any required reference that was missing; - the effective MinimalEvidence policy, either the explicit override or
CGSpecSlot.MinimalEvidence, or the absence of a required policy; - the returned
GuardDecisionor its explicit absence and, fordegradeorabstain, any current downstream-handling policy; - any upstream normalization dependency the comparison uses, or the absence of a required normalization result that caused degradation or abstention;
- the
ComparisonResultSlotvalue, or its explicit absence; any obtaining F.9Bridgeand separate C.2.1 bounded-use-claim refs consumed by this occurrence; any optionalCLor observed-loss-note ref used; any ReferencePlane relation and policy refs; and, only when the comparison consumes a named assurance claim, that claim’s B.3AssuranceResultand declared domain-model and calculation refs.
Use G.9 when a parity or benchmark use requires a stable run package and report record. These neighboring records support replay; none is CPM declaration content.
- the profile values or upstream refs,
A.19.CPM:4.2 - Interpretation notes — informative
- The output is a value, not a replay container. The by-value set bound to
ComparisonResultSlotcontains relation or poset tokens only. Comparator, scope, predicate, plane, window, eligibility, evidence use, provenance, and currentness remain separate bindings or relations. - Set-valued output is the default. “Set‑valued” means CPM preserves incomparability, ties, and partiality as first‑class outcomes; it does not authorize silent post‑processing into a scalar or a single winner.
- Total orders are allowed only if declared by the comparator. If a
ComparatorSpecdefines a total order, CPM still outputs a (singleton) set of relation tokens; the totalization is a property of the declared comparator, not an implicit kernel default. - Normalization is not smuggled into comparison. If
CN‑Spec.comparabilitydeclares normalization‑based invariants for comparison, that dependence must be represented explicitly via the suite protocol and, where needed, Uses contours (CPM consumes admitted profiles; it does not silently normalize them). - Thresholds and tie-breakers are never kernel constants. If thresholds exist, they belong to explicit policies or specs such as
ComparatorSpecandAcceptanceClauses. Keep their editions and effective use recoverable from the comparison application for replay.