universal-physics-tensor 1.0.4 → 2.0.1
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 +11 -13
- package/dist/atlas/catalog-formal-ref.js +1 -1
- package/dist/atlas/catalog-formal-ref.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/derive-evidence.d.ts +6 -4
- package/dist/atlas/derive-evidence.d.ts.map +1 -1
- package/dist/atlas/derive-evidence.js +12 -4
- package/dist/atlas/derive-evidence.js.map +1 -1
- package/dist/atlas/physjs-ref.d.ts +2 -2
- package/dist/atlas/physjs-ref.d.ts.map +1 -1
- package/dist/atlas/physjs-ref.js +33 -3
- package/dist/atlas/physjs-ref.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/bridges/be64-eddington-luminosity.d.ts.map +1 -1
- package/dist/bridges/be64-eddington-luminosity.js +1 -3
- package/dist/bridges/be64-eddington-luminosity.js.map +1 -1
- package/dist/bridges/be66-radiation-pressure.d.ts +30 -0
- package/dist/bridges/be66-radiation-pressure.d.ts.map +1 -0
- package/dist/bridges/be66-radiation-pressure.js +37 -0
- package/dist/bridges/be66-radiation-pressure.js.map +1 -0
- package/dist/bridges/be67-alfven-speed.d.ts +54 -0
- package/dist/bridges/be67-alfven-speed.d.ts.map +1 -0
- package/dist/bridges/be67-alfven-speed.js +49 -0
- package/dist/bridges/be67-alfven-speed.js.map +1 -0
- package/dist/bridges/be68-tolman-ehrenfest.d.ts +49 -0
- package/dist/bridges/be68-tolman-ehrenfest.d.ts.map +1 -0
- package/dist/bridges/be68-tolman-ehrenfest.js +46 -0
- package/dist/bridges/be68-tolman-ehrenfest.js.map +1 -0
- package/dist/bridges/bridge-equations.d.ts +6 -0
- package/dist/bridges/bridge-equations.d.ts.map +1 -1
- package/dist/bridges/bridge-equations.js +6 -0
- package/dist/bridges/bridge-equations.js.map +1 -1
- package/dist/bridges/evaluators.d.ts +3 -3
- package/dist/bridges/evaluators.d.ts.map +1 -1
- package/dist/bridges/evaluators.js +25 -4
- package/dist/bridges/evaluators.js.map +1 -1
- package/dist/bridges/index.d.ts +10 -4
- package/dist/bridges/index.d.ts.map +1 -1
- package/dist/bridges/index.js +74 -4
- package/dist/bridges/index.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 +6 -2
- package/dist/cli/commands/atlas.js.map +1 -1
- package/dist/cli/commands/chain.d.ts.map +1 -1
- package/dist/cli/commands/chain.js +8 -3
- package/dist/cli/commands/chain.js.map +1 -1
- package/dist/cli/commands/derive.js +1 -1
- package/dist/cli/commands/eval.d.ts.map +1 -1
- package/dist/cli/commands/eval.js +31 -15
- 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 +53 -32
- 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 +119 -15
- package/dist/cli/commands/explain.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.map +1 -1
- package/dist/cli/commands/metric.d.ts.map +1 -1
- package/dist/cli/commands/metric.js +10 -11
- package/dist/cli/commands/metric.js.map +1 -1
- package/dist/cli/commands/path.d.ts +2 -2
- package/dist/cli/commands/path.d.ts.map +1 -1
- package/dist/cli/commands/path.js +10 -11
- package/dist/cli/commands/path.js.map +1 -1
- package/dist/cli/commands/recover.d.ts.map +1 -1
- package/dist/cli/commands/recover.js +1 -2
- 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 +3 -4
- package/dist/cli/commands/regime.js.map +1 -1
- package/dist/cli/commands/search.d.ts.map +1 -1
- package/dist/cli/commands/search.js +8 -3
- 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 +5 -0
- package/dist/cli/commands/symbolic.js.map +1 -1
- package/dist/cli/eval-numbers.d.ts +6 -4
- package/dist/cli/eval-numbers.d.ts.map +1 -1
- package/dist/cli/eval-numbers.js +11 -5
- package/dist/cli/eval-numbers.js.map +1 -1
- package/dist/cli/map-evidence.d.ts +2 -1
- package/dist/cli/map-evidence.d.ts.map +1 -1
- package/dist/cli/map-evidence.js +2 -1
- package/dist/cli/map-evidence.js.map +1 -1
- package/dist/cli/search-index.d.ts +8 -0
- package/dist/cli/search-index.d.ts.map +1 -1
- package/dist/cli/search-index.js +18 -1
- package/dist/cli/search-index.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 +52 -0
- package/dist/cli-api.d.ts.map +1 -1
- package/dist/cli-api.js +44 -0
- package/dist/cli-api.js.map +1 -1
- package/dist/composition/bridge-analysis.d.ts.map +1 -1
- package/dist/composition/bridge-analysis.js +18 -1
- package/dist/composition/bridge-analysis.js.map +1 -1
- package/dist/composition/canonical-graph.d.ts +9 -4
- package/dist/composition/canonical-graph.d.ts.map +1 -1
- package/dist/composition/canonical-graph.js +113 -8
- package/dist/composition/canonical-graph.js.map +1 -1
- package/dist/composition/catalog-graph.d.ts +5 -4
- package/dist/composition/catalog-graph.d.ts.map +1 -1
- package/dist/composition/catalog-graph.js +7 -4
- package/dist/composition/catalog-graph.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/applied-physicist.d.ts +43 -0
- package/dist/composition/edges/applied-physicist.d.ts.map +1 -0
- package/dist/composition/edges/applied-physicist.js +128 -0
- package/dist/composition/edges/applied-physicist.js.map +1 -0
- 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/index.d.ts +2 -0
- package/dist/composition/index.d.ts.map +1 -1
- package/dist/composition/index.js +2 -0
- package/dist/composition/index.js.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/study.js +1 -1
- package/dist/composition/probe/study.js.map +1 -1
- package/dist/composition/quantities/applied-physicist.d.ts +34 -0
- package/dist/composition/quantities/applied-physicist.d.ts.map +1 -0
- package/dist/composition/quantities/applied-physicist.js +82 -0
- package/dist/composition/quantities/applied-physicist.js.map +1 -0
- package/dist/composition/quantities.d.ts +1 -0
- package/dist/composition/quantities.d.ts.map +1 -1
- package/dist/composition/quantities.js +1 -0
- package/dist/composition/quantities.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/core/constants.d.ts +16 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +16 -0
- package/dist/core/constants.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/bridge-check.d.ts +1 -1
- package/dist/dimensional/bridge-check.d.ts.map +1 -1
- package/dist/dimensional/bridge-check.js +5 -2
- package/dist/dimensional/bridge-check.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/dimension-spec.d.ts.map +1 -1
- package/dist/dimensional/dimension-spec.js +1 -0
- package/dist/dimensional/dimension-spec.js.map +1 -1
- package/dist/dimensional/formula-names.d.ts.map +1 -1
- package/dist/dimensional/formula-names.js +9 -1
- package/dist/dimensional/formula-names.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 +81 -3
- package/dist/dimensional/units.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/numerical/binding-value.d.ts +21 -3
- package/dist/numerical/binding-value.d.ts.map +1 -1
- package/dist/numerical/binding-value.js +106 -33
- 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/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/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 +12 -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
|
@@ -54,13 +54,11 @@ pins `bun@1.4.2`). Node does not install it: `corepack prepare bun@1.4.2 --activ
|
|
|
54
54
|
`bun install` and `bun run build`. On a machine that has Node and not Bun, the clone path is
|
|
55
55
|
`npm install`, `npm run build`, then `node bin/upt.mjs <command>`.
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
`
|
|
61
|
-
|
|
62
|
-
bare semver line. `@danielsimonjr/mathts-functions` and `@viz-js/viz` (`upt map --format=svg`) are
|
|
63
|
-
optional peers. The package keeps zero hard dependencies.
|
|
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.
|
|
64
62
|
|
|
65
63
|
## First five minutes
|
|
66
64
|
|
|
@@ -254,7 +252,7 @@ Bridge equations connect different physical regimes:
|
|
|
254
252
|
- Universal Emergence Equation
|
|
255
253
|
- Complexity-Entropy Production Relation
|
|
256
254
|
|
|
257
|
-
Parts I–II of the formal specification document the original BE-11…54 corpus; later established additions BE-55…
|
|
255
|
+
Parts I–II of the formal specification document the original BE-11…54 corpus; later established additions BE-55…68 are captured in the live code/research record. The **authoritative current catalog** is the versioned, test-pinned JSON artifact at [`data/bridge-catalog.json`](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/data/bridge-catalog.json), which currently spans BE-11…68. Part III covers algorithmic implementation.
|
|
258
256
|
|
|
259
257
|
### Composing Bridges (v0.8.0)
|
|
260
258
|
|
|
@@ -286,7 +284,7 @@ literature-anchored result, pre-registered before implementation and
|
|
|
286
284
|
pinned to relErr ≤ 10⁻¹² (see [Part IX](https://github.com/danielsimonjr/universal-physics-tensor/blob/master/docs/specification/Part-IX-Composition.md)
|
|
287
285
|
and `docs/planning/v0.8.0-Design.md`). A computable **membership
|
|
288
286
|
criterion** (a bridge's endpoint quantities must differ in regime) now
|
|
289
|
-
adjudicates the catalog — <!-- readme-status:membership -->
|
|
287
|
+
adjudicates the catalog — <!-- readme-status:membership -->50 bridges · 5 not-a-bridge · 3 unadjudicated<!-- /readme-status:membership --> —
|
|
290
288
|
with rejections recorded in a reviewable negative catalog
|
|
291
289
|
(`src/bridges/rejected.ts`).
|
|
292
290
|
|
|
@@ -369,13 +367,13 @@ The current machine-checked state is:
|
|
|
369
367
|
<!-- readme-status:table -->
|
|
370
368
|
| Surface | Current state |
|
|
371
369
|
|---|---|
|
|
372
|
-
| Bridge catalog | **
|
|
370
|
+
| Bridge catalog | **58 entries (BE-11…68)**: 22 established, 33 speculative, 3 highly speculative; the JSON artifact is freshness-tested against the TypeScript registry |
|
|
373
371
|
| Empirical spine | **19 committed confrontations**, exposed through `upt confront` with rigor/caveat metadata |
|
|
374
|
-
| Composition layer | **
|
|
372
|
+
| Composition layer | **49 bridge edges** plus the canonical L-layer graph; dimensional, symbolic, discovery, consequence, and visualization tooling |
|
|
375
373
|
| Canonical reference layer | **109 canonical equations** used as the non-speculative answer-key layer for bridge recovery/linkage |
|
|
376
|
-
| 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 |
|
|
377
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 |
|
|
378
|
-
| 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. **
|
|
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. **17** state the catalogued equation, so the kind is `bridge` while the covers line still begins with `derivation-step`; the catalog path passes that reference, so catalog evidence and edge evidence include `formally-proved`, except an unadjudicated row, which stays `proposed`. **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) |
|
|
379
377
|
<!-- /readme-status:table -->
|
|
380
378
|
|
|
381
379
|
The project is **engineering-complete for its stated goal**: it is a computational
|
|
@@ -21,7 +21,7 @@ import { physjsFormalRef } from './physjs-ref.js';
|
|
|
21
21
|
*/
|
|
22
22
|
const CATALOG_FORMAL_REF_IDS = [
|
|
23
23
|
11, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 27, 28, 29, 30, 32, 33, 34, 35, 37, 38, 40, 42, 43,
|
|
24
|
-
50, 51, 54, 53, 55, 58, 59, 60, 61, 63, 64, 65,
|
|
24
|
+
50, 51, 54, 53, 55, 58, 59, 60, 61, 63, 64, 65, 66, 67, 68,
|
|
25
25
|
];
|
|
26
26
|
const BY_ID = new Map(CATALOG_FORMAL_REF_IDS.map((id) => [id, physjsFormalRef(`be-${id}`)]));
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-formal-ref.js","sourceRoot":"","sources":["../../src/atlas/catalog-formal-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;GAIG;AACH,MAAM,sBAAsB,GAAG;IAC7B,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IAC9F,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"catalog-formal-ref.js","sourceRoot":"","sources":["../../src/atlas/catalog-formal-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;GAIG;AACH,MAAM,sBAAsB,GAAG;IAC7B,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IAC9F,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;CAClD,CAAC;AAEX,MAAM,KAAK,GAAmC,IAAI,GAAG,CACnD,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CACtE,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAAU;IACzC,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACvB,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,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,6FAA6F;AAC7F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,sBAAsB,GACtB,eAAe,GACf,mBAAmB,CAAC;AAYxB;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,SAAS,CAAA;CAAE,EAAE,CASlG;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,UAAU,GACjB,iBAAiB,GAAG,SAAS,CAI/B;AAyCD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,WAAW,EACnB,YAAY,GAAE,SAAS,MAAM,EAAO,GACnC,mBAAmB,CAyBrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,mBAAmB,EAAE,CAwC7F"}
|
|
@@ -19,10 +19,12 @@ import { CONSTANTS } from '../dimensional/symbolic-constants.js';
|
|
|
19
19
|
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,MA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,14 +192,16 @@ export declare function provedWithUnresolvedCounterexample(tags: ReadonlySet<Evi
|
|
|
192
192
|
/**
|
|
193
193
|
* The artifacts a catalog row may be judged on.
|
|
194
194
|
*
|
|
195
|
-
* `
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
195
|
+
* A manifest-checked `lean4-physjs` reference of kind `bridge` is included.
|
|
196
|
+
* {@link deriveEvidence} then lights `formally-proved`. A reduction, a limit,
|
|
197
|
+
* a derivation-step, a property, and a cross-check are left off this input,
|
|
198
|
+
* so those rows keep the grade they had. An unadjudicated verdict still
|
|
199
|
+
* returns `proposed` and does not read this reference.
|
|
199
200
|
*
|
|
200
201
|
* @internal
|
|
201
202
|
*/
|
|
202
203
|
export declare function catalogEvidenceInput(row: {
|
|
204
|
+
readonly id?: number;
|
|
203
205
|
readonly conventions?: Conventions;
|
|
204
206
|
readonly counterexamples?: readonly CounterexampleLike[];
|
|
205
207
|
}): EvidenceInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-evidence.d.ts","sourceRoot":"","sources":["../../src/atlas/derive-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"derive-evidence.d.ts","sourceRoot":"","sources":["../../src/atlas/derive-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1F;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC;AAE5E;;;;;;;;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,CAAC;AAmB3E;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,aAAa,EACrB,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,GACrC,WAAW,CAAC,WAAW,CAAC,CA6C1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC,GAAG,OAAO,CAE1F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE;IACxC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAC1D,GAAG,aAAa,CAYhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,aAAa,EACrB,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,GACrC,WAAW,CAAC,WAAW,CAAC,CAY1B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,WAAW,CAAC,WAAW,CAAC,EAAE,GAAG,WAAW,CAAC,WAAW,CAAC,CAW5G"}
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
* @module atlas/derive-evidence
|
|
49
49
|
* @internal
|
|
50
50
|
*/
|
|
51
|
+
import { catalogFormalRef } from './catalog-formal-ref.js';
|
|
51
52
|
/**
|
|
52
53
|
* A row's counterexamples INCLUDING the one its rejection constitutes.
|
|
53
54
|
*
|
|
@@ -193,17 +194,24 @@ export function provedWithUnresolvedCounterexample(tags) {
|
|
|
193
194
|
/**
|
|
194
195
|
* The artifacts a catalog row may be judged on.
|
|
195
196
|
*
|
|
196
|
-
* `
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
197
|
+
* A manifest-checked `lean4-physjs` reference of kind `bridge` is included.
|
|
198
|
+
* {@link deriveEvidence} then lights `formally-proved`. A reduction, a limit,
|
|
199
|
+
* a derivation-step, a property, and a cross-check are left off this input,
|
|
200
|
+
* so those rows keep the grade they had. An unadjudicated verdict still
|
|
201
|
+
* returns `proposed` and does not read this reference.
|
|
200
202
|
*
|
|
201
203
|
* @internal
|
|
202
204
|
*/
|
|
203
205
|
export function catalogEvidenceInput(row) {
|
|
206
|
+
const formalRef = row.id === undefined ? undefined : catalogFormalRef(row.id);
|
|
207
|
+
const provedBridge = formalRef !== undefined &&
|
|
208
|
+
formalRef.system === 'lean4-physjs' &&
|
|
209
|
+
formalRef.fidelity !== 'unreviewed' &&
|
|
210
|
+
formalRef.kind === 'bridge';
|
|
204
211
|
return {
|
|
205
212
|
...(row.conventions !== undefined ? { conventions: row.conventions } : {}),
|
|
206
213
|
...(row.counterexamples !== undefined ? { counterexamples: row.counterexamples } : {}),
|
|
214
|
+
...(provedBridge ? { formalRef } : {}),
|
|
207
215
|
};
|
|
208
216
|
}
|
|
209
217
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-evidence.js","sourceRoot":"","sources":["../../src/atlas/derive-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;
|
|
1
|
+
{"version":3,"file":"derive-evidence.js","sourceRoot":"","sources":["../../src/atlas/derive-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAoE3D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,4BAA4B,CAC1C,MAAqB,EACrB,SAAoC;IAEpC,MAAM,GAAG,GAAG,MAAM,CAAC,e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ACrG,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,CAA2B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,cAAc,CAAC,CAAC;IACjH,IAAI,MAAM,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;IAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,MAAM,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,IAAI,GAAG,IAAI,GAAG,CAAc,MAAM,CAAC,CAAC;IAC1C,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAAE,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACvE,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;QAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC5C,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* the file and this copy disagree on the commit, a theorem, a key, or the
|
|
8
8
|
* coverage phrase.
|
|
9
9
|
*
|
|
10
|
-
* The commit is PhysJS `main` `
|
|
10
|
+
* The commit is PhysJS `main` `d917fa328039d19c3659f74ea73569effb3ed4fb`.
|
|
11
11
|
* Milestone 1's six top-level theorems are unchanged. Milestone 2 adds four
|
|
12
12
|
* atlas entries. Milestone 2b adds fifteen catalog entries. Bucket A adds
|
|
13
13
|
* twenty-one counted catalog entries, keyed `be-<n>`. BE-20 is the nested
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import type { FormalRef, FormalRefKind } from './types.js';
|
|
24
24
|
/** PhysJS commit the vendored manifest records. @internal */
|
|
25
|
-
export declare const PHYSJS_COMMIT = "
|
|
25
|
+
export declare const PHYSJS_COMMIT = "d917fa328039d19c3659f74ea73569effb3ed4fb";
|
|
26
26
|
/** A second statement on the same entry. No key. Not a `formalRef`. */
|
|
27
27
|
interface PhysjsNestedStatement {
|
|
28
28
|
readonly theorem: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"physjs-ref.d.ts","sourceRoot":"","sources":["../../src/atlas/physjs-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D,6DAA6D;AAC7D,eAAO,MAAM,aAAa,6CAA6C,CAAC;AAoBxE,uEAAuE;AACvE,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAyCD,6EAA6E;AAC7E,UAAU,WAAW;IACnB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qFAAqF;IACrF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC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A8BD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;CACtF,GAAG,MAAM,EAAE,CAkIX"}
|
package/dist/atlas/physjs-ref.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* the file and this copy disagree on the commit, a theorem, a key, or the
|
|
8
8
|
* coverage phrase.
|
|
9
9
|
*
|
|
10
|
-
* The commit is PhysJS `main` `
|
|
10
|
+
* The commit is PhysJS `main` `d917fa328039d19c3659f74ea73569effb3ed4fb`.
|
|
11
11
|
* Milestone 1's six top-level theorems are unchanged. Milestone 2 adds four
|
|
12
12
|
* atlas entries. Milestone 2b adds fifteen catalog entries. Bucket A adds
|
|
13
13
|
* twenty-one counted catalog entries, keyed `be-<n>`. BE-20 is the nested
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @module atlas/physjs-ref
|
|
22
22
|
*/
|
|
23
23
|
/** PhysJS commit the vendored manifest records. @internal */
|
|
24
|
-
export const PHYSJS_COMMIT = '
|
|
24
|
+
export const PHYSJS_COMMIT = 'd917fa328039d19c3659f74ea73569effb3ed4fb';
|
|
25
25
|
/** Lean toolchain the vendored manifest records. */
|
|
26
26
|
const PHYSJS_TOOLCHAIN = 'leanprover/lean4:v4.34.1';
|
|
27
27
|
/** Mathlib pin the vendored manifest records. */
|
|
@@ -85,7 +85,7 @@ function planeWave(namespace) {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* The forty-
|
|
88
|
+
* The forty-nine entries, in manifest order. A bridge obtains its reference by key
|
|
89
89
|
* through {@link physjsFormalRef}; it does not name a theorem of its own.
|
|
90
90
|
* A nested object is recorded and is not that reference.
|
|
91
91
|
*/
|
|
@@ -587,6 +587,33 @@ const PHYSJS_ENTRIES = [
|
|
|
587
587
|
leanProof: 'complete',
|
|
588
588
|
axioms: PHYSJS_AXIOMS,
|
|
589
589
|
},
|
|
590
|
+
{
|
|
591
|
+
key: 'be-66',
|
|
592
|
+
bridgeId: 'be-66',
|
|
593
|
+
theorem: 'PhysJS.RadiationPressure.pressure_eq',
|
|
594
|
+
covers: 'derivation-step: foreshortening I cos θ, normal momentum per energy (cos θ)/c, and an opaque split that deposits the absorbed fraction once and the specular fraction twice give P_n = (I/c)(1+R) cos²θ. R = 0, θ = 0 is I/c and R = 1, θ = 0 is 2I/c. A single cosine is not that pressure when cos θ is neither 0 nor 1. Homogeneity in I and c gives P = C I/c with C = f(1,1) unfixed. Not the Maxwell stress tensor, and not the Eddington luminosity',
|
|
595
|
+
coverage: PHYSJS_COVERAGE,
|
|
596
|
+
leanProof: 'complete',
|
|
597
|
+
axioms: PHYSJS_AXIOMS,
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
key: 'be-67',
|
|
601
|
+
bridgeId: 'be-67',
|
|
602
|
+
theorem: 'PhysJS.AlfvenSpeed.speed_eq',
|
|
603
|
+
covers: 'derivation-step: one transverse monochromatic polarization along a uniform field, with ∂b/∂t = B ∂v/∂z and ρ ∂v/∂t = (B/μ0) ∂b/∂z, has phase speed |ω/k| = B/√(μ0 ρ) for B > 0, μ0 > 0, ρ > 0, and k ≠ 0. ρ is the density in that momentum premise, read as the total mass density. Proton-only n m_p is a different density when electrons contribute, and a density r ρ with r ≠ 1 is a different speed. Inserting tesla and the SI density into B/√(4πρ) is not the SI speed. 4π×10^{-7} is the permeability stand-in, not a measured μ0. A factor C ≠ 1 is not the catalog speed. Not a kinetic dispersion relation',
|
|
604
|
+
coverage: PHYSJS_COVERAGE,
|
|
605
|
+
leanProof: 'complete',
|
|
606
|
+
axioms: PHYSJS_AXIOMS,
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
key: 'be-68',
|
|
610
|
+
bridgeId: 'be-68',
|
|
611
|
+
theorem: 'PhysJS.TolmanEhrenfest.hydrostatic_constant',
|
|
612
|
+
covers: 'derivation-step: on a static interval with g_00 < 0, hydrostatic balance dp = -(ρ+p) d ln √(-g_00) and the equilibrium Gibbs relation dp = (ρ+p) d ln T, with ρ+p ≠ 0, give T √(-g_00) equal at the endpoints. The 1930 writing T √g_44 agrees when g_44 = -g_00. Real.sqrt g_00 = 0 when g_00 < 0, so the product without the minus is 0. d ln T = 0 is not g dr/c². Not a horizon temperature and not PhysJS.HawkingUnruh.dictionary. T ‖ξ‖ = const is out of scope. The hydrostatic equation is not derived from ∇_μ T^{μν} = 0, and the Gibbs relation is not derived from an equation of state',
|
|
613
|
+
coverage: PHYSJS_COVERAGE,
|
|
614
|
+
leanProof: 'complete',
|
|
615
|
+
axioms: PHYSJS_AXIOMS,
|
|
616
|
+
},
|
|
590
617
|
];
|
|
591
618
|
const entryByKey = new Map(PHYSJS_ENTRIES.map((entry) => [entry.key, entry]));
|
|
592
619
|
/**
|
|
@@ -642,6 +669,9 @@ const CATALOG_EQUATION_KEYS = new Set([
|
|
|
642
669
|
'be-59',
|
|
643
670
|
'be-60',
|
|
644
671
|
'be-63',
|
|
672
|
+
'be-66',
|
|
673
|
+
'be-67',
|
|
674
|
+
'be-68',
|
|
645
675
|
]);
|
|
646
676
|
/**
|
|
647
677
|
* Atlas keys are bridges. A catalog key whose theorem states the catalogued
|