universal-physics-tensor 1.0.3 → 2.0.0
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 +118 -73
- package/dist/atlas/benchmark/hybrid-retrieval.d.ts +1 -0
- package/dist/atlas/benchmark/hybrid-retrieval.d.ts.map +1 -1
- package/dist/atlas/benchmark/hybrid-retrieval.js.map +1 -1
- package/dist/atlas/chain-pipeline.d.ts +37 -0
- package/dist/atlas/chain-pipeline.d.ts.map +1 -1
- package/dist/atlas/chain-pipeline.js +95 -79
- package/dist/atlas/chain-pipeline.js.map +1 -1
- package/dist/atlas/composition-table.d.ts +5 -7
- package/dist/atlas/composition-table.d.ts.map +1 -1
- package/dist/atlas/composition-table.js +3 -5
- package/dist/atlas/composition-table.js.map +1 -1
- package/dist/atlas/proof-target.d.ts +28 -2
- package/dist/atlas/proof-target.d.ts.map +1 -1
- package/dist/atlas/proof-target.js +25 -16
- package/dist/atlas/proof-target.js.map +1 -1
- package/dist/atlas/regime.d.ts +2 -2
- package/dist/atlas/regime.d.ts.map +1 -1
- package/dist/atlas/regime.js +1 -1
- package/dist/atlas/regime.js.map +1 -1
- package/dist/atlas/types.d.ts +7 -7
- package/dist/atlas/types.d.ts.map +1 -1
- package/dist/bridges/be53-yang-mills-confrontation.d.ts +1 -1
- package/dist/bridges/be53-yang-mills-confrontation.d.ts.map +1 -1
- package/dist/canonical/normal-form.d.ts +2 -1
- package/dist/canonical/normal-form.d.ts.map +1 -1
- package/dist/canonical/normal-form.js +2 -1
- package/dist/canonical/normal-form.js.map +1 -1
- package/dist/cases/brownian-sphere.d.ts.map +1 -1
- package/dist/cases/brownian-sphere.js +1 -0
- package/dist/cases/brownian-sphere.js.map +1 -1
- package/dist/cli/args.d.ts +7 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/command.d.ts +13 -0
- package/dist/cli/command.d.ts.map +1 -1
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/commands/_atlas-route.d.ts +1 -1
- package/dist/cli/commands/atlas.d.ts.map +1 -1
- package/dist/cli/commands/atlas.js +28 -7
- package/dist/cli/commands/atlas.js.map +1 -1
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/audit.js +7 -3
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/commands/axes.d.ts.map +1 -1
- package/dist/cli/commands/axes.js +6 -2
- package/dist/cli/commands/axes.js.map +1 -1
- package/dist/cli/commands/candidates.d.ts.map +1 -1
- package/dist/cli/commands/candidates.js +7 -3
- package/dist/cli/commands/candidates.js.map +1 -1
- package/dist/cli/commands/canonical.d.ts.map +1 -1
- package/dist/cli/commands/canonical.js +11 -3
- package/dist/cli/commands/canonical.js.map +1 -1
- package/dist/cli/commands/chain.d.ts +1 -0
- package/dist/cli/commands/chain.d.ts.map +1 -1
- package/dist/cli/commands/chain.js +12 -1
- package/dist/cli/commands/chain.js.map +1 -1
- package/dist/cli/commands/confront.d.ts.map +1 -1
- package/dist/cli/commands/confront.js +20 -6
- package/dist/cli/commands/confront.js.map +1 -1
- package/dist/cli/commands/connectors.d.ts.map +1 -1
- package/dist/cli/commands/connectors.js +7 -3
- package/dist/cli/commands/connectors.js.map +1 -1
- package/dist/cli/commands/coverage.d.ts.map +1 -1
- package/dist/cli/commands/coverage.js +6 -2
- package/dist/cli/commands/coverage.js.map +1 -1
- package/dist/cli/commands/derive.d.ts.map +1 -1
- package/dist/cli/commands/derive.js +12 -4
- package/dist/cli/commands/derive.js.map +1 -1
- package/dist/cli/commands/discover.d.ts.map +1 -1
- package/dist/cli/commands/discover.js +35 -8
- package/dist/cli/commands/discover.js.map +1 -1
- package/dist/cli/commands/eval.d.ts.map +1 -1
- package/dist/cli/commands/eval.js +26 -19
- package/dist/cli/commands/eval.js.map +1 -1
- package/dist/cli/commands/evaluate.d.ts +7 -3
- package/dist/cli/commands/evaluate.d.ts.map +1 -1
- package/dist/cli/commands/evaluate.js +71 -36
- package/dist/cli/commands/evaluate.js.map +1 -1
- package/dist/cli/commands/explain.d.ts.map +1 -1
- package/dist/cli/commands/explain.js +7 -3
- package/dist/cli/commands/explain.js.map +1 -1
- package/dist/cli/commands/frontier.d.ts.map +1 -1
- package/dist/cli/commands/frontier.js +12 -2
- package/dist/cli/commands/frontier.js.map +1 -1
- package/dist/cli/commands/ground.d.ts.map +1 -1
- package/dist/cli/commands/ground.js +20 -5
- package/dist/cli/commands/ground.js.map +1 -1
- package/dist/cli/commands/map.d.ts +1 -1
- package/dist/cli/commands/map.d.ts.map +1 -1
- package/dist/cli/commands/map.js +29 -25
- package/dist/cli/commands/map.js.map +1 -1
- package/dist/cli/commands/metric.d.ts.map +1 -1
- package/dist/cli/commands/metric.js +21 -14
- package/dist/cli/commands/metric.js.map +1 -1
- package/dist/cli/commands/path.d.ts +3 -2
- package/dist/cli/commands/path.d.ts.map +1 -1
- package/dist/cli/commands/path.js +47 -20
- package/dist/cli/commands/path.js.map +1 -1
- package/dist/cli/commands/predict.d.ts.map +1 -1
- package/dist/cli/commands/predict.js +7 -3
- package/dist/cli/commands/predict.js.map +1 -1
- package/dist/cli/commands/priority.d.ts.map +1 -1
- package/dist/cli/commands/priority.js +7 -3
- package/dist/cli/commands/priority.js.map +1 -1
- package/dist/cli/commands/probe.d.ts.map +1 -1
- package/dist/cli/commands/probe.js +32 -16
- package/dist/cli/commands/probe.js.map +1 -1
- package/dist/cli/commands/recover.d.ts.map +1 -1
- package/dist/cli/commands/recover.js +7 -4
- package/dist/cli/commands/recover.js.map +1 -1
- package/dist/cli/commands/regime.d.ts +2 -2
- package/dist/cli/commands/regime.d.ts.map +1 -1
- package/dist/cli/commands/regime.js +36 -12
- package/dist/cli/commands/regime.js.map +1 -1
- package/dist/cli/commands/retrieve.d.ts.map +1 -1
- package/dist/cli/commands/retrieve.js +23 -4
- package/dist/cli/commands/retrieve.js.map +1 -1
- package/dist/cli/commands/search.d.ts.map +1 -1
- package/dist/cli/commands/search.js +12 -2
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/symbolic.d.ts.map +1 -1
- package/dist/cli/commands/symbolic.js +11 -3
- package/dist/cli/commands/symbolic.js.map +1 -1
- package/dist/cli/commands/testplan.d.ts.map +1 -1
- package/dist/cli/commands/testplan.js +12 -2
- package/dist/cli/commands/testplan.js.map +1 -1
- package/dist/cli/eval-numbers.d.ts +2 -2
- package/dist/cli/eval-numbers.js +2 -2
- package/dist/cli/flag-help.d.ts +34 -0
- package/dist/cli/flag-help.d.ts.map +1 -0
- package/dist/cli/flag-help.js +113 -0
- package/dist/cli/flag-help.js.map +1 -0
- package/dist/cli/main.d.ts +0 -8
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +42 -29
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/version.d.ts +6 -2
- package/dist/cli/version.d.ts.map +1 -1
- package/dist/cli/version.js +11 -3
- package/dist/cli/version.js.map +1 -1
- package/dist/cli-api.d.ts +50 -0
- package/dist/cli-api.d.ts.map +1 -1
- package/dist/cli-api.js +42 -0
- package/dist/cli-api.js.map +1 -1
- package/dist/composition/adjudication.d.ts +9 -0
- package/dist/composition/adjudication.d.ts.map +1 -1
- package/dist/composition/adjudication.js +13 -0
- package/dist/composition/adjudication.js.map +1 -1
- package/dist/composition/canonical-compare.d.ts +1 -0
- package/dist/composition/canonical-compare.d.ts.map +1 -1
- package/dist/composition/canonical-compare.js +1 -0
- package/dist/composition/canonical-compare.js.map +1 -1
- package/dist/composition/chain-result.d.ts +55 -0
- package/dist/composition/chain-result.d.ts.map +1 -0
- package/dist/composition/chain-result.js +57 -0
- package/dist/composition/chain-result.js.map +1 -0
- package/dist/composition/compose-symbolic.d.ts.map +1 -1
- package/dist/composition/compose-symbolic.js +4 -39
- package/dist/composition/compose-symbolic.js.map +1 -1
- package/dist/composition/compose.d.ts.map +1 -1
- package/dist/composition/compose.js +11 -4
- package/dist/composition/compose.js.map +1 -1
- package/dist/composition/edges/calibration.d.ts +9 -0
- package/dist/composition/edges/calibration.d.ts.map +1 -1
- package/dist/composition/edges/calibration.js +9 -9
- package/dist/composition/edges/calibration.js.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.d.ts +10 -0
- package/dist/composition/edges/catalog-condensed-matter.d.ts.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.js +10 -10
- package/dist/composition/edges/catalog-condensed-matter.js.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts +11 -0
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.js +11 -11
- package/dist/composition/edges/catalog-gravitation-cosmology.js.map +1 -1
- package/dist/composition/edges/catalog-quantum.d.ts +10 -0
- package/dist/composition/edges/catalog-quantum.d.ts.map +1 -1
- package/dist/composition/edges/catalog-quantum.js +10 -10
- package/dist/composition/edges/catalog-quantum.js.map +1 -1
- package/dist/composition/edges/catalog-tranche.d.ts +11 -0
- package/dist/composition/edges/catalog-tranche.d.ts.map +1 -1
- package/dist/composition/edges/catalog-tranche.js +11 -11
- package/dist/composition/edges/catalog-tranche.js.map +1 -1
- package/dist/composition/enumerate.d.ts +46 -5
- package/dist/composition/enumerate.d.ts.map +1 -1
- package/dist/composition/enumerate.js +37 -8
- package/dist/composition/enumerate.js.map +1 -1
- package/dist/composition/expr-simplify.d.ts.map +1 -1
- package/dist/composition/expr-simplify.js +3 -11
- package/dist/composition/expr-simplify.js.map +1 -1
- package/dist/composition/frontier-account.d.ts +6 -6
- package/dist/composition/frontier-account.d.ts.map +1 -1
- package/dist/composition/mathts-scalar-symbols.d.ts +48 -0
- package/dist/composition/mathts-scalar-symbols.d.ts.map +1 -0
- package/dist/composition/mathts-scalar-symbols.js +150 -0
- package/dist/composition/mathts-scalar-symbols.js.map +1 -0
- package/dist/composition/probe/frontier.d.ts.map +1 -1
- package/dist/composition/probe/frontier.js +17 -4
- package/dist/composition/probe/frontier.js.map +1 -1
- package/dist/composition/probe/study.js +1 -1
- package/dist/composition/probe/study.js.map +1 -1
- package/dist/composition/uncertainty.d.ts +2 -2
- package/dist/composition/uncertainty.d.ts.map +1 -1
- package/dist/composition/uncertainty.js +14 -13
- package/dist/composition/uncertainty.js.map +1 -1
- package/dist/diff/bridge-gradient.d.ts +5 -8
- package/dist/diff/bridge-gradient.d.ts.map +1 -1
- package/dist/diff/bridge-gradient.js +5 -8
- package/dist/diff/bridge-gradient.js.map +1 -1
- package/dist/dimensional/buckingham.d.ts.map +1 -1
- package/dist/dimensional/buckingham.js +19 -91
- package/dist/dimensional/buckingham.js.map +1 -1
- package/dist/dimensional/units.d.ts +13 -0
- package/dist/dimensional/units.d.ts.map +1 -1
- package/dist/dimensional/units.js +78 -1
- package/dist/dimensional/units.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/numerical/binding-value.d.ts +3 -3
- package/dist/numerical/binding-value.d.ts.map +1 -1
- package/dist/numerical/binding-value.js +60 -31
- package/dist/numerical/binding-value.js.map +1 -1
- package/dist/numerical/einstein-equation.js +3 -3
- package/dist/numerical/einstein-equation.js.map +1 -1
- package/dist/numerical/engine-registry.d.ts +12 -27
- package/dist/numerical/engine-registry.d.ts.map +1 -1
- package/dist/numerical/engine-registry.js +10 -65
- package/dist/numerical/engine-registry.js.map +1 -1
- package/dist/numerical/errors.d.ts +1 -2
- package/dist/numerical/errors.d.ts.map +1 -1
- package/dist/numerical/errors.js +1 -2
- package/dist/numerical/errors.js.map +1 -1
- package/dist/numerical/formula-contract.d.ts +60 -0
- package/dist/numerical/formula-contract.d.ts.map +1 -0
- package/dist/numerical/formula-contract.js +107 -0
- package/dist/numerical/formula-contract.js.map +1 -0
- package/dist/numerical/formula-dimension.d.ts +33 -10
- package/dist/numerical/formula-dimension.d.ts.map +1 -1
- package/dist/numerical/formula-dimension.js +48 -35
- package/dist/numerical/formula-dimension.js.map +1 -1
- package/dist/numerical/formula-mathts.d.ts +15 -17
- package/dist/numerical/formula-mathts.d.ts.map +1 -1
- package/dist/numerical/formula-mathts.js +34 -36
- package/dist/numerical/formula-mathts.js.map +1 -1
- package/dist/numerical/formula-registry.d.ts +11 -19
- package/dist/numerical/formula-registry.d.ts.map +1 -1
- package/dist/numerical/formula-registry.js +16 -79
- package/dist/numerical/formula-registry.js.map +1 -1
- package/dist/numerical/geodesic-integrator.d.ts.map +1 -1
- package/dist/numerical/geodesic-integrator.js +19 -31
- package/dist/numerical/geodesic-integrator.js.map +1 -1
- package/dist/numerical/gl4-integrator.d.ts +12 -51
- package/dist/numerical/gl4-integrator.d.ts.map +1 -1
- package/dist/numerical/gl4-integrator.js +103 -565
- package/dist/numerical/gl4-integrator.js.map +1 -1
- package/dist/numerical/index.d.ts +0 -2
- package/dist/numerical/index.d.ts.map +1 -1
- package/dist/numerical/index.js +0 -2
- package/dist/numerical/index.js.map +1 -1
- package/dist/numerical/kretschmann.d.ts +2 -2
- package/dist/numerical/kretschmann.js +2 -2
- package/dist/numerical/mathts-engine.d.ts +7 -8
- package/dist/numerical/mathts-engine.d.ts.map +1 -1
- package/dist/numerical/mathts-engine.js +19 -27
- package/dist/numerical/mathts-engine.js.map +1 -1
- package/dist/numerical/null-ray-integrator.d.ts.map +1 -1
- package/dist/numerical/null-ray-integrator.js +11 -28
- package/dist/numerical/null-ray-integrator.js.map +1 -1
- package/dist/numerical/quadrature.d.ts +2 -17
- package/dist/numerical/quadrature.d.ts.map +1 -1
- package/dist/numerical/quadrature.js +9 -20
- package/dist/numerical/quadrature.js.map +1 -1
- package/dist/numerical/spacetime-metrics.d.ts +1 -0
- package/dist/numerical/spacetime-metrics.d.ts.map +1 -1
- package/dist/numerical/spacetime-metrics.js.map +1 -1
- package/dist/numerical/strides.d.ts +1 -2
- package/dist/numerical/strides.d.ts.map +1 -1
- package/dist/numerical/strides.js +1 -2
- package/dist/numerical/strides.js.map +1 -1
- package/dist/numerical/tensor-engine.d.ts +2 -3
- package/dist/numerical/tensor-engine.d.ts.map +1 -1
- package/dist/numerical/tensor-engine.js +1 -2
- package/dist/numerical/tensor-engine.js.map +1 -1
- package/dist/relations/category.d.ts +8 -2
- package/dist/relations/category.d.ts.map +1 -1
- package/dist/relations/category.js +10 -2
- package/dist/relations/category.js.map +1 -1
- package/dist/relations/composition-table.d.ts +1 -1
- package/dist/relations/composition-table.d.ts.map +1 -1
- package/dist/relations/composition-table.js +1 -1
- package/dist/relations/composition-table.js.map +1 -1
- package/dist/relations/regime-vocabularies.d.ts +40 -0
- package/dist/relations/regime-vocabularies.d.ts.map +1 -0
- package/dist/relations/regime-vocabularies.js +19 -0
- package/dist/relations/regime-vocabularies.js.map +1 -0
- package/package.json +13 -46
- package/dist/numerical/float64-engine.d.ts +0 -55
- package/dist/numerical/float64-engine.d.ts.map +0 -1
- package/dist/numerical/float64-engine.js +0 -675
- package/dist/numerical/float64-engine.js.map +0 -1
- package/dist/numerical/formula.d.ts +0 -106
- package/dist/numerical/formula.d.ts.map +0 -1
- package/dist/numerical/formula.js +0 -348
- package/dist/numerical/formula.js.map +0 -1
package/README.md
CHANGED
|
@@ -42,88 +42,133 @@ Think of this as:
|
|
|
42
42
|
|
|
43
43
|
## Quick Start
|
|
44
44
|
|
|
45
|
-
From npm, the CLI is `upt`:
|
|
46
|
-
|
|
47
45
|
```bash
|
|
48
46
|
npm install universal-physics-tensor
|
|
49
47
|
npx upt help
|
|
50
|
-
npx upt explain hawking-temperature mass=1.989e30
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
The npm package ships `dist/`, `bin/`, this README and the licence. The documentation
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
The npm package ships `dist/`, `bin/`, this README and the licence. The documentation and the
|
|
51
|
+
examples live in the GitHub repository. From a clone, Bun is the package manager (`package.json`
|
|
52
|
+
pins `bun@1.4.2`). Node does not install it: `corepack prepare bun@1.4.2 --activate` fails with
|
|
53
|
+
`Unsupported package manager specification`. Install that Bun from <https://bun.sh/install>, then
|
|
54
|
+
`bun install` and `bun run build`. On a machine that has Node and not Bun, the clone path is
|
|
55
|
+
`npm install`, `npm run build`, then `node bin/upt.mjs <command>`.
|
|
56
|
+
|
|
57
|
+
The library requires the published `@danielsimonjr/mathts-*` packages. There is no
|
|
58
|
+
second parser. MathTS accepts `factorial`, `erf`, `gamma()`, and juxtaposition such as `2pi`.
|
|
59
|
+
A bare `e` is the elementary charge, `E` is energy, and Euler's number is only `exp(x)`, for
|
|
60
|
+
example `exp(1)`. The name `euler` is refused. `upt eval --debug` names the parser. `upt version`
|
|
61
|
+
stays a bare semver line. `@viz-js/viz` (`upt map --format=svg`) stays an optional peer.
|
|
62
|
+
|
|
63
|
+
## First five minutes
|
|
56
64
|
|
|
57
65
|
```bash
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
npx upt eval "2*pi*sqrt(1/9.81)"
|
|
67
|
+
npx upt derive period:time length:length gravity:acceleration --formula "2*pi*sqrt(length/gravity)"
|
|
68
|
+
npx upt explain hawking-temperature mass=1Msun
|
|
69
|
+
npx upt evaluate be-63 mu_e=2
|
|
70
|
+
npx upt search pendulum
|
|
71
|
+
```
|
|
61
72
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
bun run upt -- explain hawking-temperature mass=1.989e30 # explain a built-in quantity
|
|
76
|
-
bun run upt -- priority # triage speculative bridges
|
|
77
|
-
bun run upt -- audit # derive the bridges by dimensions
|
|
78
|
-
bun run upt -- predict # empty regime cells as link hypotheses
|
|
79
|
-
bun run upt -- discover # vet link candidates (merge/unlock/consistency)
|
|
80
|
-
bun run upt -- discover --source=canonical # run the funnel on standard physics ALONE (no bridges)
|
|
81
|
-
bun run upt -- discover --derive # surface machine-derived identity consequences (--max-orders / --anchor flags available)
|
|
82
|
-
bun run upt -- probe scan # experimental expression/residual frontier (Product B; not `upt discover`)
|
|
83
|
-
bun run upt -- probe run --problem=tests/fixtures/discovery/pendulum-scaling/public/problem.json # a fixture in the clone
|
|
84
|
-
bun run upt -- connectors # which isolated bridges can connect to the core
|
|
85
|
-
bun run upt -- coverage # audit each bridge's empirical grounding
|
|
86
|
-
bun run upt -- canonical # the standard-physics L-layer registry (answer key)
|
|
87
|
-
bun run upt -- recover # validate bridges against standard physics
|
|
88
|
-
bun run upt -- symbolic --simplify # compose + fold bridges' SYMBOLIC forms (MathTS simplify)
|
|
89
|
-
bun run upt -- confront # run the catalog's committed real-data confrontations (predicted vs observed)
|
|
90
|
-
bun run upt -- map --source=both --format=mermaid # VISUAL map of the graph (Mermaid; also --format=dot|svg, --proposed, --out=PATH)
|
|
91
|
-
bun run upt -- map --equation "period = 2*pi*sqrt(length/gravity)" # drop YOUR OWN equation onto the map: dimensional check + where it lands
|
|
92
|
-
# ...and YOUR OWN equations:
|
|
93
|
-
bun run upt -- eval "hbar*c^3/(8*pi*G*M*k_B)" hbar=1.054571817e-34 c=299792458 G=6.6743e-11 M=1.989e30 k_B=1.380649e-23
|
|
94
|
-
bun run upt -- derive period:time length:length gravity:acceleration --formula "2*pi*sqrt(length/gravity)"
|
|
95
|
-
# → period ∝ length^0.5·gravity^-0.5 ; formula dimension: [time] ✓ matches target ;
|
|
96
|
-
# formula MATCHES, recovered prefactor ≈ 6.2832 (2π)
|
|
97
|
-
bun run upt -- help
|
|
98
|
-
# From an npm install, run the same commands as `npx upt <cmd>`.
|
|
99
|
-
# (`bun run explain` and `bun run bridge-priority` remain as aliases.)
|
|
73
|
+
`upt eval "2*pi*sqrt(1/9.81)"` prints the small-angle period of a 1 m pendulum, in seconds:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
2.0060666807106475
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`upt derive` recovers the dimensionless prefactor of that formula (2π) and names the canonical entry:
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
dimensionally determined up to a constant: period ∝ length^0.5·gravity^-0.5
|
|
83
|
+
formula dimension: [time] ✓ homogeneous, matches target
|
|
84
|
+
formula MATCHES the dimensional form — recovered prefactor ≈ 6.2832e+0
|
|
85
|
+
✓ agrees with CE-pendulum-period (Pendulum period), prefactor included: yours/canonical = 1 at 3 fixed points
|
|
100
86
|
```
|
|
101
87
|
|
|
102
|
-
`
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
and
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
`
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
`
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
88
|
+
`upt explain hawking-temperature mass=1Msun` recovers `6.1684e-8` by the two routes of BE-42.
|
|
89
|
+
`upt evaluate be-63 mu_e=2` prints `M_Ch_solar = 1.4558683960704613` for an ideal degenerate gas
|
|
90
|
+
with `M_sun = 1.989e30` kg. `upt search pendulum` names the commands that open the pendulum
|
|
91
|
+
records. Every flag of every command is in [`docs/CLI.md`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/docs/CLI.md).
|
|
92
|
+
|
|
93
|
+
## Commands
|
|
94
|
+
|
|
95
|
+
<!-- cli-reference:commands -->
|
|
96
|
+
30 commands: 28 registered, plus `help` and `version`.
|
|
97
|
+
|
|
98
|
+
**Evaluate and check**
|
|
99
|
+
|
|
100
|
+
| Command | What it does |
|
|
101
|
+
|---|---|
|
|
102
|
+
| `audit` | Derive every bridge equation by dimensions and sort derived, decoy, and open. |
|
|
103
|
+
| `derive` (`dim`) | Derive the dimensional form of your own equation and, with --formula, the prefactor. |
|
|
104
|
+
| `eval` (`calc`) | Evaluate a scalar formula. A bare e is the elementary charge; Euler's number is exp(x). |
|
|
105
|
+
| `evaluate` | Evaluate a closed-form bridge or an applied case, with units on every input. |
|
|
106
|
+
| `metric` (`curvature`) | Print Christoffel symbols and curvature scalars for one exact metric. |
|
|
107
|
+
| `symbolic` (`compose-symbolic`) | Compose the symbolic forms of the registered bridge chains. |
|
|
108
|
+
|
|
109
|
+
**Explore bridges and the atlas**
|
|
110
|
+
|
|
111
|
+
| Command | What it does |
|
|
112
|
+
|---|---|
|
|
113
|
+
| `atlas` | Show one atlas bridge with its relation, regime, bound, witnesses, and formal reference. |
|
|
114
|
+
| `canonical` (`laws`) | List the canonical-equation registry, its fidelity, and the coverage gap. |
|
|
115
|
+
| `explain` | Show how the graph determines a quantity, or say that it does not cover that name. |
|
|
116
|
+
| `map` (`linkage`) | Show how equations link, or where your own equation lands on that graph. |
|
|
117
|
+
| `path` | Show the bridge chain between two models and whether a bound is claimed there. |
|
|
118
|
+
| `recover` (`recovery`, `validate`) | Classify each bridge-to-canonical link as restates, recovers, or dimensional-only. |
|
|
119
|
+
| `regime` | Report where a family's models are valid, violated, or unknown. |
|
|
120
|
+
| `search` | Find a bridge, equation, model, quantity, or case by the words in its record. |
|
|
121
|
+
|
|
122
|
+
**Discovery and probes**
|
|
123
|
+
|
|
124
|
+
| Command | What it does |
|
|
125
|
+
|---|---|
|
|
126
|
+
| `axes` (`axis-audit`) | Report which tensor classification axes gate the discovery funnel. |
|
|
127
|
+
| `candidates` (`propose`) | Propose same-dimension links between clusters for physicist review. |
|
|
128
|
+
| `connectors` (`orphans`) | Find same-dimension identifications that would pull an isolated bridge into the core. |
|
|
129
|
+
| `discover` (`discovery`) | Vet quantity identifications and rank them promising, inert, or contradictory. |
|
|
130
|
+
| `frontier` | Print null results and missing connections as two lists, neither of them a score. |
|
|
131
|
+
| `ground` | Show which falsifiers ran on one discovery candidate, and which abstained. |
|
|
132
|
+
| `predict` (`predictions`) | Rank empty regime cells as undiscovered-connection hypotheses. |
|
|
133
|
+
| `priority` (`prioritize`, `triage`) | Triage speculative bridges by structural decidability, not by credibility. |
|
|
134
|
+
| `probe` | Search expressions and residuals. This is not `upt discover`. |
|
|
135
|
+
|
|
136
|
+
**Data and confrontation**
|
|
137
|
+
|
|
138
|
+
| Command | What it does |
|
|
139
|
+
|---|---|
|
|
140
|
+
| `confront` | Run the committed predicted-versus-observed confrontations. |
|
|
141
|
+
| `coverage` (`grounding`) | Count catalog bridges by empirical grounding tier. |
|
|
142
|
+
| `retrieve` | Search the atlas for a claim. --embed asks a local Ollama model and does not accept that order. |
|
|
143
|
+
| `testplan` | Print the measurement plan stored on a confrontation or an applied case. |
|
|
144
|
+
|
|
145
|
+
**Utilities**
|
|
146
|
+
|
|
147
|
+
| Command | What it does |
|
|
148
|
+
|---|---|
|
|
149
|
+
| `help` | Show every command, or one command's usage and flags. `upt help statuses` defines the status words. |
|
|
150
|
+
| `version` | Print the installed package version as one semver line. |
|
|
151
|
+
| `chain` | Name the internal chain orchestrator and exit 2. It does not run it. |
|
|
152
|
+
<!-- /cli-reference:commands -->
|
|
153
|
+
|
|
154
|
+
## Global options
|
|
155
|
+
|
|
156
|
+
<!-- cli-reference:globals -->
|
|
157
|
+
| Option | Default | What it does |
|
|
158
|
+
|---|---|---|
|
|
159
|
+
| `--help` | | Show this command list, or `upt help <command>` for one command. `-h` is the same. `upt <command> --help` prints that command. |
|
|
160
|
+
| `--version` | | Print the package version as one semver line and exit. `-v` and `upt version` are the same. Neither takes --json. |
|
|
161
|
+
| `--json` | | Write a JSON envelope to stdout instead of the text report. |
|
|
162
|
+
| `--record` | | Run the following command unchanged and append one JSONL entry to FILE: arguments, stdout, stderr, exit code, versions, and hashes. A failed run is recorded too. |
|
|
163
|
+
| `--replay` | | Re-run every entry of FILE and report reproduced, differs, or not replayable. Takes no command. `--json` after it selects the JSON report. Exit 0 when every entry is reproduced and unchanged, 3 when any differs, 1 otherwise. |
|
|
164
|
+
| `--show-record` | | Print FILE as a transcript and run nothing. Takes no command. `--json` after it selects the JSON report. |
|
|
165
|
+
<!-- /cli-reference:globals -->
|
|
166
|
+
|
|
167
|
+
`upt <command> --help` prints that command. An unknown flag exits 2 and names the flag.
|
|
168
|
+
[`docs/CLI.md`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/docs/CLI.md) is the flag reference: every command, every flag, one example each.
|
|
169
|
+
[`cli/README.md`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/cli/README.md) keeps the exit-code and input-syntax notes.
|
|
170
|
+
[`docs/architecture/PHYSICS_MAP.md`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/docs/architecture/PHYSICS_MAP.md) is the rendered map
|
|
171
|
+
(`upt map --format=mermaid|dot|svg`).
|
|
127
172
|
|
|
128
173
|
## Installation
|
|
129
174
|
|
|
@@ -326,7 +371,7 @@ The current machine-checked state is:
|
|
|
326
371
|
| Empirical spine | **19 committed confrontations**, exposed through `upt confront` with rigor/caveat metadata |
|
|
327
372
|
| Composition layer | **46 bridge edges** plus the canonical L-layer graph; dimensional, symbolic, discovery, consequence, and visualization tooling |
|
|
328
373
|
| Canonical reference layer | **109 canonical equations** used as the non-speculative answer-key layer for bridge recovery/linkage |
|
|
329
|
-
| Architecture | Generated dependency graph reports **0 circular dependencies**. The unused-analysis report lists **1** file and **
|
|
374
|
+
| Architecture | Generated dependency graph reports **0 circular dependencies**. The unused-analysis report lists **1** file and **78** exports with no importer. Both reports are regenerated by `bun run docs:deps`, and the `docs-fresh` job fails when they are stale |
|
|
330
375
|
| Quality gates | Build, strict source+test TypeScript checks, full Vitest suite, active-plan audit, package-content smoke test, and nightly long-horizon GL4/Shapiro accuracy tests |
|
|
331
376
|
| Formal references | **10** atlas bridges derive `formally-proved` from a reviewed `lean4-physjs` reference. **16** catalog equations carry a counted reference and do not light that tag. **14** state the catalogued equation, so the kind is `bridge` while the covers line still begins with `derivation-step`; passing one to `deriveEvidence` lights `formally-proved`, and the catalog path still omits it. **3** carry a cross-check and **2** carry a property, and `be-28` is a property whose covers line begins with `derivation-step`. Nested statements are not second references. The pin and the split are [`NOTES.md`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/NOTES.md) |
|
|
332
377
|
<!-- /readme-status:table -->
|
|
@@ -76,6 +76,7 @@ export declare function rankByCosine(query: ArrayLike<number>, records: readonly
|
|
|
76
76
|
export declare function decodeFloat32(encoded: string): Float32Array;
|
|
77
77
|
/** The live canonical registry as retrieval records. Text is the name and the latex. @internal */
|
|
78
78
|
export declare function canonicalRetrievalCorpus(): CorpusRecord[];
|
|
79
|
+
/** Where an Ollama embedder reaches the server, which model it asks for, and the vector width it expects. @internal */
|
|
79
80
|
export interface OllamaEmbedderOptions {
|
|
80
81
|
readonly baseUrl: string;
|
|
81
82
|
readonly model?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hybrid-retrieval.d.ts","sourceRoot":"","sources":["../../../src/atlas/benchmark/hybrid-retrieval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAmB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEzF,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,yGACsE,CAAC;AAEzG,iGAAiG;AACjG,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,qEAAqE,CAAC;AAEvG;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,0EAA0E;AAC1E,eAAO,MAAM,eAAe,6DAA6D,CAAC;AAE1F,kGAAkG;AAClG,eAAO,MAAM,aAAa,mKACwI,CAAC;AAEnK,QAAA,MAAM,WAAW;aACf,mBAAmB,EAAE,0BAA0B;aAC/C,iBAAiB,EAAE,wBAAwB;aAC3C,oBAAoB,EAClB,sFAAsF;aACxF,qBAAqB,EAAE,0BAA0B;CACzC,CAAC;AAEX,wEAAwE;AACx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,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrG,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module atlas/chain-pipeline
|
|
15
15
|
*/
|
|
16
|
+
import type { ExprNode } from '../dimensional/validator.js';
|
|
17
|
+
import type { Dimension } from '../dimensional/types.js';
|
|
16
18
|
import type { BridgeEdge } from '../composition/edge.js';
|
|
19
|
+
import type { CompositionResult } from '../relations/composition-table.js';
|
|
20
|
+
import { type ChainRecord } from '../composition/chain-result.js';
|
|
17
21
|
import { type ChainRegimeMismatch } from '../composition/chain-regime.js';
|
|
18
22
|
/** A chain whose normal form matches a catalog equation. Nothing was written. @internal */
|
|
19
23
|
export interface ChainConfirmationRecord {
|
|
@@ -37,6 +41,39 @@ export interface ChainStubRecord {
|
|
|
37
41
|
}
|
|
38
42
|
/** One ordered survivor, or a recorded regime rejection. @internal */
|
|
39
43
|
export type ChainPipelineResult = ChainConfirmationRecord | ChainRestatementRecord | ChainStubRecord | ChainRegimeMismatch;
|
|
44
|
+
/**
|
|
45
|
+
* Dimensioned leaves of the composed formula, excluding the target name.
|
|
46
|
+
* The names are the MathTS symbol filter. A dimensionless constant is not
|
|
47
|
+
* a governing symbol. The elementary charge is, because its dimension is
|
|
48
|
+
* charge.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export declare function governingOf(expr: ExprNode, targetName: string): {
|
|
53
|
+
name: string;
|
|
54
|
+
dim: Dimension;
|
|
55
|
+
}[];
|
|
56
|
+
/**
|
|
57
|
+
* The category claim recorded for two quantity edges.
|
|
58
|
+
*
|
|
59
|
+
* A quantity edge stores a quantity name, not a category object id.
|
|
60
|
+
* This step does not invent that id, so the recorded result is unset
|
|
61
|
+
* even when both edges store a relation. The pair is not dropped.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
export declare function categoryCompositionForChain(first: BridgeEdge, second: BridgeEdge): CompositionResult | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The orchestrator view of one {@link ChainRecord}.
|
|
68
|
+
*
|
|
69
|
+
* A confirmation and a restatement ignore `mismatch`. A provisional
|
|
70
|
+
* record with a mismatch is that rejection. Any other provisional record
|
|
71
|
+
* is a stub whose id and theorem come from the same record the order key
|
|
72
|
+
* reads.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
export declare function renderChainRecord(record: ChainRecord, seedTheorems?: readonly string[]): ChainPipelineResult;
|
|
40
77
|
/**
|
|
41
78
|
* Run the pipeline on `edges`.
|
|
42
79
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-pipeline.d.ts","sourceRoot":"","sources":["../../src/atlas/chain-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"chain-pipeline.d.ts","sourceRoot":"","sources":["../../src/atlas/chain-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAI3E,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAK9F,2FAA2F;AAC3F,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,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|
import { enumerateCompositions } from '../composition/enumerate.js';
|
|
20
20
|
import { buckinghamFilter } from '../composition/buckingham-filter.js';
|
|
21
21
|
import { matchChain } from '../composition/chain-match.js';
|
|
22
|
-
import { compareChainEdgeIds
|
|
23
|
-
import {
|
|
22
|
+
import { compareChainEdgeIds } from '../composition/chain-candidate.js';
|
|
23
|
+
import { chainOrderKey, orderChainRecords, } from '../composition/chain-result.js';
|
|
24
|
+
import { joinRegimeMismatch } from '../composition/chain-regime.js';
|
|
24
25
|
import { bridgeSeedKeys, physjsTheorem } from './physjs-ref.js';
|
|
25
26
|
import { emitProofTarget } from './proof-target.js';
|
|
27
|
+
import { scalarSymbolsFromMathTs } from '../composition/mathts-scalar-symbols.js';
|
|
26
28
|
function isNumericName(name) {
|
|
27
29
|
return /^\d+(\.\d+)?$/.test(name);
|
|
28
30
|
}
|
|
@@ -32,110 +34,113 @@ function isDimensionlessConstant(name) {
|
|
|
32
34
|
const registered = CONSTANTS[name];
|
|
33
35
|
return registered !== undefined && equals(registered.dim, DIMENSIONLESS);
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
case 'integral':
|
|
45
|
-
collectSymbols(expr.over, out);
|
|
46
|
-
collectSymbols(expr.integrand, out);
|
|
47
|
-
return;
|
|
48
|
-
case 'derivative':
|
|
49
|
-
collectSymbols(expr.of, out);
|
|
50
|
-
collectSymbols(expr.wrt, out);
|
|
51
|
-
return;
|
|
52
|
-
case 'transcendental':
|
|
53
|
-
case 'abs':
|
|
54
|
-
case 'dirac-delta':
|
|
55
|
-
collectSymbols(expr.arg, out);
|
|
56
|
-
return;
|
|
57
|
-
default:
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/** Dimensioned leaves of the composed formula, excluding the target name. */
|
|
62
|
-
function governingOf(expr, targetName) {
|
|
63
|
-
const dims = new Map();
|
|
64
|
-
collectSymbols(expr, dims);
|
|
37
|
+
/**
|
|
38
|
+
* Dimensioned leaves of the composed formula, excluding the target name.
|
|
39
|
+
* The names are the MathTS symbol filter. A dimensionless constant is not
|
|
40
|
+
* a governing symbol. The elementary charge is, because its dimension is
|
|
41
|
+
* charge.
|
|
42
|
+
*
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export function governingOf(expr, targetName) {
|
|
65
46
|
const vars = [];
|
|
66
|
-
for (const
|
|
67
|
-
if (name === targetName)
|
|
47
|
+
for (const leaf of scalarSymbolsFromMathTs(expr)) {
|
|
48
|
+
if (leaf.name === targetName)
|
|
68
49
|
continue;
|
|
69
|
-
if (isNumericName(name) || isDimensionlessConstant(name))
|
|
50
|
+
if (isNumericName(leaf.name) || isDimensionlessConstant(leaf.name))
|
|
70
51
|
continue;
|
|
71
|
-
vars.push(
|
|
52
|
+
vars.push(leaf);
|
|
72
53
|
}
|
|
73
54
|
vars.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
74
55
|
return vars;
|
|
75
56
|
}
|
|
76
|
-
|
|
77
|
-
|
|
57
|
+
/**
|
|
58
|
+
* The category claim recorded for two quantity edges.
|
|
59
|
+
*
|
|
60
|
+
* A quantity edge stores a quantity name, not a category object id.
|
|
61
|
+
* This step does not invent that id, so the recorded result is unset
|
|
62
|
+
* even when both edges store a relation. The pair is not dropped.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
export function categoryCompositionForChain(first, second) {
|
|
67
|
+
const relationsAreStored = first.relation !== undefined && second.relation !== undefined;
|
|
68
|
+
if (!relationsAreStored)
|
|
69
|
+
return undefined;
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
function theoremsFor(edgeIds) {
|
|
73
|
+
return edgeIds.map((id) => {
|
|
74
|
+
const name = physjsTheorem(id);
|
|
75
|
+
if (name === undefined) {
|
|
76
|
+
throw new Error(`chain pipeline: manifest copy has no theorem for seed '${id}'`);
|
|
77
|
+
}
|
|
78
|
+
return name;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function proofCandidate(record) {
|
|
82
|
+
const kind = chainOrderKey(record);
|
|
83
|
+
const theorem = record.theorem ?? undefined;
|
|
78
84
|
const carried = theorem === undefined ? {} : { theorem };
|
|
79
|
-
if (classification.kind === 'confirmation') {
|
|
85
|
+
if (record.classification.kind === 'confirmation') {
|
|
80
86
|
return {
|
|
81
|
-
kind
|
|
82
|
-
edgeIds:
|
|
83
|
-
catalogId: classification.catalogId,
|
|
87
|
+
kind,
|
|
88
|
+
edgeIds: record.edgeIds,
|
|
89
|
+
catalogId: record.classification.catalogId,
|
|
84
90
|
...carried,
|
|
85
91
|
};
|
|
86
92
|
}
|
|
87
|
-
if (classification.kind === 'restatement') {
|
|
93
|
+
if (record.classification.kind === 'restatement') {
|
|
88
94
|
return {
|
|
89
|
-
kind
|
|
90
|
-
edgeIds:
|
|
91
|
-
canonicalId: classification.canonicalId,
|
|
92
|
-
restatesBridge: classification.restatesBridge,
|
|
95
|
+
kind,
|
|
96
|
+
edgeIds: record.edgeIds,
|
|
97
|
+
canonicalId: record.classification.canonicalId,
|
|
98
|
+
restatesBridge: record.classification.restatesBridge,
|
|
93
99
|
...carried,
|
|
94
100
|
};
|
|
95
101
|
}
|
|
96
|
-
const kind = filter.theorem === 'PhysJS.Dimensional.monomial_form'
|
|
97
|
-
? 'unique-monomial'
|
|
98
|
-
: 'unfixed-shape';
|
|
99
102
|
return {
|
|
100
103
|
kind,
|
|
101
|
-
edgeIds:
|
|
102
|
-
id: classification.id,
|
|
104
|
+
edgeIds: record.edgeIds,
|
|
105
|
+
id: record.classification.id,
|
|
103
106
|
...carried,
|
|
104
107
|
};
|
|
105
108
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
/**
|
|
110
|
+
* The orchestrator view of one {@link ChainRecord}.
|
|
111
|
+
*
|
|
112
|
+
* A confirmation and a restatement ignore `mismatch`. A provisional
|
|
113
|
+
* record with a mismatch is that rejection. Any other provisional record
|
|
114
|
+
* is a stub whose id and theorem come from the same record the order key
|
|
115
|
+
* reads.
|
|
116
|
+
*
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
export function renderChainRecord(record, seedTheorems = []) {
|
|
120
|
+
if (record.classification.kind === 'confirmation') {
|
|
117
121
|
return {
|
|
118
122
|
kind: 'confirmation',
|
|
119
|
-
catalogId:
|
|
120
|
-
edgeIds:
|
|
123
|
+
catalogId: record.classification.catalogId,
|
|
124
|
+
edgeIds: record.edgeIds,
|
|
121
125
|
};
|
|
122
126
|
}
|
|
123
|
-
if (
|
|
124
|
-
candidate.canonicalId !== undefined &&
|
|
125
|
-
candidate.restatesBridge !== undefined) {
|
|
127
|
+
if (record.classification.kind === 'restatement') {
|
|
126
128
|
return {
|
|
127
129
|
kind: 'restatement',
|
|
128
|
-
canonicalId:
|
|
129
|
-
restatesBridge:
|
|
130
|
-
edgeIds:
|
|
130
|
+
canonicalId: record.classification.canonicalId,
|
|
131
|
+
restatesBridge: record.classification.restatesBridge,
|
|
132
|
+
edgeIds: record.edgeIds,
|
|
131
133
|
};
|
|
132
134
|
}
|
|
133
|
-
|
|
135
|
+
if (record.mismatch !== undefined)
|
|
136
|
+
return record.mismatch;
|
|
137
|
+
const candidate = proofCandidate(record);
|
|
138
|
+
const id = candidate.id ?? `chain-${record.edgeIds.join('-')}`;
|
|
134
139
|
return {
|
|
135
140
|
kind: 'stub',
|
|
136
141
|
id,
|
|
137
|
-
edgeIds:
|
|
138
|
-
text: emitProofTarget({ ...candidate, id },
|
|
142
|
+
edgeIds: record.edgeIds,
|
|
143
|
+
text: emitProofTarget({ ...candidate, id }, seedTheorems),
|
|
139
144
|
};
|
|
140
145
|
}
|
|
141
146
|
/**
|
|
@@ -152,25 +157,36 @@ function emit(candidate) {
|
|
|
152
157
|
export function runChainPipeline(edges) {
|
|
153
158
|
const seedIds = new Set(bridgeSeedKeys());
|
|
154
159
|
const report = enumerateCompositions(edges, { seedIds });
|
|
155
|
-
const
|
|
160
|
+
const records = [];
|
|
156
161
|
const rejections = [];
|
|
157
162
|
for (const target of report.proofTargets) {
|
|
158
163
|
const filtered = buckinghamFilter({ name: target.second.target.name, dim: target.second.target.dim }, governingOf(target.expr, target.second.target.name));
|
|
159
164
|
if (filtered === undefined)
|
|
160
165
|
continue;
|
|
161
166
|
const classification = matchChain(target.expr, [target.first.id, target.second.id]);
|
|
167
|
+
const edgeIds = [target.first.id, target.second.id];
|
|
168
|
+
const record = {
|
|
169
|
+
edgeIds,
|
|
170
|
+
classification,
|
|
171
|
+
theorem: filtered.theorem,
|
|
172
|
+
mismatch: undefined,
|
|
173
|
+
categoryComposition: categoryCompositionForChain(target.first, target.second),
|
|
174
|
+
};
|
|
162
175
|
if (classification.kind === 'confirmation' || classification.kind === 'restatement') {
|
|
163
|
-
|
|
176
|
+
records.push(record);
|
|
164
177
|
continue;
|
|
165
178
|
}
|
|
166
179
|
const mismatch = joinRegimeMismatch(target.first, target.second);
|
|
167
180
|
if (mismatch !== undefined) {
|
|
168
|
-
rejections.push(mismatch);
|
|
181
|
+
rejections.push({ ...record, mismatch });
|
|
169
182
|
continue;
|
|
170
183
|
}
|
|
171
|
-
|
|
184
|
+
records.push(record);
|
|
172
185
|
}
|
|
173
186
|
const orderedRejections = [...rejections].sort((a, b) => compareChainEdgeIds(a.edgeIds, b.edgeIds));
|
|
174
|
-
return [
|
|
187
|
+
return [
|
|
188
|
+
...orderChainRecords(records).map((record) => renderChainRecord(record, theoremsFor(record.edgeIds))),
|
|
189
|
+
...orderedRejections.map((record) => renderChainRecord(record)),
|
|
190
|
+
];
|
|
175
191
|
}
|
|
176
192
|
//# sourceMappingURL=chain-pipeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-pipeline.js","sourceRoot":"","sources":["../../src/atlas/chain-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"chain-pipeline.js","sourceRoot":"","sources":["../../src/atlas/chain-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAuB,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACL,aAAa,EACb,iBAAiB,GAElB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAA4B,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAgClF,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,uBAAuB,CAAC,IAAY;IAC3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