universal-physics-tensor 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -6
- package/dist/atlas/chain-pipeline.d.ts +52 -0
- package/dist/atlas/chain-pipeline.d.ts.map +1 -0
- package/dist/atlas/chain-pipeline.js +176 -0
- package/dist/atlas/chain-pipeline.js.map +1 -0
- package/dist/atlas/physjs-ref.d.ts +32 -3
- package/dist/atlas/physjs-ref.d.ts.map +1 -1
- package/dist/atlas/physjs-ref.js +40 -4
- package/dist/atlas/physjs-ref.js.map +1 -1
- package/dist/atlas/proof-target.d.ts +32 -0
- package/dist/atlas/proof-target.d.ts.map +1 -0
- package/dist/atlas/proof-target.js +140 -0
- package/dist/atlas/proof-target.js.map +1 -0
- package/dist/bridges/be63-chandrasekhar-mass.d.ts.map +1 -1
- package/dist/bridges/be63-chandrasekhar-mass.js +1 -3
- package/dist/bridges/be63-chandrasekhar-mass.js.map +1 -1
- package/dist/bridges/confrontation-coverage.d.ts +5 -61
- package/dist/bridges/confrontation-coverage.d.ts.map +1 -1
- package/dist/bridges/confrontation-coverage.js +5 -70
- package/dist/bridges/confrontation-coverage.js.map +1 -1
- package/dist/bridges/equations/be-42-hawking-temperature.d.ts +3 -0
- package/dist/bridges/equations/be-42-hawking-temperature.d.ts.map +1 -1
- package/dist/bridges/equations/be-42-hawking-temperature.js +8 -1
- package/dist/bridges/equations/be-42-hawking-temperature.js.map +1 -1
- package/dist/bridges/evaluators.d.ts +8 -0
- package/dist/bridges/evaluators.d.ts.map +1 -1
- package/dist/bridges/evaluators.js +16 -1
- package/dist/bridges/evaluators.js.map +1 -1
- package/dist/bridges/index.d.ts +2 -1
- package/dist/bridges/index.d.ts.map +1 -1
- package/dist/bridges/index.js +2 -1
- package/dist/bridges/index.js.map +1 -1
- package/dist/bridges/tensor-index.d.ts +39 -0
- package/dist/bridges/tensor-index.d.ts.map +1 -0
- package/dist/bridges/tensor-index.js +66 -0
- package/dist/bridges/tensor-index.js.map +1 -0
- package/dist/canonical/linkage.d.ts.map +1 -1
- package/dist/canonical/linkage.js +17 -20
- package/dist/canonical/linkage.js.map +1 -1
- package/dist/canonical/structural.d.ts +84 -0
- package/dist/canonical/structural.d.ts.map +1 -0
- package/dist/canonical/structural.js +107 -0
- package/dist/canonical/structural.js.map +1 -0
- package/dist/cli/commands/atlas.d.ts.map +1 -1
- package/dist/cli/commands/atlas.js +6 -2
- package/dist/cli/commands/atlas.js.map +1 -1
- package/dist/cli/commands/chain.d.ts +3 -0
- package/dist/cli/commands/chain.d.ts.map +1 -0
- package/dist/cli/commands/chain.js +20 -0
- package/dist/cli/commands/chain.js.map +1 -0
- package/dist/cli/commands/derive.d.ts.map +1 -1
- package/dist/cli/commands/derive.js +2 -1
- package/dist/cli/commands/derive.js.map +1 -1
- package/dist/cli/commands/eval.d.ts.map +1 -1
- package/dist/cli/commands/eval.js +13 -2
- package/dist/cli/commands/eval.js.map +1 -1
- package/dist/cli/commands/evaluate.d.ts.map +1 -1
- package/dist/cli/commands/evaluate.js +2 -1
- package/dist/cli/commands/evaluate.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/map.js +1 -1
- package/dist/cli/eval-numbers.d.ts +1 -1
- package/dist/cli/eval-numbers.d.ts.map +1 -1
- package/dist/cli/eval-numbers.js +1 -2
- package/dist/cli/eval-numbers.js.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +4 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli-api.d.ts +1 -1
- package/dist/cli-api.d.ts.map +1 -1
- package/dist/cli-api.js +1 -1
- package/dist/cli-api.js.map +1 -1
- package/dist/composition/audit-coverage.d.ts +70 -0
- package/dist/composition/audit-coverage.d.ts.map +1 -0
- package/dist/composition/audit-coverage.js +80 -0
- package/dist/composition/audit-coverage.js.map +1 -0
- package/dist/composition/buckingham-filter.d.ts +34 -0
- package/dist/composition/buckingham-filter.d.ts.map +1 -0
- package/dist/composition/buckingham-filter.js +64 -0
- package/dist/composition/buckingham-filter.js.map +1 -0
- package/dist/composition/catalog-graph.d.ts +4 -4
- package/dist/composition/catalog-graph.d.ts.map +1 -1
- package/dist/composition/catalog-graph.js +6 -4
- package/dist/composition/catalog-graph.js.map +1 -1
- package/dist/composition/chain-candidate.d.ts +43 -0
- package/dist/composition/chain-candidate.d.ts.map +1 -0
- package/dist/composition/chain-candidate.js +56 -0
- package/dist/composition/chain-candidate.js.map +1 -0
- package/dist/composition/chain-match.d.ts +19 -0
- package/dist/composition/chain-match.d.ts.map +1 -0
- package/dist/composition/chain-match.js +10 -0
- package/dist/composition/chain-match.js.map +1 -0
- package/dist/composition/chain-regime.d.ts +34 -0
- package/dist/composition/chain-regime.d.ts.map +1 -0
- package/dist/composition/chain-regime.js +89 -0
- package/dist/composition/chain-regime.js.map +1 -0
- package/dist/composition/compose.d.ts +11 -0
- package/dist/composition/compose.d.ts.map +1 -1
- package/dist/composition/compose.js +13 -1
- package/dist/composition/compose.js.map +1 -1
- package/dist/{bridges → composition}/descriptor.d.ts +6 -3
- package/dist/composition/descriptor.d.ts.map +1 -0
- package/dist/{bridges → composition}/descriptor.js +7 -4
- package/dist/composition/descriptor.js.map +1 -0
- package/dist/composition/edges/calibration.d.ts +0 -9
- package/dist/composition/edges/calibration.d.ts.map +1 -1
- package/dist/composition/edges/calibration.js +28 -0
- package/dist/composition/edges/calibration.js.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.d.ts +0 -9
- package/dist/composition/edges/catalog-condensed-matter.d.ts.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.js +32 -1
- package/dist/composition/edges/catalog-condensed-matter.js.map +1 -1
- package/dist/composition/edges/catalog-full.d.ts +4 -2
- package/dist/composition/edges/catalog-full.d.ts.map +1 -1
- package/dist/composition/edges/catalog-full.js +4 -2
- package/dist/composition/edges/catalog-full.js.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts +0 -10
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.js +29 -0
- package/dist/composition/edges/catalog-gravitation-cosmology.js.map +1 -1
- package/dist/composition/edges/catalog-quantum.d.ts +0 -10
- package/dist/composition/edges/catalog-quantum.d.ts.map +1 -1
- package/dist/composition/edges/catalog-quantum.js +27 -17
- package/dist/composition/edges/catalog-quantum.js.map +1 -1
- package/dist/composition/edges/catalog-tranche.d.ts +0 -15
- package/dist/composition/edges/catalog-tranche.d.ts.map +1 -1
- package/dist/composition/edges/catalog-tranche.js +68 -15
- package/dist/composition/edges/catalog-tranche.js.map +1 -1
- package/dist/composition/edges/proved-seeds.d.ts +39 -0
- package/dist/composition/edges/proved-seeds.d.ts.map +1 -0
- package/dist/composition/edges/proved-seeds.js +197 -0
- package/dist/composition/edges/proved-seeds.js.map +1 -0
- package/dist/composition/enumerate.d.ts +20 -0
- package/dist/composition/enumerate.d.ts.map +1 -1
- package/dist/composition/enumerate.js +23 -0
- package/dist/composition/enumerate.js.map +1 -1
- package/dist/composition/expr-eval.d.ts +5 -4
- package/dist/composition/expr-eval.d.ts.map +1 -1
- package/dist/composition/expr-eval.js +36 -5
- package/dist/composition/expr-eval.js.map +1 -1
- package/dist/composition/expr-subst.d.ts +2 -1
- package/dist/composition/expr-subst.d.ts.map +1 -1
- package/dist/composition/expr-subst.js +9 -2
- package/dist/composition/expr-subst.js.map +1 -1
- package/dist/composition/not-composable-seeds.d.ts +30 -0
- package/dist/composition/not-composable-seeds.d.ts.map +1 -0
- package/dist/composition/not-composable-seeds.js +90 -0
- package/dist/composition/not-composable-seeds.js.map +1 -0
- package/dist/composition/quantities/_dims.d.ts +6 -0
- package/dist/composition/quantities/_dims.d.ts.map +1 -1
- package/dist/composition/quantities/_dims.js +6 -0
- package/dist/composition/quantities/_dims.js.map +1 -1
- package/dist/composition/quantities/condensed-matter.d.ts +16 -0
- package/dist/composition/quantities/condensed-matter.d.ts.map +1 -1
- package/dist/composition/quantities/condensed-matter.js +43 -2
- package/dist/composition/quantities/condensed-matter.js.map +1 -1
- package/dist/composition/quantities/fields.d.ts +10 -0
- package/dist/composition/quantities/fields.d.ts.map +1 -1
- package/dist/composition/quantities/fields.js +37 -2
- package/dist/composition/quantities/fields.js.map +1 -1
- package/dist/composition/quantities/gravitation-cosmology.d.ts +4 -0
- package/dist/composition/quantities/gravitation-cosmology.d.ts.map +1 -1
- package/dist/composition/quantities/gravitation-cosmology.js +14 -0
- package/dist/composition/quantities/gravitation-cosmology.js.map +1 -1
- package/dist/composition/quantities/quantum.d.ts +2 -0
- package/dist/composition/quantities/quantum.d.ts.map +1 -1
- package/dist/composition/quantities/quantum.js +7 -0
- package/dist/composition/quantities/quantum.js.map +1 -1
- package/dist/core/axes-registry.d.ts +4 -4
- package/dist/core/axes-registry.js +4 -4
- package/dist/core/constants.d.ts +8 -1
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +8 -1
- package/dist/core/constants.js.map +1 -1
- package/dist/core/labeled-tensor.d.ts +26 -2
- package/dist/core/labeled-tensor.d.ts.map +1 -1
- package/dist/core/labeled-tensor.js +60 -2
- package/dist/core/labeled-tensor.js.map +1 -1
- package/dist/core/universal-index.d.ts +3 -2
- package/dist/core/universal-index.d.ts.map +1 -1
- package/dist/core/universal-index.js +3 -2
- package/dist/core/universal-index.js.map +1 -1
- package/dist/dimensional/symbolic-constants.d.ts.map +1 -1
- package/dist/dimensional/symbolic-constants.js +8 -2
- package/dist/dimensional/symbolic-constants.js.map +1 -1
- package/dist/dimensional/units.d.ts +5 -5
- package/dist/dimensional/units.d.ts.map +1 -1
- package/dist/dimensional/units.js +3 -3
- package/dist/dimensional/units.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/numerical/binding-value.d.ts +1 -1
- package/dist/numerical/binding-value.d.ts.map +1 -1
- package/dist/numerical/binding-value.js +5 -3
- package/dist/numerical/binding-value.js.map +1 -1
- package/dist/numerical/formula-dimension.d.ts +8 -1
- package/dist/numerical/formula-dimension.d.ts.map +1 -1
- package/dist/numerical/formula-dimension.js +36 -6
- package/dist/numerical/formula-dimension.js.map +1 -1
- package/dist/numerical/formula-mathts.d.ts.map +1 -1
- package/dist/numerical/formula-mathts.js +12 -5
- package/dist/numerical/formula-mathts.js.map +1 -1
- package/dist/numerical/formula.d.ts +6 -0
- package/dist/numerical/formula.d.ts.map +1 -1
- package/dist/numerical/formula.js +12 -5
- package/dist/numerical/formula.js.map +1 -1
- package/dist/relations/category.d.ts +38 -0
- package/dist/relations/category.d.ts.map +1 -0
- package/dist/relations/category.js +23 -0
- package/dist/relations/category.js.map +1 -0
- package/dist/relations/types.d.ts +3 -5
- package/dist/relations/types.d.ts.map +1 -1
- package/dist/relations/types.js +3 -5
- package/dist/relations/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/bridges/descriptor.d.ts.map +0 -1
- package/dist/bridges/descriptor.js.map +0 -1
package/dist/cli-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-api.d.ts","sourceRoot":"","sources":["../src/cli-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,sBAAsB,EACtB,aAAa,EACb,MAAM,EACN,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,OAAO,EACL,cAAc,EACd,iBAA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a,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9J,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5G,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/cli-api.js
CHANGED
|
@@ -27,7 +27,7 @@ export { predictMissingBridges } from './composition/bridge-prediction.js';
|
|
|
27
27
|
export { catalogFrontierAccount, formatFrontierAccount } from './composition/frontier-account.js';
|
|
28
28
|
export { rankDiscoveries, ANCHOR_DEFAULT } from './composition/discovery.js';
|
|
29
29
|
export { BRIDGE_EQUATIONS } from './bridges/index.js';
|
|
30
|
-
export { auditCoverage } from './
|
|
30
|
+
export { auditCoverage } from './composition/audit-coverage.js';
|
|
31
31
|
export { CONFRONTATIONS, listConfrontations, runConfrontation, confrontationRigor, rigorDistribution, } from './bridges/confrontations.js';
|
|
32
32
|
export { requestYangMillsConfrontation } from './bridges/be53-yang-mills-confrontation.js';
|
|
33
33
|
export { consistencyComparison } from './bridges/observations/types.js';
|
package/dist/cli-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-api.js","sourceRoot":"","sources":["../src/cli-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,oDAAoD;AACpD,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,QAAQ,EACR,eAAe,E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G/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Empirical-spine coverage audit (Direction 4).
|
|
3
|
+
*
|
|
4
|
+
* "Strengthen the empirical spine" must NOT fabricate physics data, so the
|
|
5
|
+
* responsible, composable deliverable is tooling that makes the spine's gaps
|
|
6
|
+
* machine-visible: for each catalogued bridge, what grounding does it
|
|
7
|
+
* actually have — a real-data confrontation, a computable graph edge, a
|
|
8
|
+
* dimensional-signature encoding, or nothing but a status label? The report
|
|
9
|
+
* tells the physicist-reviewer (CONTRIBUTING.md) exactly where the grounding
|
|
10
|
+
* is thinnest, and lets the discovery loop prefer well-grounded bridges.
|
|
11
|
+
*
|
|
12
|
+
* This INVENTS nothing — every field is read from the catalog
|
|
13
|
+
* (`BRIDGE_EQUATIONS`), the composition graph (`CATALOG_GRAPH`), and the
|
|
14
|
+
* confrontation projection `DATA_CONFRONTED_IDS`.
|
|
15
|
+
*
|
|
16
|
+
* The `CATALOG_GRAPH` scan lives here, beside `catalog-graph.ts`.
|
|
17
|
+
* `DATA_CONFRONTED_IDS` stays in `bridges/confrontation-coverage.ts`.
|
|
18
|
+
*
|
|
19
|
+
* INTERNAL — surfaced via `upt coverage`.
|
|
20
|
+
*
|
|
21
|
+
* @module composition/audit-coverage
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* The grounding tier of one bridge, strongest first:
|
|
25
|
+
* - `data-confronted` — has a committed real-data confrontation.
|
|
26
|
+
* - `graph-computable` — has a composition-graph edge AND a dimensional
|
|
27
|
+
* signature (numerically computable + dimensionally encoded).
|
|
28
|
+
* - `encoded-only` — has a dimensional signature but no graph edge.
|
|
29
|
+
* - `thin` — no dimensional signature (catalogued by label/prose only).
|
|
30
|
+
*/
|
|
31
|
+
export type GroundingTier = 'data-confronted' | 'graph-computable' | 'encoded-only' | 'thin';
|
|
32
|
+
/** One bridge's empirical-grounding profile. */
|
|
33
|
+
interface BridgeCoverage {
|
|
34
|
+
readonly id: number;
|
|
35
|
+
readonly status: string;
|
|
36
|
+
readonly tier: GroundingTier;
|
|
37
|
+
/** A committed real-data confrontation exists. */
|
|
38
|
+
readonly hasDataConfrontation: boolean;
|
|
39
|
+
/** A composition-graph edge (computable evaluator) exists for this id. */
|
|
40
|
+
readonly hasGraphEdge: boolean;
|
|
41
|
+
/** A dimensional signature is registered for this id. */
|
|
42
|
+
readonly dimensionalSignaturePresent: boolean;
|
|
43
|
+
/** Number of literature references in the catalog entry. */
|
|
44
|
+
readonly citationCount: number;
|
|
45
|
+
/** Number of recorded known issues. */
|
|
46
|
+
readonly knownIssueCount: number;
|
|
47
|
+
}
|
|
48
|
+
/** The catalog-wide coverage report. */
|
|
49
|
+
interface CoverageReport {
|
|
50
|
+
readonly bridges: readonly BridgeCoverage[];
|
|
51
|
+
readonly total: number;
|
|
52
|
+
/** Count by grounding tier. */
|
|
53
|
+
readonly byTier: Readonly<Record<GroundingTier, number>>;
|
|
54
|
+
/** Bridges with NO real-data confrontation (the empirical gap). */
|
|
55
|
+
readonly withoutDataConfrontation: number;
|
|
56
|
+
/** Bridges with NO literature reference at all. */
|
|
57
|
+
readonly withoutCitation: number;
|
|
58
|
+
/** Ids of the thinnest bridges (no dimensional signature), sorted. */
|
|
59
|
+
readonly thinBridges: readonly number[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Audit the catalog's empirical grounding. Reads `BRIDGE_EQUATIONS`, the
|
|
63
|
+
* composition graph, and the data-confrontation registry; fabricates
|
|
64
|
+
* nothing. See module docs.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare function auditCoverage(): CoverageReport;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=audit-coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-coverage.d.ts","sourceRoot":"","sources":["../../src/composition/audit-coverage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en the empirical spine" must NOT fabricate physics data, so the
|
|
5
|
+
* responsible, composable deliverable is tooling that makes the spine's gaps
|
|
6
|
+
* machine-visible: for each catalogued bridge, what grounding does it
|
|
7
|
+
* actually have — a real-data confrontation, a computable graph edge, a
|
|
8
|
+
* dimensional-signature encoding, or nothing but a status label? The report
|
|
9
|
+
* tells the physicist-reviewer (CONTRIBUTING.md) exactly where the grounding
|
|
10
|
+
* is thinnest, and lets the discovery loop prefer well-grounded bridges.
|
|
11
|
+
*
|
|
12
|
+
* This INVENTS nothing — every field is read from the catalog
|
|
13
|
+
* (`BRIDGE_EQUATIONS`), the composition graph (`CATALOG_GRAPH`), and the
|
|
14
|
+
* confrontation projection `DATA_CONFRONTED_IDS`.
|
|
15
|
+
*
|
|
16
|
+
* The `CATALOG_GRAPH` scan lives here, beside `catalog-graph.ts`.
|
|
17
|
+
* `DATA_CONFRONTED_IDS` stays in `bridges/confrontation-coverage.ts`.
|
|
18
|
+
*
|
|
19
|
+
* INTERNAL — surfaced via `upt coverage`.
|
|
20
|
+
*
|
|
21
|
+
* @module composition/audit-coverage
|
|
22
|
+
*/
|
|
23
|
+
import { BRIDGE_EQUATIONS } from '../bridges/index.js';
|
|
24
|
+
import { DATA_CONFRONTED_IDS } from '../bridges/confrontation-coverage.js';
|
|
25
|
+
import { CATALOG_GRAPH } from './catalog-graph.js';
|
|
26
|
+
/**
|
|
27
|
+
* Audit the catalog's empirical grounding. Reads `BRIDGE_EQUATIONS`, the
|
|
28
|
+
* composition graph, and the data-confrontation registry; fabricates
|
|
29
|
+
* nothing. See module docs.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function auditCoverage() {
|
|
34
|
+
const graphEdgeIds = new Set();
|
|
35
|
+
for (const e of CATALOG_GRAPH) {
|
|
36
|
+
if (e.beId !== null)
|
|
37
|
+
graphEdgeIds.add(e.beId);
|
|
38
|
+
}
|
|
39
|
+
const bridges = BRIDGE_EQUATIONS.map((entry) => {
|
|
40
|
+
const hasDataConfrontation = DATA_CONFRONTED_IDS.has(entry.id);
|
|
41
|
+
const hasGraphEdge = graphEdgeIds.has(entry.id);
|
|
42
|
+
const dimensionalSignaturePresent = entry.dimensional_signature !== null;
|
|
43
|
+
let tier;
|
|
44
|
+
if (hasDataConfrontation)
|
|
45
|
+
tier = 'data-confronted';
|
|
46
|
+
else if (hasGraphEdge && dimensionalSignaturePresent)
|
|
47
|
+
tier = 'graph-computable';
|
|
48
|
+
else if (dimensionalSignaturePresent)
|
|
49
|
+
tier = 'encoded-only';
|
|
50
|
+
else
|
|
51
|
+
tier = 'thin';
|
|
52
|
+
return {
|
|
53
|
+
id: entry.id,
|
|
54
|
+
status: entry.status,
|
|
55
|
+
tier,
|
|
56
|
+
hasDataConfrontation,
|
|
57
|
+
hasGraphEdge,
|
|
58
|
+
dimensionalSignaturePresent,
|
|
59
|
+
citationCount: entry.references.length,
|
|
60
|
+
knownIssueCount: entry.known_issues.length,
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const byTier = {
|
|
64
|
+
'data-confronted': 0,
|
|
65
|
+
'graph-computable': 0,
|
|
66
|
+
'encoded-only': 0,
|
|
67
|
+
thin: 0,
|
|
68
|
+
};
|
|
69
|
+
for (const b of bridges)
|
|
70
|
+
byTier[b.tier]++;
|
|
71
|
+
return {
|
|
72
|
+
bridges: bridges.sort((a, b) => a.id - b.id),
|
|
73
|
+
total: bridges.length,
|
|
74
|
+
byTier,
|
|
75
|
+
withoutDataConfrontation: bridges.filter((b) => !b.hasDataConfrontation).length,
|
|
76
|
+
withoutCitation: bridges.filter((b) => b.citationCount === 0).length,
|
|
77
|
+
thinBridges: bridges.filter((b) => b.tier === 'thin').map((b) => b.id).sort((a, b) => a - b),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=audit-coverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-coverage.js","sourceRoot":"","sources":["../../src/compos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Y,CAAC,MAAM;SAC3C,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAkC;QAC5C,iBAAiB,EAAE,CAAC;QACpB,kBAAkB,EAAE,CAAC;QACrB,cAAc,EAAE,CAAC;QACjB,IAAI,EAAE,CAAC;KACR,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,OAAO;QAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;IAE1C,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC5C,KAAK,EAAE,OAAO,CAAC,MAAM;QACrB,MAAM;QACN,wBAAwB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,MAAM;QAC/E,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,CAAC,CAAC,MAAM;QACpE,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Buckingham filter for one target and the variables that govern it.
|
|
3
|
+
*
|
|
4
|
+
* Calls {@link dimensionallyDetermines} and {@link buckinghamPi}. It does
|
|
5
|
+
* not reimplement the null space and it does not call the probe generator.
|
|
6
|
+
* The determination fields are that engine's result: form only, no constant.
|
|
7
|
+
*
|
|
8
|
+
* A target outside the governing span is absent. A survivor names the
|
|
9
|
+
* `PhysJS.Dimensional` theorem for its shape. The covers line begins with
|
|
10
|
+
* `derivation-step:` and names the hypothesis that theorem leaves open.
|
|
11
|
+
*
|
|
12
|
+
* @module composition/buckingham-filter
|
|
13
|
+
*/
|
|
14
|
+
import type { DimensionalDeterminationResult, DimensionalVariable } from '../dimensional/buckingham.js';
|
|
15
|
+
/**
|
|
16
|
+
* A units-only dimensional survivor. `kind` stays `derivation-step`.
|
|
17
|
+
* There is no constant field: the engine does not supply one.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export interface BuckinghamFilterRecord extends DimensionalDeterminationResult {
|
|
22
|
+
readonly theorem: 'PhysJS.Dimensional.monomial_form' | 'PhysJS.Dimensional.ratio_shape' | 'PhysJS.Dimensional.product_shape' | 'PhysJS.Dimensional.ratio_power_invariant' | null;
|
|
23
|
+
readonly kind: 'derivation-step';
|
|
24
|
+
/** Begins with `derivation-step:` and names the unfixed hypothesis. */
|
|
25
|
+
readonly covers: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The dimensional shape of `target` given `governing`, or absent when the
|
|
29
|
+
* target's dimension is not in their span.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare function buckinghamFilter(target: DimensionalVariable, governing: readonly DimensionalVariable[]): BuckinghamFilterRecord | undefined;
|
|
34
|
+
//# sourceMappingURL=buckingham-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buckingham-filter.d.ts","sourceRoot":"","sources":["../../src/composition/buckingham-filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxG;;;;;GAKG;AACH,MAAM,WAAW,sBAAuB,SAAQ,8BAA8B;IAC5E,QAAQ,CAAC,OAAO,EACZ,kCAAkC,GAClC,gCAAgC,GAChC,kCAAkC,GAClC,0CAA0C,GAC1C,IAAI,CAAC;IACT,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAwBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,mBAAmB,EAC3B,SAAS,EAAE,SAAS,mBAAmB,EAAE,GACxC,sBAAsB,GAAG,SAAS,CAyCpC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Buckingham filter for one target and the variables that govern it.
|
|
3
|
+
*
|
|
4
|
+
* Calls {@link dimensionallyDetermines} and {@link buckinghamPi}. It does
|
|
5
|
+
* not reimplement the null space and it does not call the probe generator.
|
|
6
|
+
* The determination fields are that engine's result: form only, no constant.
|
|
7
|
+
*
|
|
8
|
+
* A target outside the governing span is absent. A survivor names the
|
|
9
|
+
* `PhysJS.Dimensional` theorem for its shape. The covers line begins with
|
|
10
|
+
* `derivation-step:` and names the hypothesis that theorem leaves open.
|
|
11
|
+
*
|
|
12
|
+
* @module composition/buckingham-filter
|
|
13
|
+
*/
|
|
14
|
+
import { equals } from '../dimensional/algebra.js';
|
|
15
|
+
import { buckinghamPi, dimensionallyDetermines } from '../dimensional/buckingham.js';
|
|
16
|
+
import { DIMENSIONLESS } from '../dimensional/types.js';
|
|
17
|
+
function formatExponents(monomial, order) {
|
|
18
|
+
return order.map((name) => `${name}^${monomial[name] ?? 0}`).join(' · ');
|
|
19
|
+
}
|
|
20
|
+
/** Two nonzero exponents of equal magnitude and opposite sign: a ratio. */
|
|
21
|
+
function isPureRatio(exponents) {
|
|
22
|
+
const nonzero = Object.entries(exponents).filter(([, exp]) => exp !== 0);
|
|
23
|
+
if (nonzero.length !== 2)
|
|
24
|
+
return false;
|
|
25
|
+
return nonzero[0][1] === -nonzero[1][1];
|
|
26
|
+
}
|
|
27
|
+
function record(determination, theorem, covers) {
|
|
28
|
+
return { ...determination, theorem, kind: 'derivation-step', covers };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The dimensional shape of `target` given `governing`, or absent when the
|
|
32
|
+
* target's dimension is not in their span.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export function buckinghamFilter(target, governing) {
|
|
37
|
+
const determination = dimensionallyDetermines(target, governing);
|
|
38
|
+
const full = buckinghamPi(governing.length > 0 ? [target, ...governing] : [target]);
|
|
39
|
+
const governingResult = governing.length > 0 ? buckinghamPi(governing) : undefined;
|
|
40
|
+
const govCount = governingResult?.piGroupCount ?? 0;
|
|
41
|
+
if (full.piGroupCount === govCount)
|
|
42
|
+
return undefined;
|
|
43
|
+
if (determination.determined && determination.monomial !== undefined) {
|
|
44
|
+
const nonzero = Object.entries(determination.monomial).filter(([, exp]) => exp !== 0);
|
|
45
|
+
const product = nonzero.length === 2 && nonzero.every(([, exp]) => exp === 1);
|
|
46
|
+
const theorem = product
|
|
47
|
+
? 'PhysJS.Dimensional.product_shape'
|
|
48
|
+
: 'PhysJS.Dimensional.monomial_form';
|
|
49
|
+
const exponents = formatExponents(determination.monomial, determination.governing);
|
|
50
|
+
const covers = product
|
|
51
|
+
? `derivation-step: ${theorem}. Exponent vector ${exponents}. f(1,1) is unfixed.`
|
|
52
|
+
: `derivation-step: ${theorem}. Exponent vector ${exponents}. f(1,…,1) is unfixed. The exponent vector is a hypothesis. A unit change that can reach every positive tuple is a hypothesis.`;
|
|
53
|
+
return record(determination, theorem, covers);
|
|
54
|
+
}
|
|
55
|
+
if (govCount === 1 && full.piGroupCount === 2 && governingResult !== undefined) {
|
|
56
|
+
const group = governingResult.piGroups[0]?.exponents ?? {};
|
|
57
|
+
if (isPureRatio(group) && equals(target.dim, DIMENSIONLESS)) {
|
|
58
|
+
return record(determination, 'PhysJS.Dimensional.ratio_power_invariant', 'derivation-step: PhysJS.Dimensional.ratio_power_invariant. The real power p is unfixed.');
|
|
59
|
+
}
|
|
60
|
+
return record(determination, 'PhysJS.Dimensional.ratio_shape', 'derivation-step: PhysJS.Dimensional.ratio_shape. The function of the ratio is unfixed.');
|
|
61
|
+
}
|
|
62
|
+
return record(determination, null, 'derivation-step: a free π-group leaves no unique monomial.');
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=buckingham-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buckingham-filter.js","sourceRoot":"","sources":["../../src/composition/buckingham-filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAoBxD,SAAS,eAAe,CACtB,QAA0C,EAC1C,KAAwB;IAExB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED,2EAA2E;AAC3E,SAAS,WAAW,CAAC,SAA2C;IAC9D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACzE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACvC,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,MAAM,CACb,aAA6C,EAC7C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,CAAC,QAAQ,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACnF,MAAM,MAAM,GAAG,OAAO;YACpB,CAAC,CAAC,oBAAoB,OAAO,qBAAqB,SAAS,sBAAsB;YACjF,CAAC,CAAC,oBAAoB,OAAO,qBAAqB,SAAS,gIAAgI,CAAC;QAC9L,OAAO,MAAM,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,QAAQ,KAAK,CAAC,IAAI,IAAI,CAAC,YAAY,KAAK,CAAC,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAC/E,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,IAAI,EAAE,CAAC;QAC3D,IAAI,WAAW,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC;YAC5D,OAAO,MAAM,CACX,aAAa,EACb,0CAA0C,EAC1C,yFAAyF,CAC1F,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CACX,aAAa,EACb,gCAAgC,EAChC,wFAAwF,CACzF,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CACX,aAAa,EACb,IAAI,EACJ,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The full composition graph as a single constant — the
|
|
3
|
-
* (9 calibration + 6 catalog-tranche + 26 catalog-full).
|
|
2
|
+
* The full composition graph as a single constant — the 46 `BridgeEdge`s
|
|
3
|
+
* (9 calibration + 6 catalog-tranche + 26 catalog-full + 5 proved seeds).
|
|
4
4
|
*
|
|
5
5
|
* Single source of truth for "the catalog as a graph": the CLI, the
|
|
6
6
|
* analysis functions, and the test suites consume this rather than each
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { BridgeEdge } from './edge.js';
|
|
13
13
|
/**
|
|
14
|
-
* Every `BridgeEdge` in the composition graph (
|
|
15
|
-
* calibration → tranche → catalog-full.
|
|
14
|
+
* Every `BridgeEdge` in the composition graph (46 edges). The order is
|
|
15
|
+
* calibration → tranche → catalog-full → proved seeds.
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-graph.d.ts","sourceRoot":"","sources":["../../src/composition/catalog-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-graph.d.ts","sourceRoot":"","sources":["../../src/composition/catalog-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAuB5C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,UAAU,EAkB9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The full composition graph as a single constant — the
|
|
3
|
-
* (9 calibration + 6 catalog-tranche + 26 catalog-full).
|
|
2
|
+
* The full composition graph as a single constant — the 46 `BridgeEdge`s
|
|
3
|
+
* (9 calibration + 6 catalog-tranche + 26 catalog-full + 5 proved seeds).
|
|
4
4
|
*
|
|
5
5
|
* Single source of truth for "the catalog as a graph": the CLI, the
|
|
6
6
|
* analysis functions, and the test suites consume this rather than each
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
import { be11ZurekEdge, be12Edge, be16Edge, be37Edge, be42Edge, be42ViaRsEdge, be51Edge, be52Edge, lawSchwarzschildRadius, } from './edges/calibration.js';
|
|
13
13
|
import { be14Edge, be19Edge, be21Edge, be48Edge, be53Edge, be54Edge, } from './edges/catalog-tranche.js';
|
|
14
14
|
import { CATALOG_FULL_EDGES } from './edges/catalog-full.js';
|
|
15
|
+
import { PROVED_SEED_EDGES } from './edges/proved-seeds.js';
|
|
15
16
|
/**
|
|
16
|
-
* Every `BridgeEdge` in the composition graph (
|
|
17
|
-
* calibration → tranche → catalog-full.
|
|
17
|
+
* Every `BridgeEdge` in the composition graph (46 edges). The order is
|
|
18
|
+
* calibration → tranche → catalog-full → proved seeds.
|
|
18
19
|
*
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
@@ -35,5 +36,6 @@ export const CATALOG_GRAPH = [
|
|
|
35
36
|
be53Edge,
|
|
36
37
|
be54Edge,
|
|
37
38
|
...CATALOG_FULL_EDGES,
|
|
39
|
+
...PROVED_SEED_EDGES,
|
|
38
40
|
];
|
|
39
41
|
//# sourceMappingURL=catalog-graph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-graph.js","sourceRoot":"","sources":["../../src/composition/catalog-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-graph.js","sourceRoot":"","sources":["../../src/composition/catalog-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,sBAAsB;IACtB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,GAAG,kBAAkB;IACrB,GAAG,iBAAiB;CACrB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A chain candidate and the order the pipeline reads candidates in.
|
|
3
|
+
*
|
|
4
|
+
* Confirmation of a catalog id, then a restatement, then a unique
|
|
5
|
+
* monomial, then a named PhysJS.Dimensional shape that leaves a
|
|
6
|
+
* function or an exponent unfixed. A shorter chain comes before a
|
|
7
|
+
* longer one. Equal lengths compare the ordered edge ids from the
|
|
8
|
+
* left. Nothing here is written into the catalog.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* @module composition/chain-candidate
|
|
12
|
+
*/
|
|
13
|
+
/** The four classes the order distinguishes. */
|
|
14
|
+
export type ChainCandidateKind = 'confirmation' | 'restatement' | 'unique-monomial' | 'unfixed-shape';
|
|
15
|
+
/**
|
|
16
|
+
* One survivor of a chain of proved edges.
|
|
17
|
+
*
|
|
18
|
+
* `kind` and `edgeIds` are the order. `catalogId`, `canonicalId`,
|
|
19
|
+
* `restatesBridge`, `theorem`, and `id` are carried data and are not
|
|
20
|
+
* compared.
|
|
21
|
+
*/
|
|
22
|
+
export interface ChainCandidate {
|
|
23
|
+
readonly kind: ChainCandidateKind;
|
|
24
|
+
readonly edgeIds: readonly string[];
|
|
25
|
+
readonly catalogId?: number;
|
|
26
|
+
readonly canonicalId?: string;
|
|
27
|
+
readonly restatesBridge?: string;
|
|
28
|
+
readonly theorem?: string;
|
|
29
|
+
readonly id?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Shorter chain first, then lexicographic edge ids.
|
|
33
|
+
*
|
|
34
|
+
* The regime-mismatch list uses this same comparison. It is not a class
|
|
35
|
+
* inside {@link orderChainCandidates}.
|
|
36
|
+
*/
|
|
37
|
+
export declare function compareChainEdgeIds(left: readonly string[], right: readonly string[]): -1 | 0 | 1;
|
|
38
|
+
/**
|
|
39
|
+
* Total order of chain candidates. Returns a new array of the same
|
|
40
|
+
* objects. The input array is left as it was.
|
|
41
|
+
*/
|
|
42
|
+
export declare function orderChainCandidates(candidates: readonly ChainCandidate[]): ChainCandidate[];
|
|
43
|
+
//# sourceMappingURL=chain-candidate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-candidate.d.ts","sourceRoot":"","sources":["../../src/composition/chain-candidate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,gDAAgD;AAChD,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,eAAe,CAAC;AAEpB;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CASjG;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,GAAG,cAAc,EAAE,CAM5F"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A chain candidate and the order the pipeline reads candidates in.
|
|
3
|
+
*
|
|
4
|
+
* Confirmation of a catalog id, then a restatement, then a unique
|
|
5
|
+
* monomial, then a named PhysJS.Dimensional shape that leaves a
|
|
6
|
+
* function or an exponent unfixed. A shorter chain comes before a
|
|
7
|
+
* longer one. Equal lengths compare the ordered edge ids from the
|
|
8
|
+
* left. Nothing here is written into the catalog.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* @module composition/chain-candidate
|
|
12
|
+
*/
|
|
13
|
+
function classIndex(kind) {
|
|
14
|
+
switch (kind) {
|
|
15
|
+
case 'confirmation':
|
|
16
|
+
return 0;
|
|
17
|
+
case 'restatement':
|
|
18
|
+
return 1;
|
|
19
|
+
case 'unique-monomial':
|
|
20
|
+
return 2;
|
|
21
|
+
case 'unfixed-shape':
|
|
22
|
+
return 3;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Shorter chain first, then lexicographic edge ids.
|
|
27
|
+
*
|
|
28
|
+
* The regime-mismatch list uses this same comparison. It is not a class
|
|
29
|
+
* inside {@link orderChainCandidates}.
|
|
30
|
+
*/
|
|
31
|
+
export function compareChainEdgeIds(left, right) {
|
|
32
|
+
if (left.length !== right.length)
|
|
33
|
+
return left.length < right.length ? -1 : 1;
|
|
34
|
+
for (let i = 0; i < left.length; i++) {
|
|
35
|
+
const a = left[i];
|
|
36
|
+
const b = right[i];
|
|
37
|
+
if (a < b)
|
|
38
|
+
return -1;
|
|
39
|
+
if (a > b)
|
|
40
|
+
return 1;
|
|
41
|
+
}
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Total order of chain candidates. Returns a new array of the same
|
|
46
|
+
* objects. The input array is left as it was.
|
|
47
|
+
*/
|
|
48
|
+
export function orderChainCandidates(candidates) {
|
|
49
|
+
return [...candidates].sort((a, b) => {
|
|
50
|
+
const byClass = classIndex(a.kind) - classIndex(b.kind);
|
|
51
|
+
if (byClass !== 0)
|
|
52
|
+
return byClass < 0 ? -1 : 1;
|
|
53
|
+
return compareChainEdgeIds(a.edgeIds, b.edgeIds);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=chain-candidate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-candidate.js","sourceRoot":"","sources":["../../src/composition/chain-candidate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA0BH,SAAS,UAAU,CAAC,IAAwB;IAC1C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,cAAc;YACjB,OAAO,CAAC,CAAC;QACX,KAAK,aAAa;YAChB,OAAO,CAAC,CAAC;QACX,KAAK,iBAAiB;YACpB,OAAO,CAAC,CAAC;QACX,KAAK,eAAe;YAClB,OAAO,CAAC,CAAC;IACb,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAuB,EAAE,KAAwB;IACnF,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAW,CAAC;QAC5B,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAW,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAqC;IACxE,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,OAAO,KAAK,CAAC;YAAE,OAAO,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,OAAO,mBAAmB,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipeline match for a chain of proved edges.
|
|
3
|
+
*
|
|
4
|
+
* Calls {@link classifyStructure}. A confirmation reports the catalog id.
|
|
5
|
+
* A restatement reports the pre-declared canonical equation. Anything else
|
|
6
|
+
* is a provisional `chain-` id. This function writes no catalog row, no
|
|
7
|
+
* formal-reference overlay entry, and no evidence tag.
|
|
8
|
+
*
|
|
9
|
+
* @module composition/chain-match
|
|
10
|
+
*/
|
|
11
|
+
import type { ExprNode } from '../dimensional/validator.js';
|
|
12
|
+
import { type ChainClassification } from '../canonical/structural.js';
|
|
13
|
+
/**
|
|
14
|
+
* Classify one composed chain. `edgeIds` stay in chain order.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare function matchChain(expr: ExprNode, edgeIds: readonly string[]): ChainClassification;
|
|
19
|
+
//# sourceMappingURL=chain-match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-match.d.ts","sourceRoot":"","sources":["../../src/composition/chain-match.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAEpC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,mBAAmB,CAE1F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { classifyStructure, } from '../canonical/structural.js';
|
|
2
|
+
/**
|
|
3
|
+
* Classify one composed chain. `edgeIds` stay in chain order.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export function matchChain(expr, edgeIds) {
|
|
8
|
+
return classifyStructure(expr, edgeIds);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=chain-match.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-match.js","sourceRoot":"","sources":["../../src/composition/chain-match.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,iBAAiB,GAElB,MAAM,4BAA4B,CAAC;AAEpC;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAc,EAAE,OAA0B;IACnE,OAAO,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regime gate for a chain that meets on a quantity name.
|
|
3
|
+
*
|
|
4
|
+
* The domain is the §VI.6.1 component of the catalog category of `beId`,
|
|
5
|
+
* derived by `tensorIndexComponent`. Scale and force are the gated axes
|
|
6
|
+
* on the two junction ports. A recorded `Regime` on both edges is
|
|
7
|
+
* compared with `regimeOverlap`. Silence on a facet is not a mismatch.
|
|
8
|
+
* The rule is `docs/planning/Regime-Aware-Join-Gate-Design.md`.
|
|
9
|
+
*
|
|
10
|
+
* This module does not write the catalog and does not call `deriveEvidence`.
|
|
11
|
+
*
|
|
12
|
+
* @module composition/chain-regime
|
|
13
|
+
*/
|
|
14
|
+
import type { BridgeEdge } from './edge.js';
|
|
15
|
+
/** The class a regime-incompatible join is recorded as. @internal */
|
|
16
|
+
export declare const REGIME_MISMATCH_KIND: 'rejected: regime mismatch';
|
|
17
|
+
/** A join the regime gate refused. Not a stub and not a catalog write. @internal */
|
|
18
|
+
export interface ChainRegimeMismatch {
|
|
19
|
+
readonly kind: typeof REGIME_MISMATCH_KIND;
|
|
20
|
+
readonly edgeIds: readonly [string, string];
|
|
21
|
+
readonly quantity: string;
|
|
22
|
+
readonly reasons: readonly string[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The regime mismatch of a pair, or `undefined` when every facet abstains
|
|
26
|
+
* or agrees.
|
|
27
|
+
*
|
|
28
|
+
* Reasons, in order: a domain clash, then each clashing `GATE_AXES` axis,
|
|
29
|
+
* then `regime: disjoint`. The producer value is written first.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare function joinRegimeMismatch(first: BridgeEdge, second: BridgeEdge): ChainRegimeMismatch | undefined;
|
|
34
|
+
//# sourceMappingURL=chain-regime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-regime.d.ts","sourceRoot":"","sources":["../../src/composition/chain-regime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAUH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG5C,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,EAAG,2BAAoC,CAAC;AAEzE,oFAAoF;AACpF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,OAAO,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AA6BD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,UAAU,GACjB,mBAAmB,GAAG,SAAS,CAmCjC"}
|