universal-physics-tensor 0.47.1 → 1.0.2
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/LICENSE +21 -21
- package/README.md +405 -383
- package/bin/upt.mjs +7 -1
- package/dist/atlas/benchmark/hybrid-retrieval.d.ts +108 -0
- package/dist/atlas/benchmark/hybrid-retrieval.d.ts.map +1 -0
- package/dist/atlas/benchmark/hybrid-retrieval.js +241 -0
- package/dist/atlas/benchmark/hybrid-retrieval.js.map +1 -0
- package/dist/atlas/catalog-formal-ref.d.ts +24 -0
- package/dist/atlas/catalog-formal-ref.d.ts.map +1 -0
- package/dist/atlas/catalog-formal-ref.js +36 -0
- package/dist/atlas/catalog-formal-ref.js.map +1 -0
- package/dist/atlas/chain-pipeline.d.ts +52 -0
- package/dist/atlas/chain-pipeline.d.ts.map +1 -0
- package/dist/atlas/chain-pipeline.js +176 -0
- package/dist/atlas/chain-pipeline.js.map +1 -0
- package/dist/atlas/composition-table.d.ts +11 -46
- package/dist/atlas/composition-table.d.ts.map +1 -1
- package/dist/atlas/composition-table.js +7 -124
- package/dist/atlas/composition-table.js.map +1 -1
- package/dist/atlas/conventions.d.ts +4 -58
- package/dist/atlas/conventions.d.ts.map +1 -1
- package/dist/atlas/conventions.js +3 -88
- package/dist/atlas/conventions.js.map +1 -1
- package/dist/atlas/derive-evidence.d.ts +50 -3
- package/dist/atlas/derive-evidence.d.ts.map +1 -1
- package/dist/atlas/derive-evidence.js +73 -4
- package/dist/atlas/derive-evidence.js.map +1 -1
- package/dist/atlas/diffusion/bridges-closure.d.ts.map +1 -1
- package/dist/atlas/diffusion/bridges-closure.js +5 -1
- package/dist/atlas/diffusion/bridges-closure.js.map +1 -1
- package/dist/atlas/index.d.ts +9 -7
- package/dist/atlas/index.d.ts.map +1 -1
- package/dist/atlas/index.js +6 -5
- package/dist/atlas/index.js.map +1 -1
- package/dist/atlas/oscillators/bridges-exact.d.ts.map +1 -1
- package/dist/atlas/oscillators/bridges-exact.js +6 -0
- package/dist/atlas/oscillators/bridges-exact.js.map +1 -1
- package/dist/atlas/oscillators/bridges-limits.d.ts +2 -0
- package/dist/atlas/oscillators/bridges-limits.d.ts.map +1 -1
- package/dist/atlas/oscillators/bridges-limits.js +11 -19
- package/dist/atlas/oscillators/bridges-limits.js.map +1 -1
- package/dist/atlas/oscillators/limit-witnesses.d.ts +93 -0
- package/dist/atlas/oscillators/limit-witnesses.d.ts.map +1 -0
- package/dist/atlas/oscillators/limit-witnesses.js +152 -0
- package/dist/atlas/oscillators/limit-witnesses.js.map +1 -0
- package/dist/atlas/oscillators/models.d.ts +2 -1
- package/dist/atlas/oscillators/models.d.ts.map +1 -1
- package/dist/atlas/oscillators/models.js +4 -3
- package/dist/atlas/oscillators/models.js.map +1 -1
- package/dist/atlas/oscillators/norm-transport-witness.d.ts +37 -0
- package/dist/atlas/oscillators/norm-transport-witness.d.ts.map +1 -0
- package/dist/atlas/oscillators/norm-transport-witness.js +58 -0
- package/dist/atlas/oscillators/norm-transport-witness.js.map +1 -0
- package/dist/atlas/oscillators/norm-transport.d.ts +44 -0
- package/dist/atlas/oscillators/norm-transport.d.ts.map +1 -0
- package/dist/atlas/oscillators/norm-transport.js +66 -0
- package/dist/atlas/oscillators/norm-transport.js.map +1 -0
- package/dist/atlas/oscillators/norms.d.ts +11 -0
- package/dist/atlas/oscillators/norms.d.ts.map +1 -0
- package/dist/atlas/oscillators/norms.js +11 -0
- package/dist/atlas/oscillators/norms.js.map +1 -0
- package/dist/atlas/oscillators/pendulum-motion.d.ts +38 -0
- package/dist/atlas/oscillators/pendulum-motion.d.ts.map +1 -0
- package/dist/atlas/oscillators/pendulum-motion.js +122 -0
- package/dist/atlas/oscillators/pendulum-motion.js.map +1 -0
- package/dist/atlas/oscillators/phase-carriage.d.ts +38 -0
- package/dist/atlas/oscillators/phase-carriage.d.ts.map +1 -0
- package/dist/atlas/oscillators/phase-carriage.js +96 -0
- package/dist/atlas/oscillators/phase-carriage.js.map +1 -0
- package/dist/atlas/oscillators/phase-translation.d.ts +46 -0
- package/dist/atlas/oscillators/phase-translation.d.ts.map +1 -0
- package/dist/atlas/oscillators/phase-translation.js +178 -0
- package/dist/atlas/oscillators/phase-translation.js.map +1 -0
- package/dist/atlas/oscillators/position-translation.d.ts +59 -0
- package/dist/atlas/oscillators/position-translation.d.ts.map +1 -0
- package/dist/atlas/oscillators/position-translation.js +254 -0
- package/dist/atlas/oscillators/position-translation.js.map +1 -0
- package/dist/atlas/path-bound.d.ts +126 -9
- package/dist/atlas/path-bound.d.ts.map +1 -1
- package/dist/atlas/path-bound.js +372 -23
- package/dist/atlas/path-bound.js.map +1 -1
- package/dist/atlas/physjs-ref.d.ts +141 -0
- package/dist/atlas/physjs-ref.d.ts.map +1 -0
- package/dist/atlas/physjs-ref.js +878 -0
- package/dist/atlas/physjs-ref.js.map +1 -0
- package/dist/atlas/proof-target.d.ts +32 -0
- package/dist/atlas/proof-target.d.ts.map +1 -0
- package/dist/atlas/proof-target.js +140 -0
- package/dist/atlas/proof-target.js.map +1 -0
- package/dist/atlas/regime.d.ts +12 -136
- package/dist/atlas/regime.d.ts.map +1 -1
- package/dist/atlas/regime.js +8 -254
- package/dist/atlas/regime.js.map +1 -1
- package/dist/atlas/serialize.d.ts.map +1 -1
- package/dist/atlas/serialize.js +25 -0
- package/dist/atlas/serialize.js.map +1 -1
- package/dist/atlas/translation-registry.d.ts +22 -0
- package/dist/atlas/translation-registry.d.ts.map +1 -0
- package/dist/atlas/translation-registry.js +31 -0
- package/dist/atlas/translation-registry.js.map +1 -0
- package/dist/atlas/translation.d.ts +116 -0
- package/dist/atlas/translation.d.ts.map +1 -0
- package/dist/atlas/translation.js +34 -0
- package/dist/atlas/translation.js.map +1 -0
- package/dist/atlas/types.d.ts +74 -240
- package/dist/atlas/types.d.ts.map +1 -1
- package/dist/atlas/types.js +5 -37
- package/dist/atlas/types.js.map +1 -1
- package/dist/atlas/waves/bridges-closure.d.ts.map +1 -1
- package/dist/atlas/waves/bridges-closure.js +4 -0
- package/dist/atlas/waves/bridges-closure.js.map +1 -1
- package/dist/atlas/waves/bridges.d.ts.map +1 -1
- package/dist/atlas/waves/bridges.js +3 -0
- package/dist/atlas/waves/bridges.js.map +1 -1
- package/dist/atlas/waves/models.js +1 -1
- package/dist/atlas/waves/models.js.map +1 -1
- package/dist/atlas/witness-dominance.d.ts +50 -0
- package/dist/atlas/witness-dominance.d.ts.map +1 -0
- package/dist/atlas/witness-dominance.js +86 -0
- package/dist/atlas/witness-dominance.js.map +1 -0
- package/dist/atlas/witness-specs.d.ts +30 -0
- package/dist/atlas/witness-specs.d.ts.map +1 -1
- package/dist/atlas/witness-specs.js +107 -0
- package/dist/atlas/witness-specs.js.map +1 -1
- package/dist/bridges/be53-yang-mills-confrontation.d.ts +81 -0
- package/dist/bridges/be53-yang-mills-confrontation.d.ts.map +1 -0
- package/dist/bridges/be53-yang-mills-confrontation.js +110 -0
- package/dist/bridges/be53-yang-mills-confrontation.js.map +1 -0
- package/dist/bridges/be63-chandrasekhar-mass.d.ts.map +1 -1
- package/dist/bridges/be63-chandrasekhar-mass.js +1 -3
- package/dist/bridges/be63-chandrasekhar-mass.js.map +1 -1
- package/dist/bridges/confrontation-coverage.d.ts +5 -61
- package/dist/bridges/confrontation-coverage.d.ts.map +1 -1
- package/dist/bridges/confrontation-coverage.js +5 -70
- package/dist/bridges/confrontation-coverage.js.map +1 -1
- package/dist/bridges/confrontations.d.ts +1 -1
- package/dist/bridges/confrontations.d.ts.map +1 -1
- package/dist/bridges/confrontations.js +291 -3
- package/dist/bridges/confrontations.js.map +1 -1
- package/dist/bridges/equations/be-13-einstein-trace.d.ts +2 -3
- package/dist/bridges/equations/be-13-einstein-trace.d.ts.map +1 -1
- package/dist/bridges/equations/be-13-einstein-trace.js +2 -3
- package/dist/bridges/equations/be-13-einstein-trace.js.map +1 -1
- package/dist/bridges/equations/be-38-mond.d.ts +7 -5
- package/dist/bridges/equations/be-38-mond.d.ts.map +1 -1
- package/dist/bridges/equations/be-38-mond.js +7 -5
- package/dist/bridges/equations/be-38-mond.js.map +1 -1
- package/dist/bridges/equations/be-42-hawking-temperature.d.ts +3 -0
- package/dist/bridges/equations/be-42-hawking-temperature.d.ts.map +1 -1
- package/dist/bridges/equations/be-42-hawking-temperature.js +8 -1
- package/dist/bridges/equations/be-42-hawking-temperature.js.map +1 -1
- package/dist/bridges/equations/be-53-yang-mills-beta.d.ts +21 -0
- package/dist/bridges/equations/be-53-yang-mills-beta.d.ts.map +1 -1
- package/dist/bridges/equations/be-53-yang-mills-beta.js +12 -0
- package/dist/bridges/equations/be-53-yang-mills-beta.js.map +1 -1
- package/dist/bridges/evaluator-inputs.d.ts +21 -0
- package/dist/bridges/evaluator-inputs.d.ts.map +1 -0
- package/dist/bridges/evaluator-inputs.js +75 -0
- package/dist/bridges/evaluator-inputs.js.map +1 -0
- package/dist/bridges/evaluators.d.ts +46 -0
- package/dist/bridges/evaluators.d.ts.map +1 -1
- package/dist/bridges/evaluators.js +57 -16
- package/dist/bridges/evaluators.js.map +1 -1
- package/dist/bridges/gravitational-lensing.d.ts +1 -1
- package/dist/bridges/gravitational-lensing.js +1 -1
- package/dist/bridges/index.d.ts +3 -2
- package/dist/bridges/index.d.ts.map +1 -1
- package/dist/bridges/index.js +15 -14
- package/dist/bridges/index.js.map +1 -1
- package/dist/bridges/observations/types.d.ts +110 -2
- package/dist/bridges/observations/types.d.ts.map +1 -1
- package/dist/bridges/observations/types.js +29 -0
- package/dist/bridges/observations/types.js.map +1 -1
- package/dist/bridges/perihelion-precession.d.ts +1 -1
- package/dist/bridges/perihelion-precession.js +1 -1
- package/dist/bridges/tensor-index.d.ts +39 -0
- package/dist/bridges/tensor-index.d.ts.map +1 -0
- package/dist/bridges/tensor-index.js +66 -0
- package/dist/bridges/tensor-index.js.map +1 -0
- package/dist/canonical/canonical-equation.d.ts +1 -1
- package/dist/canonical/canonical-equation.d.ts.map +1 -1
- package/dist/canonical/entries/atomic.d.ts.map +1 -1
- package/dist/canonical/entries/atomic.js +32 -10
- package/dist/canonical/entries/atomic.js.map +1 -1
- package/dist/canonical/entries/dimensional-classics.js +2 -2
- package/dist/canonical/entries/dimensional-classics.js.map +1 -1
- package/dist/canonical/entries/mechanics.d.ts.map +1 -1
- package/dist/canonical/entries/mechanics.js +10 -6
- package/dist/canonical/entries/mechanics.js.map +1 -1
- package/dist/canonical/entries/relativity.d.ts.map +1 -1
- package/dist/canonical/entries/relativity.js +41 -8
- package/dist/canonical/entries/relativity.js.map +1 -1
- package/dist/canonical/entries/thermo-nuclear-cosmo.js +5 -5
- package/dist/canonical/entries/thermo-nuclear-cosmo.js.map +1 -1
- package/dist/canonical/linkage.d.ts.map +1 -1
- package/dist/canonical/linkage.js +31 -28
- package/dist/canonical/linkage.js.map +1 -1
- package/dist/canonical/normal-form.d.ts +17 -0
- package/dist/canonical/normal-form.d.ts.map +1 -1
- package/dist/canonical/normal-form.js +21 -4
- package/dist/canonical/normal-form.js.map +1 -1
- package/dist/canonical/structural.d.ts +84 -0
- package/dist/canonical/structural.d.ts.map +1 -0
- package/dist/canonical/structural.js +107 -0
- package/dist/canonical/structural.js.map +1 -0
- package/dist/cases/brownian-sphere.d.ts +68 -0
- package/dist/cases/brownian-sphere.d.ts.map +1 -0
- package/dist/cases/brownian-sphere.js +353 -0
- package/dist/cases/brownian-sphere.js.map +1 -0
- package/dist/cases/damped-resonator.d.ts +23 -0
- package/dist/cases/damped-resonator.d.ts.map +1 -0
- package/dist/cases/damped-resonator.js +224 -0
- package/dist/cases/damped-resonator.js.map +1 -0
- package/dist/cases/index.d.ts +11 -0
- package/dist/cases/index.d.ts.map +1 -0
- package/dist/cases/index.js +29 -0
- package/dist/cases/index.js.map +1 -0
- package/dist/cases/kepler-rv.d.ts +13 -0
- package/dist/cases/kepler-rv.d.ts.map +1 -0
- package/dist/cases/kepler-rv.js +168 -0
- package/dist/cases/kepler-rv.js.map +1 -0
- package/dist/cases/lumped-cooling.d.ts +46 -0
- package/dist/cases/lumped-cooling.d.ts.map +1 -0
- package/dist/cases/lumped-cooling.js +261 -0
- package/dist/cases/lumped-cooling.js.map +1 -0
- package/dist/cases/quadrature.d.ts +14 -0
- package/dist/cases/quadrature.d.ts.map +1 -0
- package/dist/cases/quadrature.js +41 -0
- package/dist/cases/quadrature.js.map +1 -0
- package/dist/cases/resistor-noise.d.ts +14 -0
- package/dist/cases/resistor-noise.d.ts.map +1 -0
- package/dist/cases/resistor-noise.js +210 -0
- package/dist/cases/resistor-noise.js.map +1 -0
- package/dist/cases/skin-depth.d.ts +21 -0
- package/dist/cases/skin-depth.d.ts.map +1 -0
- package/dist/cases/skin-depth.js +174 -0
- package/dist/cases/skin-depth.js.map +1 -0
- package/dist/cases/types.d.ts +115 -0
- package/dist/cases/types.d.ts.map +1 -0
- package/dist/cases/types.js +20 -0
- package/dist/cases/types.js.map +1 -0
- package/dist/cli/commands/_atlas-map.d.ts +409 -0
- package/dist/cli/commands/_atlas-map.d.ts.map +1 -0
- package/dist/cli/commands/_atlas-map.js +1014 -0
- package/dist/cli/commands/_atlas-map.js.map +1 -0
- package/dist/cli/commands/_atlas-route.d.ts +111 -0
- package/dist/cli/commands/_atlas-route.d.ts.map +1 -0
- package/dist/cli/commands/_atlas-route.js +140 -0
- package/dist/cli/commands/_atlas-route.js.map +1 -0
- package/dist/cli/commands/_discovery-opts.d.ts.map +1 -1
- package/dist/cli/commands/_discovery-opts.js +10 -1
- package/dist/cli/commands/_discovery-opts.js.map +1 -1
- package/dist/cli/commands/atlas.d.ts +20 -0
- package/dist/cli/commands/atlas.d.ts.map +1 -1
- package/dist/cli/commands/atlas.js +333 -19
- 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 +12 -3
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/cli/commands/axes.js +4 -4
- package/dist/cli/commands/candidates.d.ts.map +1 -1
- package/dist/cli/commands/candidates.js +3 -2
- 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 +39 -10
- package/dist/cli/commands/canonical.js.map +1 -1
- package/dist/cli/commands/confront.d.ts.map +1 -1
- package/dist/cli/commands/confront.js +210 -28
- 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 +5 -4
- package/dist/cli/commands/connectors.js.map +1 -1
- package/dist/cli/commands/coverage.js +3 -3
- package/dist/cli/commands/derive.d.ts.map +1 -1
- package/dist/cli/commands/derive.js +22 -9
- 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 +149 -32
- 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 +87 -17
- package/dist/cli/commands/eval.js.map +1 -1
- package/dist/cli/commands/evaluate.d.ts +30 -0
- package/dist/cli/commands/evaluate.d.ts.map +1 -1
- package/dist/cli/commands/evaluate.js +441 -25
- 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 +38 -11
- package/dist/cli/commands/explain.js.map +1 -1
- package/dist/cli/commands/frontier.d.ts +3 -0
- package/dist/cli/commands/frontier.d.ts.map +1 -0
- package/dist/cli/commands/frontier.js +28 -0
- package/dist/cli/commands/frontier.js.map +1 -0
- package/dist/cli/commands/ground.d.ts.map +1 -1
- package/dist/cli/commands/ground.js +37 -12
- package/dist/cli/commands/ground.js.map +1 -1
- package/dist/cli/commands/index.d.ts +5 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +5 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/map.d.ts +8 -0
- package/dist/cli/commands/map.d.ts.map +1 -1
- package/dist/cli/commands/map.js +385 -57
- package/dist/cli/commands/map.js.map +1 -1
- package/dist/cli/commands/metric.d.ts +3 -0
- package/dist/cli/commands/metric.d.ts.map +1 -0
- package/dist/cli/commands/metric.js +136 -0
- package/dist/cli/commands/metric.js.map +1 -0
- package/dist/cli/commands/path.d.ts +109 -1
- package/dist/cli/commands/path.d.ts.map +1 -1
- package/dist/cli/commands/path.js +1019 -109
- 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 +3 -2
- 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 +3 -2
- package/dist/cli/commands/priority.js.map +1 -1
- package/dist/cli/commands/probe.d.ts +7 -0
- package/dist/cli/commands/probe.d.ts.map +1 -1
- package/dist/cli/commands/probe.js +234 -52
- 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 +17 -6
- package/dist/cli/commands/recover.js.map +1 -1
- package/dist/cli/commands/regime.d.ts +1 -1
- package/dist/cli/commands/regime.d.ts.map +1 -1
- package/dist/cli/commands/regime.js +134 -33
- package/dist/cli/commands/regime.js.map +1 -1
- package/dist/cli/commands/retrieve.d.ts +3 -0
- package/dist/cli/commands/retrieve.d.ts.map +1 -0
- package/dist/cli/commands/retrieve.js +65 -0
- package/dist/cli/commands/retrieve.js.map +1 -0
- package/dist/cli/commands/search.d.ts +3 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +70 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/commands/symbolic.d.ts.map +1 -1
- package/dist/cli/commands/symbolic.js +107 -16
- package/dist/cli/commands/symbolic.js.map +1 -1
- package/dist/cli/commands/testplan.d.ts +3 -0
- package/dist/cli/commands/testplan.d.ts.map +1 -0
- package/dist/cli/commands/testplan.js +131 -0
- package/dist/cli/commands/testplan.js.map +1 -0
- package/dist/cli/conventions.d.ts +22 -0
- package/dist/cli/conventions.d.ts.map +1 -0
- package/dist/cli/conventions.js +48 -0
- package/dist/cli/conventions.js.map +1 -0
- package/dist/cli/euler-guard.d.ts +9 -0
- package/dist/cli/euler-guard.d.ts.map +1 -0
- package/dist/cli/euler-guard.js +11 -0
- package/dist/cli/euler-guard.js.map +1 -0
- package/dist/cli/eval-numbers.d.ts +26 -0
- package/dist/cli/eval-numbers.d.ts.map +1 -0
- package/dist/cli/eval-numbers.js +48 -0
- package/dist/cli/eval-numbers.js.map +1 -0
- package/dist/cli/expr-print.d.ts +25 -0
- package/dist/cli/expr-print.d.ts.map +1 -0
- package/dist/cli/expr-print.js +123 -0
- package/dist/cli/expr-print.js.map +1 -0
- package/dist/cli/graphs.d.ts +26 -0
- package/dist/cli/graphs.d.ts.map +1 -1
- package/dist/cli/graphs.js +19 -0
- package/dist/cli/graphs.js.map +1 -1
- package/dist/cli/main.d.ts +4 -10
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +370 -167
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/map-evidence.d.ts +47 -0
- package/dist/cli/map-evidence.d.ts.map +1 -0
- package/dist/cli/map-evidence.js +53 -0
- package/dist/cli/map-evidence.js.map +1 -0
- package/dist/cli/output.d.ts +21 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +5 -1
- package/dist/cli/output.js.map +1 -1
- package/dist/{composition → cli}/poster-source.d.ts +3 -2
- package/dist/cli/poster-source.d.ts.map +1 -0
- package/dist/{composition → cli}/poster-source.js +2 -1
- package/dist/cli/poster-source.js.map +1 -0
- package/dist/cli/record-reach.d.ts +44 -0
- package/dist/cli/record-reach.d.ts.map +1 -0
- package/dist/cli/record-reach.js +228 -0
- package/dist/cli/record-reach.js.map +1 -0
- package/dist/cli/record-tables.d.ts +38 -0
- package/dist/cli/record-tables.d.ts.map +1 -0
- package/dist/cli/record-tables.js +110 -0
- package/dist/cli/record-tables.js.map +1 -0
- package/dist/cli/record.d.ts +141 -0
- package/dist/cli/record.d.ts.map +1 -0
- package/dist/cli/record.js +612 -0
- package/dist/cli/record.js.map +1 -0
- package/dist/cli/search-index.d.ts +56 -0
- package/dist/cli/search-index.d.ts.map +1 -0
- package/dist/cli/search-index.js +190 -0
- package/dist/cli/search-index.js.map +1 -0
- package/dist/cli/statuses.d.ts +25 -0
- package/dist/cli/statuses.d.ts.map +1 -0
- package/dist/cli/statuses.js +276 -0
- package/dist/cli/statuses.js.map +1 -0
- package/dist/cli/version.d.ts +8 -0
- package/dist/cli/version.d.ts.map +1 -1
- package/dist/cli/version.js +32 -1
- package/dist/cli/version.js.map +1 -1
- package/dist/cli-api.d.ts +34 -16
- package/dist/cli-api.d.ts.map +1 -1
- package/dist/cli-api.js +32 -12
- package/dist/cli-api.js.map +1 -1
- package/dist/composition/audit-coverage.d.ts +70 -0
- package/dist/composition/audit-coverage.d.ts.map +1 -0
- package/dist/composition/audit-coverage.js +80 -0
- package/dist/composition/audit-coverage.js.map +1 -0
- package/dist/composition/bridge-analysis.d.ts.map +1 -1
- package/dist/composition/bridge-analysis.js +2 -1
- package/dist/composition/bridge-analysis.js.map +1 -1
- package/dist/composition/buckingham-filter.d.ts +34 -0
- package/dist/composition/buckingham-filter.d.ts.map +1 -0
- package/dist/composition/buckingham-filter.js +64 -0
- package/dist/composition/buckingham-filter.js.map +1 -0
- package/dist/composition/canonical-compare.d.ts +29 -16
- package/dist/composition/canonical-compare.d.ts.map +1 -1
- package/dist/composition/canonical-compare.js +355 -59
- package/dist/composition/canonical-compare.js.map +1 -1
- package/dist/composition/canonical-graph.d.ts +2 -2
- package/dist/composition/canonical-graph.js +3 -3
- package/dist/composition/canonical-graph.js.map +1 -1
- package/dist/composition/canonical-prefactors.d.ts +24 -1
- package/dist/composition/canonical-prefactors.d.ts.map +1 -1
- package/dist/composition/canonical-prefactors.js +97 -1
- package/dist/composition/canonical-prefactors.js.map +1 -1
- package/dist/composition/catalog-graph.d.ts +4 -4
- package/dist/composition/catalog-graph.d.ts.map +1 -1
- package/dist/composition/catalog-graph.js +6 -4
- package/dist/composition/catalog-graph.js.map +1 -1
- package/dist/composition/chain-candidate.d.ts +43 -0
- package/dist/composition/chain-candidate.d.ts.map +1 -0
- package/dist/composition/chain-candidate.js +56 -0
- package/dist/composition/chain-candidate.js.map +1 -0
- package/dist/composition/chain-match.d.ts +19 -0
- package/dist/composition/chain-match.d.ts.map +1 -0
- package/dist/composition/chain-match.js +10 -0
- package/dist/composition/chain-match.js.map +1 -0
- package/dist/composition/chain-regime.d.ts +34 -0
- package/dist/composition/chain-regime.d.ts.map +1 -0
- package/dist/composition/chain-regime.js +89 -0
- package/dist/composition/chain-regime.js.map +1 -0
- package/dist/composition/compose-symbolic.js +1 -1
- package/dist/composition/compose-symbolic.js.map +1 -1
- package/dist/composition/compose.d.ts +11 -0
- package/dist/composition/compose.d.ts.map +1 -1
- package/dist/composition/compose.js +30 -10
- package/dist/composition/compose.js.map +1 -1
- package/dist/composition/composition-recovery.d.ts +47 -0
- package/dist/composition/composition-recovery.d.ts.map +1 -0
- package/dist/composition/composition-recovery.js +77 -0
- package/dist/composition/composition-recovery.js.map +1 -0
- package/dist/composition/consequence.d.ts +39 -0
- package/dist/composition/consequence.d.ts.map +1 -1
- package/dist/composition/consequence.js +37 -0
- package/dist/composition/consequence.js.map +1 -1
- package/dist/{bridges → composition}/descriptor.d.ts +6 -3
- package/dist/composition/descriptor.d.ts.map +1 -0
- package/dist/{bridges → composition}/descriptor.js +7 -4
- package/dist/composition/descriptor.js.map +1 -0
- package/dist/composition/discovery.d.ts +20 -0
- package/dist/composition/discovery.d.ts.map +1 -1
- package/dist/composition/discovery.js +27 -5
- package/dist/composition/discovery.js.map +1 -1
- package/dist/composition/edge.d.ts +1 -1
- package/dist/composition/edge.d.ts.map +1 -1
- package/dist/composition/edge.js.map +1 -1
- package/dist/composition/edges/_catalog-helpers.d.ts +4 -0
- package/dist/composition/edges/_catalog-helpers.d.ts.map +1 -1
- package/dist/composition/edges/_catalog-helpers.js +15 -0
- package/dist/composition/edges/_catalog-helpers.js.map +1 -1
- package/dist/composition/edges/calibration.d.ts +0 -9
- package/dist/composition/edges/calibration.d.ts.map +1 -1
- package/dist/composition/edges/calibration.js +85 -0
- package/dist/composition/edges/calibration.js.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.d.ts +0 -9
- package/dist/composition/edges/catalog-condensed-matter.d.ts.map +1 -1
- package/dist/composition/edges/catalog-condensed-matter.js +32 -1
- package/dist/composition/edges/catalog-condensed-matter.js.map +1 -1
- package/dist/composition/edges/catalog-fields.d.ts.map +1 -1
- package/dist/composition/edges/catalog-fields.js +2 -1
- package/dist/composition/edges/catalog-fields.js.map +1 -1
- package/dist/composition/edges/catalog-full.d.ts +4 -2
- package/dist/composition/edges/catalog-full.d.ts.map +1 -1
- package/dist/composition/edges/catalog-full.js +4 -2
- package/dist/composition/edges/catalog-full.js.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts +0 -10
- package/dist/composition/edges/catalog-gravitation-cosmology.d.ts.map +1 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.js +31 -1
- package/dist/composition/edges/catalog-gravitation-cosmology.js.map +1 -1
- package/dist/composition/edges/catalog-quantum.d.ts +0 -10
- package/dist/composition/edges/catalog-quantum.d.ts.map +1 -1
- package/dist/composition/edges/catalog-quantum.js +53 -17
- package/dist/composition/edges/catalog-quantum.js.map +1 -1
- package/dist/composition/edges/catalog-tranche.d.ts +0 -15
- package/dist/composition/edges/catalog-tranche.d.ts.map +1 -1
- package/dist/composition/edges/catalog-tranche.js +70 -16
- package/dist/composition/edges/catalog-tranche.js.map +1 -1
- package/dist/composition/edges/proved-seeds.d.ts +39 -0
- package/dist/composition/edges/proved-seeds.d.ts.map +1 -0
- package/dist/composition/edges/proved-seeds.js +197 -0
- package/dist/composition/edges/proved-seeds.js.map +1 -0
- package/dist/composition/enumerate.d.ts +20 -0
- package/dist/composition/enumerate.d.ts.map +1 -1
- package/dist/composition/enumerate.js +23 -0
- package/dist/composition/enumerate.js.map +1 -1
- package/dist/composition/expr-eval.d.ts +5 -4
- package/dist/composition/expr-eval.d.ts.map +1 -1
- package/dist/composition/expr-eval.js +40 -6
- package/dist/composition/expr-eval.js.map +1 -1
- package/dist/composition/expr-simplify.js +1 -1
- package/dist/composition/expr-simplify.js.map +1 -1
- package/dist/composition/expr-subst.d.ts +2 -1
- package/dist/composition/expr-subst.d.ts.map +1 -1
- package/dist/composition/expr-subst.js +9 -2
- package/dist/composition/expr-subst.js.map +1 -1
- package/dist/composition/frontier-account.d.ts +78 -0
- package/dist/composition/frontier-account.d.ts.map +1 -0
- package/dist/composition/frontier-account.js +127 -0
- package/dist/composition/frontier-account.js.map +1 -0
- package/dist/composition/graph-viz.d.ts +7 -22
- package/dist/composition/graph-viz.d.ts.map +1 -1
- package/dist/composition/graph-viz.js +4 -27
- package/dist/composition/graph-viz.js.map +1 -1
- package/dist/composition/grounding.d.ts +49 -0
- package/dist/composition/grounding.d.ts.map +1 -1
- package/dist/composition/grounding.js +38 -0
- package/dist/composition/grounding.js.map +1 -1
- package/dist/composition/index.d.ts +0 -2
- package/dist/composition/index.d.ts.map +1 -1
- package/dist/composition/index.js +1 -1
- package/dist/composition/index.js.map +1 -1
- package/dist/composition/not-composable-seeds.d.ts +30 -0
- package/dist/composition/not-composable-seeds.d.ts.map +1 -0
- package/dist/composition/not-composable-seeds.js +90 -0
- package/dist/composition/not-composable-seeds.js.map +1 -0
- package/dist/composition/probe/expression-gaps.d.ts +27 -0
- package/dist/composition/probe/expression-gaps.d.ts.map +1 -0
- package/dist/composition/probe/expression-gaps.js +47 -0
- package/dist/composition/probe/expression-gaps.js.map +1 -0
- package/dist/composition/probe/frontier.d.ts +2 -1
- package/dist/composition/probe/frontier.d.ts.map +1 -1
- package/dist/composition/probe/frontier.js +3 -2
- package/dist/composition/probe/frontier.js.map +1 -1
- package/dist/composition/probe/index.d.ts +4 -1
- package/dist/composition/probe/index.d.ts.map +1 -1
- package/dist/composition/probe/index.js +3 -1
- package/dist/composition/probe/index.js.map +1 -1
- package/dist/composition/probe/pipeline.d.ts +2 -0
- package/dist/composition/probe/pipeline.d.ts.map +1 -1
- package/dist/composition/probe/pipeline.js +6 -2
- package/dist/composition/probe/pipeline.js.map +1 -1
- package/dist/composition/probe/problem.d.ts +7 -0
- package/dist/composition/probe/problem.d.ts.map +1 -1
- package/dist/composition/probe/problem.js +15 -5
- package/dist/composition/probe/problem.js.map +1 -1
- package/dist/composition/probe/search-budget.d.ts.map +1 -1
- package/dist/composition/probe/search-budget.js +6 -2
- package/dist/composition/probe/search-budget.js.map +1 -1
- package/dist/composition/probe/study.d.ts +340 -0
- package/dist/composition/probe/study.d.ts.map +1 -0
- package/dist/composition/probe/study.js +1519 -0
- package/dist/composition/probe/study.js.map +1 -0
- package/dist/composition/proposed-bridges.js +1 -1
- package/dist/composition/proposed-bridges.js.map +1 -1
- package/dist/composition/quantities/_dims.d.ts +6 -0
- package/dist/composition/quantities/_dims.d.ts.map +1 -1
- package/dist/composition/quantities/_dims.js +6 -0
- package/dist/composition/quantities/_dims.js.map +1 -1
- package/dist/composition/quantities/condensed-matter.d.ts +16 -0
- package/dist/composition/quantities/condensed-matter.d.ts.map +1 -1
- package/dist/composition/quantities/condensed-matter.js +43 -2
- package/dist/composition/quantities/condensed-matter.js.map +1 -1
- package/dist/composition/quantities/fields.d.ts +10 -0
- package/dist/composition/quantities/fields.d.ts.map +1 -1
- package/dist/composition/quantities/fields.js +37 -2
- package/dist/composition/quantities/fields.js.map +1 -1
- package/dist/composition/quantities/gravitation-cosmology.d.ts +4 -0
- package/dist/composition/quantities/gravitation-cosmology.d.ts.map +1 -1
- package/dist/composition/quantities/gravitation-cosmology.js +14 -0
- package/dist/composition/quantities/gravitation-cosmology.js.map +1 -1
- package/dist/composition/quantities/quantum.d.ts +2 -0
- package/dist/composition/quantities/quantum.d.ts.map +1 -1
- package/dist/composition/quantities/quantum.js +7 -0
- package/dist/composition/quantities/quantum.js.map +1 -1
- package/dist/composition/quantities.d.ts +4 -16
- package/dist/composition/quantities.d.ts.map +1 -1
- package/dist/composition/quantities.js +4 -16
- package/dist/composition/quantities.js.map +1 -1
- package/dist/composition/retrodiction.d.ts.map +1 -1
- package/dist/composition/retrodiction.js +6 -2
- package/dist/composition/retrodiction.js.map +1 -1
- package/dist/composition/uncertainty.d.ts +1 -1
- package/dist/composition/uncertainty.d.ts.map +1 -1
- package/dist/composition/user-equation.d.ts +79 -8
- package/dist/composition/user-equation.d.ts.map +1 -1
- package/dist/composition/user-equation.js +224 -32
- package/dist/composition/user-equation.js.map +1 -1
- package/dist/core/constants.d.ts +17 -5
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +17 -5
- package/dist/core/constants.js.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +2 -1
- package/dist/core/types.js.map +1 -1
- package/dist/dimensional/curvature.d.ts +7 -56
- package/dist/dimensional/curvature.d.ts.map +1 -1
- package/dist/dimensional/curvature.js +7 -76
- package/dist/dimensional/curvature.js.map +1 -1
- package/dist/dimensional/dimension-spec.d.ts +7 -1
- package/dist/dimensional/dimension-spec.d.ts.map +1 -1
- package/dist/dimensional/dimension-spec.js +131 -3
- package/dist/dimensional/dimension-spec.js.map +1 -1
- package/dist/dimensional/formula-names.d.ts +30 -0
- package/dist/dimensional/formula-names.d.ts.map +1 -0
- package/dist/dimensional/formula-names.js +37 -0
- package/dist/dimensional/formula-names.js.map +1 -0
- package/dist/dimensional/natural-units.d.ts +33 -0
- package/dist/dimensional/natural-units.d.ts.map +1 -0
- package/dist/dimensional/natural-units.js +58 -0
- package/dist/dimensional/natural-units.js.map +1 -0
- package/dist/{composition → dimensional}/symbolic-constants.d.ts +21 -2
- package/dist/dimensional/symbolic-constants.d.ts.map +1 -0
- package/dist/dimensional/symbolic-constants.js +122 -0
- package/dist/dimensional/symbolic-constants.js.map +1 -0
- package/dist/dimensional/unit-convention.d.ts +30 -0
- package/dist/dimensional/unit-convention.d.ts.map +1 -0
- package/dist/dimensional/unit-convention.js +60 -0
- package/dist/dimensional/unit-convention.js.map +1 -0
- package/dist/dimensional/units.d.ts +43 -0
- package/dist/dimensional/units.d.ts.map +1 -0
- package/dist/dimensional/units.js +197 -0
- package/dist/dimensional/units.js.map +1 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/numerical/bianchi-residual.d.ts +55 -0
- package/dist/numerical/bianchi-residual.d.ts.map +1 -0
- package/dist/numerical/bianchi-residual.js +79 -0
- package/dist/numerical/bianchi-residual.js.map +1 -0
- package/dist/numerical/binding-value.d.ts +67 -0
- package/dist/numerical/binding-value.d.ts.map +1 -0
- package/dist/numerical/binding-value.js +349 -0
- package/dist/numerical/binding-value.js.map +1 -0
- package/dist/numerical/connection-lowering-helpers.d.ts.map +1 -1
- package/dist/numerical/connection-lowering-helpers.js +13 -26
- package/dist/numerical/connection-lowering-helpers.js.map +1 -1
- package/dist/numerical/curvature-lowering-helpers.d.ts.map +1 -1
- package/dist/numerical/curvature-lowering-helpers.js +9 -0
- package/dist/numerical/curvature-lowering-helpers.js.map +1 -1
- package/dist/numerical/float64-engine.d.ts.map +1 -1
- package/dist/numerical/float64-engine.js +23 -16
- package/dist/numerical/float64-engine.js.map +1 -1
- package/dist/numerical/formula-dimension.d.ts +14 -0
- package/dist/numerical/formula-dimension.d.ts.map +1 -1
- package/dist/numerical/formula-dimension.js +56 -9
- package/dist/numerical/formula-dimension.js.map +1 -1
- package/dist/numerical/formula-mathts.d.ts.map +1 -1
- package/dist/numerical/formula-mathts.js +75 -6
- package/dist/numerical/formula-mathts.js.map +1 -1
- package/dist/numerical/formula.d.ts +33 -0
- package/dist/numerical/formula.d.ts.map +1 -1
- package/dist/numerical/formula.js +75 -6
- package/dist/numerical/formula.js.map +1 -1
- package/dist/numerical/spacetime-metrics.d.ts +243 -0
- package/dist/numerical/spacetime-metrics.d.ts.map +1 -0
- package/dist/numerical/spacetime-metrics.js +1056 -0
- package/dist/numerical/spacetime-metrics.js.map +1 -0
- package/dist/relations/category.d.ts +38 -0
- package/dist/relations/category.d.ts.map +1 -0
- package/dist/relations/category.js +23 -0
- package/dist/relations/category.js.map +1 -0
- package/dist/relations/composition-table.d.ts +61 -0
- package/dist/relations/composition-table.d.ts.map +1 -0
- package/dist/relations/composition-table.js +140 -0
- package/dist/relations/composition-table.js.map +1 -0
- package/dist/relations/conventions.d.ts +63 -0
- package/dist/relations/conventions.d.ts.map +1 -0
- package/dist/relations/conventions.js +93 -0
- package/dist/relations/conventions.js.map +1 -0
- package/dist/relations/regime.d.ts +159 -0
- package/dist/relations/regime.d.ts.map +1 -0
- package/dist/relations/regime.js +304 -0
- package/dist/relations/regime.js.map +1 -0
- package/dist/relations/types.d.ts +257 -0
- package/dist/relations/types.d.ts.map +1 -0
- package/dist/relations/types.js +35 -0
- package/dist/relations/types.js.map +1 -0
- package/package.json +166 -163
- package/dist/bridges/descriptor.d.ts.map +0 -1
- package/dist/bridges/descriptor.js.map +0 -1
- package/dist/composition/poster-source.d.ts.map +0 -1
- package/dist/composition/poster-source.js.map +0 -1
- package/dist/composition/symbolic-constants.d.ts.map +0 -1
- package/dist/composition/symbolic-constants.js +0 -65
- package/dist/composition/symbolic-constants.js.map +0 -1
package/bin/upt.mjs
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* upt — thin launcher. All logic lives in src/cli/ (compiled to dist/cli/).
|
|
4
4
|
* This shim only resolves dist/, guards the not-built case, and maps the
|
|
5
5
|
* returned code onto process.exitCode (NOT process.exit — a hard exit can
|
|
6
|
-
* truncate piped stdout).
|
|
6
|
+
* truncate piped stdout). The one exception is a reader that closed the pipe
|
|
7
|
+
* (`upt map | head -1`): nothing more can be delivered, so the run ends quietly.
|
|
7
8
|
*/
|
|
8
9
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
9
10
|
import { dirname, join } from 'node:path';
|
|
@@ -11,6 +12,11 @@ import { dirname, join } from 'node:path';
|
|
|
11
12
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
12
13
|
const entry = pathToFileURL(join(here, '..', 'dist', 'cli', 'main.js')).href;
|
|
13
14
|
|
|
15
|
+
process.stdout.on('error', (err) => {
|
|
16
|
+
if (err && err.code === 'EPIPE') process.exit(0);
|
|
17
|
+
throw err;
|
|
18
|
+
});
|
|
19
|
+
|
|
14
20
|
let main;
|
|
15
21
|
try {
|
|
16
22
|
main = await import(entry);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Optional embedding retrieval. An embedder proposes an order. `rankByStructure`
|
|
3
|
+
* decides what is accepted. Cosine similarity does not enter that score.
|
|
4
|
+
*
|
|
5
|
+
* The Ollama implementation speaks HTTP to a local process. Nothing here
|
|
6
|
+
* imports an embedding library, and nothing calls out of process unless a
|
|
7
|
+
* caller asks for embeddings and supplies that implementation.
|
|
8
|
+
*
|
|
9
|
+
* The query form is the one registered in pre-registration Amendment 11.
|
|
10
|
+
* Corpus records are embedded as their text, with no instruction prefix.
|
|
11
|
+
*
|
|
12
|
+
* @module atlas/benchmark/hybrid-retrieval
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
import { type CorpusRecord, type RetrievalQuery } from './baselines.js';
|
|
16
|
+
/** The instruction line registered with the embedding condition. @internal */
|
|
17
|
+
export declare const EMBEDDING_INSTRUCTION = "Given a physics claim, retrieve the established physical relation that the claim restates or misuses";
|
|
18
|
+
/** qwen3-embedding:4b, the model the design names. The package does not install it. @internal */
|
|
19
|
+
export declare const OLLAMA_EMBEDDING_MODEL = "qwen3-embedding:4b";
|
|
20
|
+
/**
|
|
21
|
+
* Length stored in the frozen vector file
|
|
22
|
+
* `docs/research/criterion3/embeddings/qwen3-embedding-4b.json`.
|
|
23
|
+
* A live reply of another length is not that file's vector.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare const FROZEN_VECTOR_DIMS = 2560;
|
|
27
|
+
/** SHA-256 of that frozen file, as registered in Amendment 11. @internal */
|
|
28
|
+
export declare const FROZEN_VECTOR_SHA256 = "8fd79d2c6aaaf95c67f9a29ceb5fe4b88b42970c8e514d98c72c00a2c519cbdc";
|
|
29
|
+
/**
|
|
30
|
+
* How long a local Ollama call may run before it counts as not finishing.
|
|
31
|
+
* The design names that outcome and does not name a duration.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const OLLAMA_TIMEOUT_MS = 5000;
|
|
35
|
+
/** What the caller hears when embeddings were not asked for. @internal */
|
|
36
|
+
export declare const ATLAS_ONLY_NOTE = "Embeddings were not requested. This is the atlas search.";
|
|
37
|
+
/** What the caller hears when an embedding order was computed and then not accepted. @internal */
|
|
38
|
+
export declare const PROPOSAL_NOTE = "The embedding order is a proposal, not evidence and not an acceptance. rankByStructure accepted a separate order. Cosine similarity does not enter that score.";
|
|
39
|
+
declare const REASON_TEXT: {
|
|
40
|
+
readonly 'process-not-there': 'the process is not there';
|
|
41
|
+
readonly 'model-not-there': 'the model is not there';
|
|
42
|
+
readonly 'reply-not-a-vector': 'the reply is not a vector, or its length is not the length stored in the frozen file';
|
|
43
|
+
readonly 'call-did-not-finish': 'the call does not finish';
|
|
44
|
+
};
|
|
45
|
+
/** Why an embedding request fell back to the atlas search. @internal */
|
|
46
|
+
export type EmbeddingFallbackReason = keyof typeof REASON_TEXT;
|
|
47
|
+
/** An embedding request that cannot be used. The atlas search still answers. @internal */
|
|
48
|
+
export declare class EmbeddingUnavailable extends Error {
|
|
49
|
+
readonly reason: EmbeddingFallbackReason;
|
|
50
|
+
constructor(reason: EmbeddingFallbackReason);
|
|
51
|
+
}
|
|
52
|
+
/** One vector per string, every vector the same length. @internal */
|
|
53
|
+
export type Embedder = (texts: readonly string[]) => Promise<readonly (readonly number[])[]>;
|
|
54
|
+
/** `Instruct: …` newline `Query: …`, the registered query form. @internal */
|
|
55
|
+
export declare function queryInput(claim: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* A pure function of the text. The same text is the same vector.
|
|
58
|
+
* `v = [sum of char codes, sum of (index+1) times char code]`.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare function stubVector(text: string): readonly number[];
|
|
62
|
+
/** The stub embedder. It does not open a socket. @internal */
|
|
63
|
+
export declare const stubEmbedder: Embedder;
|
|
64
|
+
/** Cosine similarity. Unequal lengths are not a similarity. @internal */
|
|
65
|
+
export declare function cosine(a: ArrayLike<number>, b: ArrayLike<number>): number;
|
|
66
|
+
/**
|
|
67
|
+
* Best cosine first. A tie breaks by record id, so the order does not depend
|
|
68
|
+
* on which vector was computed last.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export declare function rankByCosine(query: ArrayLike<number>, records: readonly {
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly vector: ArrayLike<number>;
|
|
74
|
+
}[]): string[];
|
|
75
|
+
/** Decode a little-endian float32 vector stored as base64, the frozen file's encoding. @internal */
|
|
76
|
+
export declare function decodeFloat32(encoded: string): Float32Array;
|
|
77
|
+
/** The live canonical registry as retrieval records. Text is the name and the latex. @internal */
|
|
78
|
+
export declare function canonicalRetrievalCorpus(): CorpusRecord[];
|
|
79
|
+
export interface OllamaEmbedderOptions {
|
|
80
|
+
readonly baseUrl: string;
|
|
81
|
+
readonly model?: string;
|
|
82
|
+
readonly expectedDims?: number;
|
|
83
|
+
readonly timeoutMs?: number;
|
|
84
|
+
readonly fetchImpl?: (url: string, init?: RequestInit) => Promise<Response>;
|
|
85
|
+
}
|
|
86
|
+
/** A local Ollama embedder. Off unless a caller constructs it. @internal */
|
|
87
|
+
export declare function ollamaEmbedder(options: OllamaEmbedderOptions): Embedder;
|
|
88
|
+
/** Both orders, kept apart. `accepted` is always `rankByStructure`. @internal */
|
|
89
|
+
export interface HybridRetrieval {
|
|
90
|
+
readonly embeddings: 'not-requested' | 'used' | 'fallback';
|
|
91
|
+
readonly fallback: EmbeddingFallbackReason | null;
|
|
92
|
+
readonly proposals: readonly string[] | null;
|
|
93
|
+
readonly accepted: readonly string[];
|
|
94
|
+
readonly note: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Atlas search, optionally after an embedding proposal. A fallback is the
|
|
98
|
+
* atlas answer plus a named reason. It does not throw.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
export declare function retrieveHybrid(args: {
|
|
102
|
+
readonly query: RetrievalQuery;
|
|
103
|
+
readonly corpus: readonly CorpusRecord[];
|
|
104
|
+
readonly embeddings?: boolean;
|
|
105
|
+
readonly embedder?: Embedder;
|
|
106
|
+
}): Promise<HybridRetrieval>;
|
|
107
|
+
export {};
|
|
108
|
+
//# sourceMappingURL=hybrid-retrieval.d.ts.map
|
|
@@ -0,0 +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,s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;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7E;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,QAAQ,CAkDvE;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,eAAe,GAAG,MAAM,GAAG,UAAU,CAAC;IAC3D,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAiBD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CAC9B,GAAG,OAAO,CAAC,eAAe,CAAC,CAuC3B"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Optional embedding retrieval. An embedder proposes an order. `rankByStructure`
|
|
3
|
+
* decides what is accepted. Cosine similarity does not enter that score.
|
|
4
|
+
*
|
|
5
|
+
* The Ollama implementation speaks HTTP to a local process. Nothing here
|
|
6
|
+
* imports an embedding library, and nothing calls out of process unless a
|
|
7
|
+
* caller asks for embeddings and supplies that implementation.
|
|
8
|
+
*
|
|
9
|
+
* The query form is the one registered in pre-registration Amendment 11.
|
|
10
|
+
* Corpus records are embedded as their text, with no instruction prefix.
|
|
11
|
+
*
|
|
12
|
+
* @module atlas/benchmark/hybrid-retrieval
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
import { CANONICAL_EQUATIONS } from '../../canonical/registry.js';
|
|
16
|
+
import { rankByStructure } from './baselines.js';
|
|
17
|
+
/** The instruction line registered with the embedding condition. @internal */
|
|
18
|
+
export const EMBEDDING_INSTRUCTION = 'Given a physics claim, retrieve the established physical relation that the claim restates or misuses';
|
|
19
|
+
/** qwen3-embedding:4b, the model the design names. The package does not install it. @internal */
|
|
20
|
+
export const OLLAMA_EMBEDDING_MODEL = 'qwen3-embedding:4b';
|
|
21
|
+
/**
|
|
22
|
+
* Length stored in the frozen vector file
|
|
23
|
+
* `docs/research/criterion3/embeddings/qwen3-embedding-4b.json`.
|
|
24
|
+
* A live reply of another length is not that file's vector.
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export const FROZEN_VECTOR_DIMS = 2560;
|
|
28
|
+
/** SHA-256 of that frozen file, as registered in Amendment 11. @internal */
|
|
29
|
+
export const FROZEN_VECTOR_SHA256 = '8fd79d2c6aaaf95c67f9a29ceb5fe4b88b42970c8e514d98c72c00a2c519cbdc';
|
|
30
|
+
/**
|
|
31
|
+
* How long a local Ollama call may run before it counts as not finishing.
|
|
32
|
+
* The design names that outcome and does not name a duration.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export const OLLAMA_TIMEOUT_MS = 5000;
|
|
36
|
+
/** What the caller hears when embeddings were not asked for. @internal */
|
|
37
|
+
export const ATLAS_ONLY_NOTE = 'Embeddings were not requested. This is the atlas search.';
|
|
38
|
+
/** What the caller hears when an embedding order was computed and then not accepted. @internal */
|
|
39
|
+
export const PROPOSAL_NOTE = 'The embedding order is a proposal, not evidence and not an acceptance. rankByStructure accepted a separate order. Cosine similarity does not enter that score.';
|
|
40
|
+
const REASON_TEXT = {
|
|
41
|
+
'process-not-there': 'the process is not there',
|
|
42
|
+
'model-not-there': 'the model is not there',
|
|
43
|
+
'reply-not-a-vector': 'the reply is not a vector, or its length is not the length stored in the frozen file',
|
|
44
|
+
'call-did-not-finish': 'the call does not finish',
|
|
45
|
+
};
|
|
46
|
+
/** An embedding request that cannot be used. The atlas search still answers. @internal */
|
|
47
|
+
export class EmbeddingUnavailable extends Error {
|
|
48
|
+
reason;
|
|
49
|
+
constructor(reason) {
|
|
50
|
+
super(REASON_TEXT[reason]);
|
|
51
|
+
this.name = 'EmbeddingUnavailable';
|
|
52
|
+
this.reason = reason;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/** `Instruct: …` newline `Query: …`, the registered query form. @internal */
|
|
56
|
+
export function queryInput(claim) {
|
|
57
|
+
return `Instruct: ${EMBEDDING_INSTRUCTION}\nQuery: ${claim}`;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A pure function of the text. The same text is the same vector.
|
|
61
|
+
* `v = [sum of char codes, sum of (index+1) times char code]`.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export function stubVector(text) {
|
|
65
|
+
let sum = 0;
|
|
66
|
+
let weighted = 0;
|
|
67
|
+
for (let i = 0; i < text.length; i++) {
|
|
68
|
+
const code = text.charCodeAt(i);
|
|
69
|
+
sum += code;
|
|
70
|
+
weighted += (i + 1) * code;
|
|
71
|
+
}
|
|
72
|
+
return [sum, weighted];
|
|
73
|
+
}
|
|
74
|
+
/** The stub embedder. It does not open a socket. @internal */
|
|
75
|
+
export const stubEmbedder = async (texts) => texts.map((text) => stubVector(text));
|
|
76
|
+
/** Cosine similarity. Unequal lengths are not a similarity. @internal */
|
|
77
|
+
export function cosine(a, b) {
|
|
78
|
+
if (a.length !== b.length) {
|
|
79
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
80
|
+
}
|
|
81
|
+
let dot = 0;
|
|
82
|
+
let na = 0;
|
|
83
|
+
let nb = 0;
|
|
84
|
+
for (let i = 0; i < a.length; i++) {
|
|
85
|
+
const x = a[i];
|
|
86
|
+
const y = b[i];
|
|
87
|
+
dot += x * y;
|
|
88
|
+
na += x * x;
|
|
89
|
+
nb += y * y;
|
|
90
|
+
}
|
|
91
|
+
if (na === 0 || nb === 0)
|
|
92
|
+
return 0;
|
|
93
|
+
return dot / Math.sqrt(na * nb);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Best cosine first. A tie breaks by record id, so the order does not depend
|
|
97
|
+
* on which vector was computed last.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export function rankByCosine(query, records) {
|
|
101
|
+
return records
|
|
102
|
+
.map((r) => ({ id: r.id, s: cosine(query, r.vector) }))
|
|
103
|
+
.sort((a, b) => (b.s !== a.s ? b.s - a.s : a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
|
|
104
|
+
.map((x) => x.id);
|
|
105
|
+
}
|
|
106
|
+
/** Decode a little-endian float32 vector stored as base64, the frozen file's encoding. @internal */
|
|
107
|
+
export function decodeFloat32(encoded) {
|
|
108
|
+
const bytes = Buffer.from(encoded, 'base64');
|
|
109
|
+
if (bytes.byteLength === 0 || bytes.byteLength % 4 !== 0) {
|
|
110
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
111
|
+
}
|
|
112
|
+
return new Float32Array(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength));
|
|
113
|
+
}
|
|
114
|
+
/** The live canonical registry as retrieval records. Text is the name and the latex. @internal */
|
|
115
|
+
export function canonicalRetrievalCorpus() {
|
|
116
|
+
return CANONICAL_EQUATIONS.map((equation) => ({
|
|
117
|
+
id: equation.id,
|
|
118
|
+
text: `${equation.name}. ${equation.formula_latex}`,
|
|
119
|
+
...(equation.scalarAst === undefined ? {} : { expr: equation.scalarAst }),
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
/** A local Ollama embedder. Off unless a caller constructs it. @internal */
|
|
123
|
+
export function ollamaEmbedder(options) {
|
|
124
|
+
const model = options.model ?? OLLAMA_EMBEDDING_MODEL;
|
|
125
|
+
const expectedDims = options.expectedDims ?? FROZEN_VECTOR_DIMS;
|
|
126
|
+
const timeoutMs = options.timeoutMs ?? OLLAMA_TIMEOUT_MS;
|
|
127
|
+
const fetchImpl = options.fetchImpl ?? fetch;
|
|
128
|
+
const base = options.baseUrl.replace(/\/$/, '');
|
|
129
|
+
return async (texts) => {
|
|
130
|
+
const controller = new AbortController();
|
|
131
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
132
|
+
try {
|
|
133
|
+
let response;
|
|
134
|
+
try {
|
|
135
|
+
response = await fetchImpl(`${base}/api/embed`, {
|
|
136
|
+
method: 'POST',
|
|
137
|
+
headers: { 'content-type': 'application/json' },
|
|
138
|
+
body: JSON.stringify({ model, input: [...texts] }),
|
|
139
|
+
signal: controller.signal,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
if (controller.signal.aborted)
|
|
144
|
+
throw new EmbeddingUnavailable('call-did-not-finish');
|
|
145
|
+
throw new EmbeddingUnavailable('process-not-there');
|
|
146
|
+
}
|
|
147
|
+
if (response.status === 404)
|
|
148
|
+
throw new EmbeddingUnavailable('model-not-there');
|
|
149
|
+
let body;
|
|
150
|
+
try {
|
|
151
|
+
body = await response.json();
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
155
|
+
}
|
|
156
|
+
if (!response.ok) {
|
|
157
|
+
const message = typeof body === 'object' && body !== null ? JSON.stringify(body) : '';
|
|
158
|
+
if (/not found/i.test(message))
|
|
159
|
+
throw new EmbeddingUnavailable('model-not-there');
|
|
160
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
161
|
+
}
|
|
162
|
+
const embeddings = body.embeddings;
|
|
163
|
+
if (!Array.isArray(embeddings) || embeddings.length !== texts.length) {
|
|
164
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
165
|
+
}
|
|
166
|
+
const vectors = [];
|
|
167
|
+
for (const row of embeddings) {
|
|
168
|
+
if (!Array.isArray(row) || row.length !== expectedDims || row.some((x) => typeof x !== 'number' || !Number.isFinite(x))) {
|
|
169
|
+
throw new EmbeddingUnavailable('reply-not-a-vector');
|
|
170
|
+
}
|
|
171
|
+
vectors.push(row);
|
|
172
|
+
}
|
|
173
|
+
return vectors;
|
|
174
|
+
}
|
|
175
|
+
finally {
|
|
176
|
+
clearTimeout(timer);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function noteFor(base, query) {
|
|
181
|
+
if (query.expr !== undefined)
|
|
182
|
+
return base;
|
|
183
|
+
return `${base} The claim has no expression, so the structural score is zero and the atlas order is by id.`;
|
|
184
|
+
}
|
|
185
|
+
function fallbackResult(query, accepted, reason) {
|
|
186
|
+
return {
|
|
187
|
+
embeddings: 'fallback',
|
|
188
|
+
fallback: reason,
|
|
189
|
+
proposals: null,
|
|
190
|
+
accepted,
|
|
191
|
+
note: noteFor(`Embeddings were requested. ${REASON_TEXT[reason]}. This is the atlas search.`, query),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Atlas search, optionally after an embedding proposal. A fallback is the
|
|
196
|
+
* atlas answer plus a named reason. It does not throw.
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
export async function retrieveHybrid(args) {
|
|
200
|
+
const accepted = rankByStructure(args.query, args.corpus);
|
|
201
|
+
if (args.embeddings !== true) {
|
|
202
|
+
return {
|
|
203
|
+
embeddings: 'not-requested',
|
|
204
|
+
fallback: null,
|
|
205
|
+
proposals: null,
|
|
206
|
+
accepted,
|
|
207
|
+
note: noteFor(ATLAS_ONLY_NOTE, args.query),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
if (args.embedder === undefined) {
|
|
211
|
+
return fallbackResult(args.query, accepted, 'process-not-there');
|
|
212
|
+
}
|
|
213
|
+
const inputs = [queryInput(args.query.text), ...args.corpus.map((record) => record.text)];
|
|
214
|
+
let vectors;
|
|
215
|
+
try {
|
|
216
|
+
vectors = await args.embedder(inputs);
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
if (error instanceof EmbeddingUnavailable)
|
|
220
|
+
return fallbackResult(args.query, accepted, error.reason);
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
if (vectors.length !== inputs.length)
|
|
224
|
+
return fallbackResult(args.query, accepted, 'reply-not-a-vector');
|
|
225
|
+
try {
|
|
226
|
+
const proposals = rankByCosine(vectors[0], args.corpus.map((record, index) => ({ id: record.id, vector: vectors[index + 1] })));
|
|
227
|
+
return {
|
|
228
|
+
embeddings: 'used',
|
|
229
|
+
fallback: null,
|
|
230
|
+
proposals,
|
|
231
|
+
accepted,
|
|
232
|
+
note: noteFor(PROPOSAL_NOTE, args.query),
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
if (error instanceof EmbeddingUnavailable)
|
|
237
|
+
return fallbackResult(args.query, accepted, error.reason);
|
|
238
|
+
throw error;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=hybrid-retrieval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hybrid-retrieval.js","sourceRoot":"","sources":["../../../src/atlas/benchmark/hybrid-retrieval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAAe,EAA0C,MAAM,gBAAgB,CAAC;AAEzF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,qBAAqB,GAChC,sGAAsG,CAAC;AAEzG,iGAAi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AAC;SACzC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,oBAAoB;YAAE,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrG,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog formal references, keyed by bridge id.
|
|
3
|
+
*
|
|
4
|
+
* These used to be `formalRef: physjsFormalRef('be-N')` on the catalog
|
|
5
|
+
* rows in `src/bridges/index.ts`. That import was an upward edge. The
|
|
6
|
+
* catalog row does not keep a second copy. A reader that needs the
|
|
7
|
+
* reference calls {@link catalogFormalRef}.
|
|
8
|
+
*
|
|
9
|
+
* The reference is built by `physjsFormalRef`, so kind, url, and covers
|
|
10
|
+
* are the manifest's, not a hand copy. An id this map does not contain
|
|
11
|
+
* resolves to no reference. Evidence tags stay derived: this module
|
|
12
|
+
* does not store a tag.
|
|
13
|
+
*
|
|
14
|
+
* @module atlas/catalog-formal-ref
|
|
15
|
+
*/
|
|
16
|
+
import type { FormalRef } from '../relations/types.js';
|
|
17
|
+
/**
|
|
18
|
+
* The reviewed PhysJS reference for a catalog id, or `undefined` when
|
|
19
|
+
* this overlay has none.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function catalogFormalRef(id: number): FormalRef | undefined;
|
|
24
|
+
//# sourceMappingURL=catalog-formal-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-formal-ref.d.ts","sourceRoot":"","sources":["../../src/atlas/catalog-formal-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAiBvD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAElE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog formal references, keyed by bridge id.
|
|
3
|
+
*
|
|
4
|
+
* These used to be `formalRef: physjsFormalRef('be-N')` on the catalog
|
|
5
|
+
* rows in `src/bridges/index.ts`. That import was an upward edge. The
|
|
6
|
+
* catalog row does not keep a second copy. A reader that needs the
|
|
7
|
+
* reference calls {@link catalogFormalRef}.
|
|
8
|
+
*
|
|
9
|
+
* The reference is built by `physjsFormalRef`, so kind, url, and covers
|
|
10
|
+
* are the manifest's, not a hand copy. An id this map does not contain
|
|
11
|
+
* resolves to no reference. Evidence tags stay derived: this module
|
|
12
|
+
* does not store a tag.
|
|
13
|
+
*
|
|
14
|
+
* @module atlas/catalog-formal-ref
|
|
15
|
+
*/
|
|
16
|
+
import { physjsFormalRef } from './physjs-ref.js';
|
|
17
|
+
/**
|
|
18
|
+
* Catalog ids that had a `physjsFormalRef` call on the bridge row.
|
|
19
|
+
* File order of those calls. `be-20` is absent: its Friedmann corollary
|
|
20
|
+
* stays nested on `be-13`.
|
|
21
|
+
*/
|
|
22
|
+
const CATALOG_FORMAL_REF_IDS = [
|
|
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,
|
|
25
|
+
];
|
|
26
|
+
const BY_ID = new Map(CATALOG_FORMAL_REF_IDS.map((id) => [id, physjsFormalRef(`be-${id}`)]));
|
|
27
|
+
/**
|
|
28
|
+
* The reviewed PhysJS reference for a catalog id, or `undefined` when
|
|
29
|
+
* this overlay has none.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function catalogFormalRef(id) {
|
|
34
|
+
return BY_ID.get(id);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=catalog-formal-ref.js.map
|
|
@@ -0,0 +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;CACtC,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"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal bridge-discovery pipeline.
|
|
3
|
+
*
|
|
4
|
+
* Seeds, then seed-filtered symbolic enumeration, the Buckingham filter,
|
|
5
|
+
* the structural classifier, the regime join gate, the chain order,
|
|
6
|
+
* and the proof-target stub.
|
|
7
|
+
* A confirmation reports the catalog id. A restatement reports the
|
|
8
|
+
* pre-declared canonical equation. A regime mismatch is recorded and
|
|
9
|
+
* is not a stub. Any other survivor is a statement skeleton. Nothing
|
|
10
|
+
* is written into the catalog.
|
|
11
|
+
*
|
|
12
|
+
* No command calls this. `discovery.ts` and the probe are not inputs.
|
|
13
|
+
*
|
|
14
|
+
* @module atlas/chain-pipeline
|
|
15
|
+
*/
|
|
16
|
+
import type { BridgeEdge } from '../composition/edge.js';
|
|
17
|
+
import { type ChainRegimeMismatch } from '../composition/chain-regime.js';
|
|
18
|
+
/** A chain whose normal form matches a catalog equation. Nothing was written. @internal */
|
|
19
|
+
export interface ChainConfirmationRecord {
|
|
20
|
+
readonly kind: 'confirmation';
|
|
21
|
+
readonly catalogId: number;
|
|
22
|
+
readonly edgeIds: readonly string[];
|
|
23
|
+
}
|
|
24
|
+
/** A chain the registry pre-declared with `restatesBridge`. Not a new equation. @internal */
|
|
25
|
+
export interface ChainRestatementRecord {
|
|
26
|
+
readonly kind: 'restatement';
|
|
27
|
+
readonly canonicalId: string;
|
|
28
|
+
readonly restatesBridge: string;
|
|
29
|
+
readonly edgeIds: readonly string[];
|
|
30
|
+
}
|
|
31
|
+
/** A provisional chain, as a Lean statement skeleton. @internal */
|
|
32
|
+
export interface ChainStubRecord {
|
|
33
|
+
readonly kind: 'stub';
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly edgeIds: readonly string[];
|
|
36
|
+
readonly text: string;
|
|
37
|
+
}
|
|
38
|
+
/** One ordered survivor, or a recorded regime rejection. @internal */
|
|
39
|
+
export type ChainPipelineResult = ChainConfirmationRecord | ChainRestatementRecord | ChainStubRecord | ChainRegimeMismatch;
|
|
40
|
+
/**
|
|
41
|
+
* Run the pipeline on `edges`.
|
|
42
|
+
*
|
|
43
|
+
* A manifest key whose derived kind is not `bridge` is not a premise.
|
|
44
|
+
* A chain the Buckingham filter drops is absent. A confirmation or a
|
|
45
|
+
* restatement is not sent to the regime gate. Any other mismatch is
|
|
46
|
+
* `rejected: regime mismatch` and is not a stub. The catalog array is
|
|
47
|
+
* not modified.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export declare function runChainPipeline(edges: readonly BridgeEdge[]): readonly ChainPipelineResult[];
|
|
52
|
+
//# sourceMappingURL=chain-pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-pipeline.d.ts","sourceRoot":"","sources":["../../src/atlas/chain-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAUzD,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gCAAgC,CAAC;AAKxC,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;AA6HxB;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,mBAAmB,EAAE,CA2B7F"}
|