universal-physics-tensor 0.45.2 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -27
- package/dist/atlas/applicability.d.ts +108 -0
- package/dist/atlas/applicability.d.ts.map +1 -0
- package/dist/atlas/applicability.js +301 -0
- package/dist/atlas/applicability.js.map +1 -0
- package/dist/atlas/association.d.ts +92 -0
- package/dist/atlas/association.d.ts.map +1 -0
- package/dist/atlas/association.js +112 -0
- package/dist/atlas/association.js.map +1 -0
- package/dist/atlas/benchmark/backend-shapes.d.ts +47 -0
- package/dist/atlas/benchmark/backend-shapes.d.ts.map +1 -0
- package/dist/atlas/benchmark/backend-shapes.js +58 -0
- package/dist/atlas/benchmark/backend-shapes.js.map +1 -0
- package/dist/atlas/benchmark/baselines.d.ts +64 -0
- package/dist/atlas/benchmark/baselines.d.ts.map +1 -0
- package/dist/atlas/benchmark/baselines.js +112 -0
- package/dist/atlas/benchmark/baselines.js.map +1 -0
- package/dist/atlas/benchmark/leakage.d.ts +56 -0
- package/dist/atlas/benchmark/leakage.d.ts.map +1 -0
- package/dist/atlas/benchmark/leakage.js +100 -0
- package/dist/atlas/benchmark/leakage.js.map +1 -0
- package/dist/atlas/benchmark/loader.d.ts +56 -0
- package/dist/atlas/benchmark/loader.d.ts.map +1 -0
- package/dist/atlas/benchmark/loader.js +104 -0
- package/dist/atlas/benchmark/loader.js.map +1 -0
- package/dist/atlas/benchmark/run-atlas.d.ts +72 -0
- package/dist/atlas/benchmark/run-atlas.d.ts.map +1 -0
- package/dist/atlas/benchmark/run-atlas.js +210 -0
- package/dist/atlas/benchmark/run-atlas.js.map +1 -0
- package/dist/atlas/benchmark/stats.d.ts +90 -0
- package/dist/atlas/benchmark/stats.d.ts.map +1 -0
- package/dist/atlas/benchmark/stats.js +159 -0
- package/dist/atlas/benchmark/stats.js.map +1 -0
- package/dist/atlas/benchmark/study.d.ts +120 -0
- package/dist/atlas/benchmark/study.d.ts.map +1 -0
- package/dist/atlas/benchmark/study.js +192 -0
- package/dist/atlas/benchmark/study.js.map +1 -0
- package/dist/atlas/benchmark/types.d.ts +79 -0
- package/dist/atlas/benchmark/types.d.ts.map +1 -0
- package/dist/atlas/benchmark/types.js +46 -0
- package/dist/atlas/benchmark/types.js.map +1 -0
- package/dist/atlas/composition-table.d.ts +55 -0
- package/dist/atlas/composition-table.d.ts.map +1 -0
- package/dist/atlas/composition-table.js +133 -0
- package/dist/atlas/composition-table.js.map +1 -0
- package/dist/atlas/conventions.d.ts +63 -0
- package/dist/atlas/conventions.d.ts.map +1 -0
- package/dist/atlas/conventions.js +93 -0
- package/dist/atlas/conventions.js.map +1 -0
- package/dist/atlas/coverage.d.ts +93 -0
- package/dist/atlas/coverage.d.ts.map +1 -0
- package/dist/atlas/coverage.js +69 -0
- package/dist/atlas/coverage.js.map +1 -0
- package/dist/atlas/derivation.d.ts +137 -0
- package/dist/atlas/derivation.d.ts.map +1 -0
- package/dist/atlas/derivation.js +190 -0
- package/dist/atlas/derivation.js.map +1 -0
- package/dist/atlas/derive-evidence.d.ts +218 -0
- package/dist/atlas/derive-evidence.d.ts.map +1 -0
- package/dist/atlas/derive-evidence.js +225 -0
- package/dist/atlas/derive-evidence.js.map +1 -0
- package/dist/atlas/diffusion/bridges-closure.d.ts +63 -0
- package/dist/atlas/diffusion/bridges-closure.d.ts.map +1 -0
- package/dist/atlas/diffusion/bridges-closure.js +324 -0
- package/dist/atlas/diffusion/bridges-closure.js.map +1 -0
- package/dist/atlas/diffusion/bridges.d.ts +36 -0
- package/dist/atlas/diffusion/bridges.d.ts.map +1 -0
- package/dist/atlas/diffusion/bridges.js +226 -0
- package/dist/atlas/diffusion/bridges.js.map +1 -0
- package/dist/atlas/diffusion/dimensions.d.ts +21 -0
- package/dist/atlas/diffusion/dimensions.d.ts.map +1 -0
- package/dist/atlas/diffusion/dimensions.js +21 -0
- package/dist/atlas/diffusion/dimensions.js.map +1 -0
- package/dist/atlas/diffusion/index.d.ts +16 -0
- package/dist/atlas/diffusion/index.d.ts.map +1 -0
- package/dist/atlas/diffusion/index.js +23 -0
- package/dist/atlas/diffusion/index.js.map +1 -0
- package/dist/atlas/diffusion/models.d.ts +24 -0
- package/dist/atlas/diffusion/models.d.ts.map +1 -0
- package/dist/atlas/diffusion/models.js +139 -0
- package/dist/atlas/diffusion/models.js.map +1 -0
- package/dist/atlas/diffusion/numerics.d.ts +181 -0
- package/dist/atlas/diffusion/numerics.d.ts.map +1 -0
- package/dist/atlas/diffusion/numerics.js +251 -0
- package/dist/atlas/diffusion/numerics.js.map +1 -0
- package/dist/atlas/error-algebra.d.ts +52 -0
- package/dist/atlas/error-algebra.d.ts.map +1 -0
- package/dist/atlas/error-algebra.js +55 -0
- package/dist/atlas/error-algebra.js.map +1 -0
- package/dist/atlas/export.d.ts +48 -0
- package/dist/atlas/export.d.ts.map +1 -0
- package/dist/atlas/export.js +106 -0
- package/dist/atlas/export.js.map +1 -0
- package/dist/atlas/families.d.ts +14 -0
- package/dist/atlas/families.d.ts.map +1 -0
- package/dist/atlas/families.js +20 -0
- package/dist/atlas/families.js.map +1 -0
- package/dist/atlas/index.d.ts +90 -0
- package/dist/atlas/index.d.ts.map +1 -0
- package/dist/atlas/index.js +69 -0
- package/dist/atlas/index.js.map +1 -0
- package/dist/atlas/link-prediction.d.ts +71 -0
- package/dist/atlas/link-prediction.d.ts.map +1 -0
- package/dist/atlas/link-prediction.js +128 -0
- package/dist/atlas/link-prediction.js.map +1 -0
- package/dist/atlas/model.d.ts +70 -0
- package/dist/atlas/model.d.ts.map +1 -0
- package/dist/atlas/model.js +26 -0
- package/dist/atlas/model.js.map +1 -0
- package/dist/atlas/oscillators/bridges-coarse.d.ts +71 -0
- package/dist/atlas/oscillators/bridges-coarse.d.ts.map +1 -0
- package/dist/atlas/oscillators/bridges-coarse.js +146 -0
- package/dist/atlas/oscillators/bridges-coarse.js.map +1 -0
- package/dist/atlas/oscillators/bridges-exact.d.ts +70 -0
- package/dist/atlas/oscillators/bridges-exact.d.ts.map +1 -0
- package/dist/atlas/oscillators/bridges-exact.js +227 -0
- package/dist/atlas/oscillators/bridges-exact.js.map +1 -0
- package/dist/atlas/oscillators/bridges-limits.d.ts +118 -0
- package/dist/atlas/oscillators/bridges-limits.d.ts.map +1 -0
- package/dist/atlas/oscillators/bridges-limits.js +342 -0
- package/dist/atlas/oscillators/bridges-limits.js.map +1 -0
- package/dist/atlas/oscillators/dimensions.d.ts +34 -0
- package/dist/atlas/oscillators/dimensions.d.ts.map +1 -0
- package/dist/atlas/oscillators/dimensions.js +34 -0
- package/dist/atlas/oscillators/dimensions.js.map +1 -0
- package/dist/atlas/oscillators/index.d.ts +38 -0
- package/dist/atlas/oscillators/index.d.ts.map +1 -0
- package/dist/atlas/oscillators/index.js +37 -0
- package/dist/atlas/oscillators/index.js.map +1 -0
- package/dist/atlas/oscillators/models.d.ts +25 -0
- package/dist/atlas/oscillators/models.d.ts.map +1 -0
- package/dist/atlas/oscillators/models.js +160 -0
- package/dist/atlas/oscillators/models.js.map +1 -0
- package/dist/atlas/oscillators/rejections.d.ts +21 -0
- package/dist/atlas/oscillators/rejections.d.ts.map +1 -0
- package/dist/atlas/oscillators/rejections.js +54 -0
- package/dist/atlas/oscillators/rejections.js.map +1 -0
- package/dist/atlas/path-bound.d.ts +143 -0
- package/dist/atlas/path-bound.d.ts.map +1 -0
- package/dist/atlas/path-bound.js +268 -0
- package/dist/atlas/path-bound.js.map +1 -0
- package/dist/atlas/poster/associations.d.ts +66 -0
- package/dist/atlas/poster/associations.d.ts.map +1 -0
- package/dist/atlas/poster/associations.js +90 -0
- package/dist/atlas/poster/associations.js.map +1 -0
- package/dist/atlas/poster/derivations.d.ts +156 -0
- package/dist/atlas/poster/derivations.d.ts.map +1 -0
- package/dist/atlas/poster/derivations.js +430 -0
- package/dist/atlas/poster/derivations.js.map +1 -0
- package/dist/atlas/poster/statements.d.ts +198 -0
- package/dist/atlas/poster/statements.d.ts.map +1 -0
- package/dist/atlas/poster/statements.js +365 -0
- package/dist/atlas/poster/statements.js.map +1 -0
- package/dist/atlas/public.d.ts +26 -0
- package/dist/atlas/public.d.ts.map +1 -0
- package/dist/atlas/public.js +21 -0
- package/dist/atlas/public.js.map +1 -0
- package/dist/atlas/regime.d.ts +171 -0
- package/dist/atlas/regime.d.ts.map +1 -0
- package/dist/atlas/regime.js +309 -0
- package/dist/atlas/regime.js.map +1 -0
- package/dist/atlas/serialize.d.ts +50 -0
- package/dist/atlas/serialize.d.ts.map +1 -0
- package/dist/atlas/serialize.js +180 -0
- package/dist/atlas/serialize.js.map +1 -0
- package/dist/atlas/statement.d.ts +165 -0
- package/dist/atlas/statement.d.ts.map +1 -0
- package/dist/atlas/statement.js +176 -0
- package/dist/atlas/statement.js.map +1 -0
- package/dist/atlas/types.d.ts +308 -0
- package/dist/atlas/types.d.ts.map +1 -0
- package/dist/atlas/types.js +61 -0
- package/dist/atlas/types.js.map +1 -0
- package/dist/atlas/waves/bridges-closure.d.ts +39 -0
- package/dist/atlas/waves/bridges-closure.d.ts.map +1 -0
- package/dist/atlas/waves/bridges-closure.js +223 -0
- package/dist/atlas/waves/bridges-closure.js.map +1 -0
- package/dist/atlas/waves/bridges.d.ts +49 -0
- package/dist/atlas/waves/bridges.d.ts.map +1 -0
- package/dist/atlas/waves/bridges.js +265 -0
- package/dist/atlas/waves/bridges.js.map +1 -0
- package/dist/atlas/waves/index.d.ts +16 -0
- package/dist/atlas/waves/index.d.ts.map +1 -0
- package/dist/atlas/waves/index.js +23 -0
- package/dist/atlas/waves/index.js.map +1 -0
- package/dist/atlas/waves/models.d.ts +29 -0
- package/dist/atlas/waves/models.d.ts.map +1 -0
- package/dist/atlas/waves/models.js +127 -0
- package/dist/atlas/waves/models.js.map +1 -0
- package/dist/atlas/waves/numerics.d.ts +149 -0
- package/dist/atlas/waves/numerics.d.ts.map +1 -0
- package/dist/atlas/waves/numerics.js +218 -0
- package/dist/atlas/waves/numerics.js.map +1 -0
- package/dist/atlas/witness-artifact.d.ts +65 -0
- package/dist/atlas/witness-artifact.d.ts.map +1 -0
- package/dist/atlas/witness-artifact.js +78 -0
- package/dist/atlas/witness-artifact.js.map +1 -0
- package/dist/atlas/witness-numeric.d.ts +81 -0
- package/dist/atlas/witness-numeric.d.ts.map +1 -0
- package/dist/atlas/witness-numeric.js +105 -0
- package/dist/atlas/witness-numeric.js.map +1 -0
- package/dist/atlas/witness-result.d.ts +77 -0
- package/dist/atlas/witness-result.d.ts.map +1 -0
- package/dist/atlas/witness-result.js +39 -0
- package/dist/atlas/witness-result.js.map +1 -0
- package/dist/atlas/witness-specs.d.ts +110 -0
- package/dist/atlas/witness-specs.d.ts.map +1 -0
- package/dist/atlas/witness-specs.js +372 -0
- package/dist/atlas/witness-specs.js.map +1 -0
- package/dist/atlas/witness-symbolic.d.ts +79 -0
- package/dist/atlas/witness-symbolic.d.ts.map +1 -0
- package/dist/atlas/witness-symbolic.js +140 -0
- package/dist/atlas/witness-symbolic.js.map +1 -0
- package/dist/atlas/witnesses/quantum-support.d.ts +50 -0
- package/dist/atlas/witnesses/quantum-support.d.ts.map +1 -0
- package/dist/atlas/witnesses/quantum-support.js +48 -0
- package/dist/atlas/witnesses/quantum-support.js.map +1 -0
- package/dist/bridges/be11-decoherence-confrontation.js.map +1 -1
- package/dist/bridges/be21-kss-confrontation.js.map +1 -1
- package/dist/bridges/be23-planckian-confrontation.js.map +1 -1
- package/dist/bridges/be35-bootstrap-confrontation.js.map +1 -1
- package/dist/bridges/be36-gw170817-confrontation.js.map +1 -1
- package/dist/bridges/be37-cassini-confrontation.js.map +1 -1
- package/dist/bridges/be48-collapse-confrontation.js.map +1 -1
- package/dist/bridges/be51-lensing-confrontation.js.map +1 -1
- package/dist/bridges/be52-mercury-confrontation.js.map +1 -1
- package/dist/bridges/be55-quantum-hall-confrontation.js.map +1 -1
- package/dist/bridges/be56-casimir-confrontation.js.map +1 -1
- package/dist/bridges/be58-johnson-nyquist-confrontation.js.map +1 -1
- package/dist/bridges/be59-ac-josephson-confrontation.js.map +1 -1
- package/dist/bridges/be60-fractional-qh-confrontation.js.map +1 -1
- package/dist/bridges/be61-wiedemann-franz-confrontation.js.map +1 -1
- package/dist/bridges/be62-bcs-gap-confrontation.js.map +1 -1
- package/dist/bridges/be63-chandrasekhar-mass-confrontation.js.map +1 -1
- package/dist/bridges/be64-eddington-luminosity-confrontation.js.map +1 -1
- package/dist/bridges/be65-jeans-mass-confrontation.js.map +1 -1
- package/dist/bridges/bridge-equations.d.ts +2 -1
- package/dist/bridges/bridge-equations.d.ts.map +1 -1
- package/dist/bridges/bridge-equations.js +3 -2
- package/dist/bridges/bridge-equations.js.map +1 -1
- package/dist/bridges/catalog-adapter.d.ts.map +1 -1
- package/dist/bridges/catalog-adapter.js.map +1 -1
- package/dist/bridges/equations/_be-helpers.d.ts +2 -2
- package/dist/bridges/equations/_be-helpers.js +2 -2
- package/dist/bridges/equations/be-20-vacuum-energy.js.map +1 -1
- package/dist/bridges/equations/be-35-conformal-bootstrap.d.ts +88 -58
- package/dist/bridges/equations/be-35-conformal-bootstrap.d.ts.map +1 -1
- package/dist/bridges/equations/be-35-conformal-bootstrap.js +102 -62
- package/dist/bridges/equations/be-35-conformal-bootstrap.js.map +1 -1
- package/dist/bridges/equations/be-48-grw-localization.d.ts +9 -8
- package/dist/bridges/equations/be-48-grw-localization.d.ts.map +1 -1
- package/dist/bridges/equations/be-48-grw-localization.js +9 -8
- package/dist/bridges/equations/be-48-grw-localization.js.map +1 -1
- package/dist/bridges/gravitational-lensing.d.ts +10 -0
- package/dist/bridges/gravitational-lensing.d.ts.map +1 -1
- package/dist/bridges/gravitational-lensing.js.map +1 -1
- package/dist/bridges/index.d.ts +125 -7
- package/dist/bridges/index.d.ts.map +1 -1
- package/dist/bridges/index.js +483 -20
- package/dist/bridges/index.js.map +1 -1
- package/dist/bridges/perihelion-precession.d.ts +10 -0
- package/dist/bridges/perihelion-precession.d.ts.map +1 -1
- package/dist/bridges/perihelion-precession.js.map +1 -1
- package/dist/bridges/rhs-registry.js +2 -2
- package/dist/canonical/canonical-equation.d.ts +15 -0
- package/dist/canonical/canonical-equation.d.ts.map +1 -1
- package/dist/canonical/entries/_l1-build.d.ts +1 -1
- package/dist/canonical/entries/_l1-build.d.ts.map +1 -1
- package/dist/canonical/entries/atomic.d.ts.map +1 -1
- package/dist/canonical/entries/atomic.js +23 -0
- package/dist/canonical/entries/atomic.js.map +1 -1
- package/dist/canonical/entries/nonmonomial.d.ts.map +1 -1
- package/dist/canonical/entries/nonmonomial.js +93 -0
- package/dist/canonical/entries/nonmonomial.js.map +1 -1
- package/dist/canonical/normal-form.js.map +1 -1
- package/dist/canonical/residual.d.ts +28 -0
- package/dist/canonical/residual.d.ts.map +1 -0
- package/dist/canonical/residual.js +31 -0
- package/dist/canonical/residual.js.map +1 -0
- package/dist/cli/command.d.ts +8 -0
- package/dist/cli/command.d.ts.map +1 -1
- package/dist/cli/command.js +10 -0
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/commands/atlas.d.ts +3 -0
- package/dist/cli/commands/atlas.d.ts.map +1 -0
- package/dist/cli/commands/atlas.js +158 -0
- package/dist/cli/commands/atlas.js.map +1 -0
- package/dist/cli/commands/confront.js.map +1 -1
- package/dist/cli/commands/coverage.js +3 -3
- package/dist/cli/commands/index.d.ts +3 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +3 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/map.d.ts.map +1 -1
- package/dist/cli/commands/map.js +161 -27
- package/dist/cli/commands/map.js.map +1 -1
- package/dist/cli/commands/path.d.ts +3 -0
- package/dist/cli/commands/path.d.ts.map +1 -0
- package/dist/cli/commands/path.js +145 -0
- package/dist/cli/commands/path.js.map +1 -0
- package/dist/cli/commands/recover.d.ts.map +1 -1
- package/dist/cli/commands/recover.js +25 -6
- package/dist/cli/commands/recover.js.map +1 -1
- package/dist/cli/commands/regime.d.ts +14 -0
- package/dist/cli/commands/regime.d.ts.map +1 -0
- package/dist/cli/commands/regime.js +189 -0
- package/dist/cli/commands/regime.js.map +1 -0
- package/dist/cli/errors.d.ts.map +1 -1
- package/dist/cli/graphs.d.ts.map +1 -1
- package/dist/cli/graphs.js +5 -1
- package/dist/cli/graphs.js.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +22 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/output.d.ts +6 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js.map +1 -1
- package/dist/cli/version.js.map +1 -1
- package/dist/cli-api.d.ts +16 -0
- package/dist/cli-api.d.ts.map +1 -1
- package/dist/cli-api.js +18 -0
- package/dist/cli-api.js.map +1 -1
- package/dist/composition/axis-audit.js.map +1 -1
- package/dist/composition/bridge-prediction.d.ts.map +1 -1
- package/dist/composition/bridge-prediction.js +0 -0
- package/dist/composition/bridge-prediction.js.map +1 -1
- package/dist/composition/canonical-graph.d.ts +2 -2
- package/dist/composition/canonical-graph.js +2 -2
- package/dist/composition/canonical-graph.js.map +1 -1
- package/dist/composition/compose-symbolic.d.ts.map +1 -1
- package/dist/composition/compose-symbolic.js.map +1 -1
- package/dist/composition/compose.d.ts.map +1 -1
- package/dist/composition/compose.js +80 -1
- package/dist/composition/compose.js.map +1 -1
- package/dist/composition/consequence.js.map +1 -1
- package/dist/composition/discovery.js.map +1 -1
- package/dist/composition/edge.d.ts +64 -0
- package/dist/composition/edge.d.ts.map +1 -1
- package/dist/composition/edge.js +29 -0
- package/dist/composition/edge.js.map +1 -1
- package/dist/composition/edges/calibration.d.ts.map +1 -1
- package/dist/composition/edges/calibration.js +46 -0
- package/dist/composition/edges/calibration.js.map +1 -1
- package/dist/composition/edges/catalog-quantum.d.ts.map +1 -1
- package/dist/composition/edges/catalog-quantum.js +9 -0
- package/dist/composition/edges/catalog-quantum.js.map +1 -1
- package/dist/composition/edges/catalog-tranche.d.ts.map +1 -1
- package/dist/composition/edges/catalog-tranche.js +18 -0
- package/dist/composition/edges/catalog-tranche.js.map +1 -1
- package/dist/composition/enumerate.js.map +1 -1
- package/dist/composition/explain.js.map +1 -1
- package/dist/composition/expr-eval.d.ts.map +1 -1
- package/dist/composition/expr-eval.js.map +1 -1
- package/dist/composition/expr-simplify.d.ts +13 -0
- package/dist/composition/expr-simplify.d.ts.map +1 -1
- package/dist/composition/expr-simplify.js +25 -0
- package/dist/composition/expr-simplify.js.map +1 -1
- package/dist/composition/expr-subst.js.map +1 -1
- package/dist/composition/graph-viz-svg.d.ts.map +1 -1
- package/dist/composition/graph-viz.d.ts +118 -1
- package/dist/composition/graph-viz.d.ts.map +1 -1
- package/dist/composition/graph-viz.js +189 -6
- package/dist/composition/graph-viz.js.map +1 -1
- package/dist/composition/identifiability.js.map +1 -1
- package/dist/composition/index.d.ts +4 -2
- package/dist/composition/index.d.ts.map +1 -1
- package/dist/composition/index.js +2 -1
- package/dist/composition/index.js.map +1 -1
- package/dist/composition/poster-source.d.ts +153 -0
- package/dist/composition/poster-source.d.ts.map +1 -0
- package/dist/composition/poster-source.js +183 -0
- package/dist/composition/poster-source.js.map +1 -0
- package/dist/composition/probe/backend-protocol.d.ts +34 -1
- package/dist/composition/probe/backend-protocol.d.ts.map +1 -1
- package/dist/composition/probe/backend-protocol.js +9 -2
- package/dist/composition/probe/backend-protocol.js.map +1 -1
- package/dist/composition/probe/candidate-store.d.ts.map +1 -1
- package/dist/composition/probe/limits.js.map +1 -1
- package/dist/composition/probe/pipeline.js.map +1 -1
- package/dist/composition/probe/problem.js.map +1 -1
- package/dist/composition/probe/residual.d.ts.map +1 -1
- package/dist/composition/probe/residual.js.map +1 -1
- package/dist/composition/probe/search-budget.js.map +1 -1
- package/dist/composition/proposed-bridges.d.ts +2 -2
- package/dist/composition/proposed-bridges.d.ts.map +1 -1
- package/dist/composition/proposed-bridges.js +1 -1
- package/dist/composition/proposed-bridges.js.map +1 -1
- package/dist/composition/retrodiction.js.map +1 -1
- package/dist/composition/uncertainty.d.ts +52 -2
- package/dist/composition/uncertainty.d.ts.map +1 -1
- package/dist/composition/uncertainty.js +38 -2
- package/dist/composition/uncertainty.js.map +1 -1
- package/dist/composition/user-equation.d.ts.map +1 -1
- package/dist/core/flux-rules.d.ts.map +1 -1
- package/dist/core/flux-rules.js.map +1 -1
- package/dist/core/labeled-tensor.d.ts.map +1 -1
- package/dist/core/regime-registry.d.ts.map +1 -1
- package/dist/core/regime-rule-install.js.map +1 -1
- package/dist/core/tensor.d.ts.map +1 -1
- package/dist/core/tensor.js.map +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/diff/bridge-ast-gradient.js.map +1 -1
- package/dist/dimensional/ast-types.d.ts +31 -1
- package/dist/dimensional/ast-types.d.ts.map +1 -1
- package/dist/dimensional/bridge-check.d.ts +1 -1
- package/dist/dimensional/bridge-check.js +1 -1
- package/dist/dimensional/buckingham.d.ts.map +1 -1
- package/dist/dimensional/connection.d.ts +2 -0
- package/dist/dimensional/connection.d.ts.map +1 -1
- package/dist/dimensional/connection.js +2 -0
- package/dist/dimensional/connection.js.map +1 -1
- package/dist/dimensional/curvature-composite.d.ts +5 -3
- package/dist/dimensional/curvature-composite.d.ts.map +1 -1
- package/dist/dimensional/curvature-composite.js +1 -0
- package/dist/dimensional/curvature-composite.js.map +1 -1
- package/dist/dimensional/curvature-invariants.d.ts +2 -0
- package/dist/dimensional/curvature-invariants.d.ts.map +1 -1
- package/dist/dimensional/curvature-invariants.js +2 -0
- package/dist/dimensional/curvature-invariants.js.map +1 -1
- package/dist/dimensional/dimension-spec.d.ts.map +1 -1
- package/dist/dimensional/einstein-equation.d.ts +3 -3
- package/dist/dimensional/einstein-equation.js +3 -3
- package/dist/dimensional/errors.d.ts.map +1 -1
- package/dist/dimensional/metric.d.ts +5 -2
- package/dist/dimensional/metric.d.ts.map +1 -1
- package/dist/dimensional/metric.js +5 -2
- package/dist/dimensional/metric.js.map +1 -1
- package/dist/dimensional/tensor-trace.js.map +1 -1
- package/dist/dimensional/validator-registry.js.map +1 -1
- package/dist/dimensional/validator.d.ts +3 -2
- package/dist/dimensional/validator.d.ts.map +1 -1
- package/dist/dimensional/validator.js +23 -4
- package/dist/dimensional/validator.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/numerical/curvature-lowering-helpers.d.ts.map +1 -1
- package/dist/numerical/curvature-lowering-helpers.js +104 -0
- package/dist/numerical/curvature-lowering-helpers.js.map +1 -1
- package/dist/numerical/errors.d.ts.map +1 -1
- package/dist/numerical/errors.js.map +1 -1
- package/dist/numerical/float64-engine.d.ts.map +1 -1
- package/dist/numerical/float64-engine.js +51 -24
- package/dist/numerical/float64-engine.js.map +1 -1
- package/dist/numerical/formula-dimension.d.ts.map +1 -1
- package/dist/numerical/formula-dimension.js.map +1 -1
- package/dist/numerical/formula.d.ts.map +1 -1
- package/dist/numerical/formula.js.map +1 -1
- package/dist/numerical/geometrized.d.ts.map +1 -1
- package/dist/numerical/gl4-integrator.d.ts +3 -3
- package/dist/numerical/gl4-integrator.js +3 -3
- package/dist/numerical/killing.d.ts +47 -5
- package/dist/numerical/killing.d.ts.map +1 -1
- package/dist/numerical/killing.js +41 -3
- package/dist/numerical/killing.js.map +1 -1
- package/dist/numerical/klein-gordon.d.ts +2 -2
- package/dist/numerical/klein-gordon.js +2 -2
- package/dist/numerical/lowering.d.ts +2 -2
- package/dist/numerical/lowering.d.ts.map +1 -1
- package/dist/numerical/lowering.js +5 -3
- package/dist/numerical/lowering.js.map +1 -1
- package/dist/numerical/mathts-engine.d.ts.map +1 -1
- package/dist/numerical/mathts-engine.js.map +1 -1
- package/dist/numerical/metric-inverse.js.map +1 -1
- package/dist/numerical/perihelion-finder.d.ts +15 -13
- package/dist/numerical/perihelion-finder.d.ts.map +1 -1
- package/dist/numerical/perihelion-finder.js +15 -13
- package/dist/numerical/perihelion-finder.js.map +1 -1
- package/dist/numerical/weyl-lowering.d.ts.map +1 -1
- package/dist/numerical/weyl-lowering.js +90 -40
- package/dist/numerical/weyl-lowering.js.map +1 -1
- package/package.json +121 -104
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `Model` record — Phase 3's promotion of the Phase 0 `AtlasModel`.
|
|
3
|
+
*
|
|
4
|
+
* ROADMAP Phase 3 makes the MODEL the unit rather than the equation: state
|
|
5
|
+
* space, dynamics, observables, parameters, boundary/initial data, symmetry
|
|
6
|
+
* group where known, regime. This module is the record's new home; the nine
|
|
7
|
+
* Phase 0 fields are carried over unchanged and three are added.
|
|
8
|
+
*
|
|
9
|
+
* **`boundaryData`, `initialData` and `symmetryGroup` are all OPTIONAL**
|
|
10
|
+
* (`docs/planning/Atlas-Phase-3-Design.md` §4, which supersedes the
|
|
11
|
+
* implementation plan's wording on the first two). No boundary or initial
|
|
12
|
+
* data is recorded for the nine oscillator models, so a required field would
|
|
13
|
+
* force either fabricated values or empty ones asserting "there are none".
|
|
14
|
+
* `oscillators/models.ts` refuses exactly that fabrication for `inequalities`.
|
|
15
|
+
* **An absent field says "not recorded"; a present empty one says "there are
|
|
16
|
+
* none", and only one of those is true here** — so the nine literals stay
|
|
17
|
+
* byte-identical and record nothing they do not have a source for.
|
|
18
|
+
*
|
|
19
|
+
* `src/atlas/serialize.ts` enumerates model fields explicitly, so a model
|
|
20
|
+
* carrying none of the three serializes byte-identically to Phase 0's
|
|
21
|
+
* committed `data/atlas/oscillators.json`.
|
|
22
|
+
*
|
|
23
|
+
* @module atlas/model
|
|
24
|
+
*/
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/atlas/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge 5 of the oscillator pilot: the COARSE-GRAINING bridge from the
|
|
3
|
+
* discrete mass–spring chain to the 1-D wave equation.
|
|
4
|
+
*
|
|
5
|
+
* This is the only Phase 0 bridge whose relation is `coarse-graining`: the
|
|
6
|
+
* reduction map `u_n(t) ↦ u(x = na, t)` is not invertible, and the
|
|
7
|
+
* short-wavelength half of the lattice Brillouin zone (`q > π/a`) has no image
|
|
8
|
+
* in the continuum model. The information loss is therefore recorded in
|
|
9
|
+
* `doesNotPreserve` and witnessed numerically by `W9`.
|
|
10
|
+
*
|
|
11
|
+
* @module atlas/oscillators/bridges-coarse
|
|
12
|
+
*/
|
|
13
|
+
import type { AtlasBridge, RelationContract } from '../types.js';
|
|
14
|
+
/**
|
|
15
|
+
* The lattice dispersion relation of `m u_n″ = κ(u_{n+1} − 2u_n + u_{n−1})`:
|
|
16
|
+
* `ω(q) = 2 √(κ/m) |sin(qa/2)|`.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function latticeDispersion(q: number, a: number, kappa: number, m: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* The continuum dispersion relation of `u_tt = c² u_xx` with `c² = κ a² / m`:
|
|
23
|
+
* `ω = c q`.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function continuumDispersion(q: number, a: number, kappa: number, m: number): number;
|
|
28
|
+
/** The long-wavelength wave speed `c = a √(κ/m)`. @internal */
|
|
29
|
+
export declare function chainWaveSpeed(a: number, kappa: number, m: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* The band edge of the lattice, at `qa = π`: `ω_max = 2 √(κ/m)`.
|
|
32
|
+
* The continuum relation `ω = c q` is unbounded and has no counterpart —
|
|
33
|
+
* that absence IS the information the coarse-graining discards.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare function latticeBandEdge(kappa: number, m: number): number;
|
|
38
|
+
/**
|
|
39
|
+
* Leading-order relative dispersion error `1 − ω_lattice/ω_continuum`,
|
|
40
|
+
* approximated as `(qa)²/24`.
|
|
41
|
+
*
|
|
42
|
+
* Convention note (fixed for the whole sprint): with `x = qa/2`,
|
|
43
|
+
* `1 − sin x / x = x²/6 − x⁴/120 + …`, so the true relative error is
|
|
44
|
+
* `(qa)²/24 − (qa)⁴/1920`. The quartic term makes `(qa)²/24` an
|
|
45
|
+
* OVERESTIMATE; the signed deviation `(true − approx)/approx` is therefore
|
|
46
|
+
* NEGATIVE and equals `−(qa)²/80` to leading order. The W9 assertion is on
|
|
47
|
+
* the MAGNITUDE, so the sign convention does not change the test — it is
|
|
48
|
+
* stated here so the next reader does not rederive it.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export declare function dispersionErrorApproximation(qa: number): number;
|
|
53
|
+
/** Bridge 5: chain → wave equation by coarse-graining. @internal */
|
|
54
|
+
export declare const BRIDGE_CHAIN_WAVE: AtlasBridge;
|
|
55
|
+
/**
|
|
56
|
+
* Bridge 5 re-registered through `RelationContract`.
|
|
57
|
+
*
|
|
58
|
+
* `coarse-graining` leaves `bound` OPTIONAL, and this record carries none: the
|
|
59
|
+
* `qa²/24` dispersion residual is a per-mode series term, not a Lipschitz
|
|
60
|
+
* constant with a uniform offset in a stated norm. The union permits the
|
|
61
|
+
* absence rather than forcing an invented `K` and `delta`.
|
|
62
|
+
*
|
|
63
|
+
* No `deltaAt` either, for the same reason and by the same rule: `deltaAt` is
|
|
64
|
+
* the machine form OF a `delta`, so a record with no `delta` has nothing for
|
|
65
|
+
* it to be the machine form of. `admitApproximation` requires `deltaAt` only
|
|
66
|
+
* of an `approximation`, so this record passes admission unchanged.
|
|
67
|
+
*
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
export declare const CONTRACT_CHAIN_WAVE: RelationContract;
|
|
71
|
+
//# sourceMappingURL=bridges-coarse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridges-coarse.d.ts","sourceRoot":"","sources":["../../../src/atlas/oscillators/bridges-coarse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMjE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAExF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED,+DAA+D;AAC/D,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,EAAE,WAmE/B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAAwD,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge 5 of the oscillator pilot: the COARSE-GRAINING bridge from the
|
|
3
|
+
* discrete mass–spring chain to the 1-D wave equation.
|
|
4
|
+
*
|
|
5
|
+
* This is the only Phase 0 bridge whose relation is `coarse-graining`: the
|
|
6
|
+
* reduction map `u_n(t) ↦ u(x = na, t)` is not invertible, and the
|
|
7
|
+
* short-wavelength half of the lattice Brillouin zone (`q > π/a`) has no image
|
|
8
|
+
* in the continuum model. The information loss is therefore recorded in
|
|
9
|
+
* `doesNotPreserve` and witnessed numerically by `W9`.
|
|
10
|
+
*
|
|
11
|
+
* @module atlas/oscillators/bridges-coarse
|
|
12
|
+
*/
|
|
13
|
+
import { LENGTH, MASS, VELOCITY } from '../../dimensional/types.js';
|
|
14
|
+
import { deriveRegimeGroups } from '../regime.js';
|
|
15
|
+
import { relationContractOf } from './bridges-exact.js';
|
|
16
|
+
import { SPRING_CONSTANT } from './dimensions.js';
|
|
17
|
+
const FAMILY = 'oscillators';
|
|
18
|
+
/**
|
|
19
|
+
* The lattice dispersion relation of `m u_n″ = κ(u_{n+1} − 2u_n + u_{n−1})`:
|
|
20
|
+
* `ω(q) = 2 √(κ/m) |sin(qa/2)|`.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export function latticeDispersion(q, a, kappa, m) {
|
|
25
|
+
return 2 * Math.sqrt(kappa / m) * Math.abs(Math.sin((q * a) / 2));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The continuum dispersion relation of `u_tt = c² u_xx` with `c² = κ a² / m`:
|
|
29
|
+
* `ω = c q`.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function continuumDispersion(q, a, kappa, m) {
|
|
34
|
+
return Math.sqrt((kappa * a * a) / m) * Math.abs(q);
|
|
35
|
+
}
|
|
36
|
+
/** The long-wavelength wave speed `c = a √(κ/m)`. @internal */
|
|
37
|
+
export function chainWaveSpeed(a, kappa, m) {
|
|
38
|
+
return a * Math.sqrt(kappa / m);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The band edge of the lattice, at `qa = π`: `ω_max = 2 √(κ/m)`.
|
|
42
|
+
* The continuum relation `ω = c q` is unbounded and has no counterpart —
|
|
43
|
+
* that absence IS the information the coarse-graining discards.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export function latticeBandEdge(kappa, m) {
|
|
48
|
+
return 2 * Math.sqrt(kappa / m);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Leading-order relative dispersion error `1 − ω_lattice/ω_continuum`,
|
|
52
|
+
* approximated as `(qa)²/24`.
|
|
53
|
+
*
|
|
54
|
+
* Convention note (fixed for the whole sprint): with `x = qa/2`,
|
|
55
|
+
* `1 − sin x / x = x²/6 − x⁴/120 + …`, so the true relative error is
|
|
56
|
+
* `(qa)²/24 − (qa)⁴/1920`. The quartic term makes `(qa)²/24` an
|
|
57
|
+
* OVERESTIMATE; the signed deviation `(true − approx)/approx` is therefore
|
|
58
|
+
* NEGATIVE and equals `−(qa)²/80` to leading order. The W9 assertion is on
|
|
59
|
+
* the MAGNITUDE, so the sign convention does not change the test — it is
|
|
60
|
+
* stated here so the next reader does not rederive it.
|
|
61
|
+
*
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export function dispersionErrorApproximation(qa) {
|
|
65
|
+
return (qa * qa) / 24;
|
|
66
|
+
}
|
|
67
|
+
/** Bridge 5: chain → wave equation by coarse-graining. @internal */
|
|
68
|
+
export const BRIDGE_CHAIN_WAVE = {
|
|
69
|
+
id: 'ab-chain-wave',
|
|
70
|
+
relation: 'coarse-graining',
|
|
71
|
+
premises: ['model-chain'],
|
|
72
|
+
conclusion: 'model-wave-1d',
|
|
73
|
+
transformation: 'u_n(t) ↦ u(x = n a, t), with c² = κ a² / m',
|
|
74
|
+
preserves: [
|
|
75
|
+
'long-wavelength dispersion ω ≈ c q',
|
|
76
|
+
'wave speed c = a √(κ/m)',
|
|
77
|
+
'linearity',
|
|
78
|
+
],
|
|
79
|
+
doesNotPreserve: [
|
|
80
|
+
'modes with q > π/a',
|
|
81
|
+
'the band edge ω_max = 2 √(κ/m) at qa = π',
|
|
82
|
+
'the discrete lattice spacing a as an independent scale',
|
|
83
|
+
],
|
|
84
|
+
sideConditions: ['long-wavelength, qa ≪ 1'],
|
|
85
|
+
regime: {
|
|
86
|
+
family: FAMILY,
|
|
87
|
+
inequalities: [{ group: 'qa', op: '<', bound: 1, alias: 'qa ≪ 1' }],
|
|
88
|
+
groupDefinitions: deriveRegimeGroups(FAMILY, [
|
|
89
|
+
{ name: 'm', dim: MASS },
|
|
90
|
+
{ name: 'kappa', dim: SPRING_CONSTANT },
|
|
91
|
+
{ name: 'a', dim: LENGTH },
|
|
92
|
+
{ name: 'c', dim: VELOCITY },
|
|
93
|
+
], ['qa']),
|
|
94
|
+
},
|
|
95
|
+
counterexamples: [
|
|
96
|
+
{
|
|
97
|
+
description: 'A mode at the band edge qa = π has ω = 2√(κ/m) on the lattice, while the ' +
|
|
98
|
+
'continuum relation ω = c q is unbounded: the coarse-grained model has no ' +
|
|
99
|
+
'band edge at all.',
|
|
100
|
+
witness: 'W9',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
evidence: new Set(['proposed', 'dimension-checked', 'numerically-supported']),
|
|
104
|
+
witnesses: [
|
|
105
|
+
{
|
|
106
|
+
id: 'W9',
|
|
107
|
+
kind: 'numeric',
|
|
108
|
+
test: 'tests/atlas/oscillators-coarse.test.ts',
|
|
109
|
+
tolerance: 'relative dispersion error matches (qa)²/24 within 0.5% of itself',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'W9b',
|
|
113
|
+
kind: 'numeric',
|
|
114
|
+
test: 'tests/atlas/oscillators-coarse.test.ts',
|
|
115
|
+
tolerance: 'ring of 64 masses integrated: ω matches the lattice dispersion within 1e-9 and the coarse error ' +
|
|
116
|
+
'(qa)²/24 within 1%; superposition within 1e-10 (linearity); a 10% wrong κ and a cubic on-site force each fail',
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
// The monatomic-chain dispersion omega(q) = 2 sqrt(kappa/m) |sin(qa/2)| and its
|
|
120
|
+
// long-wavelength continuum limit are standard solid-state results. Work and topic are
|
|
121
|
+
// cited rather than a precise section number, which would be fabrication in a more
|
|
122
|
+
// confident costume. This array was EMPTY, which is honest but leaves a textbook result
|
|
123
|
+
// looking unsourced.
|
|
124
|
+
citations: [
|
|
125
|
+
'Kittel, Introduction to Solid State Physics - Phonons I: the monatomic linear chain, its dispersion relation and the qa << 1 continuum limit',
|
|
126
|
+
'Ashcroft & Mermin, Solid State Physics - the one-dimensional monatomic Bravais lattice and the first Brillouin zone band edge at qa = pi',
|
|
127
|
+
],
|
|
128
|
+
reviewStatus: 'proposed',
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Bridge 5 re-registered through `RelationContract`.
|
|
132
|
+
*
|
|
133
|
+
* `coarse-graining` leaves `bound` OPTIONAL, and this record carries none: the
|
|
134
|
+
* `qa²/24` dispersion residual is a per-mode series term, not a Lipschitz
|
|
135
|
+
* constant with a uniform offset in a stated norm. The union permits the
|
|
136
|
+
* absence rather than forcing an invented `K` and `delta`.
|
|
137
|
+
*
|
|
138
|
+
* No `deltaAt` either, for the same reason and by the same rule: `deltaAt` is
|
|
139
|
+
* the machine form OF a `delta`, so a record with no `delta` has nothing for
|
|
140
|
+
* it to be the machine form of. `admitApproximation` requires `deltaAt` only
|
|
141
|
+
* of an `approximation`, so this record passes admission unchanged.
|
|
142
|
+
*
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
export const CONTRACT_CHAIN_WAVE = relationContractOf(BRIDGE_CHAIN_WAVE);
|
|
146
|
+
//# sourceMappingURL=bridges-coarse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridges-coarse.js","sourceRoot":"","sources":["../../../src/atlas/oscillators/bridges-coarse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAA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AAwF;IACxF,qBAAqB;IACrB,SAAS,EAAE;QACT,8IAA8I;QAC9I,0IAA0I;KAC3I;IACD,YAAY,EAAE,UAAU;CACzB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAqB,kBAAkB,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two Phase 0 `exact-equivalence` bridges of design note §3.
|
|
3
|
+
*
|
|
4
|
+
* - `ab-spring-lc` — the lossless mechanical/electrical dictionary, exact with
|
|
5
|
+
* no side condition beyond positivity and losslessness.
|
|
6
|
+
* - `ab-damped-rlc` — exact only ON a side condition: the two damping ratios
|
|
7
|
+
* must agree, `b/(2√(mk)) = (R/2)√(C/L)`.
|
|
8
|
+
*
|
|
9
|
+
* **Regimes carry no inequalities.** `RegimeInequality` expresses `<`, `<=`,
|
|
10
|
+
* `>`, `>=` only, so the bridge-2 side condition — an EQUALITY between two
|
|
11
|
+
* derived ratios — cannot be written as one. It is carried in
|
|
12
|
+
* `sideConditions` as prose instead, and the equality is what witness W2
|
|
13
|
+
* executes. Writing an inequality that merely resembles it would be a
|
|
14
|
+
* fabricated constraint, so none is written. `groupDefinitions` is derived
|
|
15
|
+
* from the premise and conclusion parameters by `deriveRegimeGroups`, exactly
|
|
16
|
+
* as the models do; nothing there is hand-authored.
|
|
17
|
+
*
|
|
18
|
+
* **Evidence tags are witness-gated.** A tag appears only because a witness in
|
|
19
|
+
* `tests/atlas/oscillators-exact.test.ts` passes and shows it.
|
|
20
|
+
*
|
|
21
|
+
* @module atlas/oscillators/bridges-exact
|
|
22
|
+
*/
|
|
23
|
+
import type { AtlasBridge, RelationContract } from '../types.js';
|
|
24
|
+
/**
|
|
25
|
+
* Bridge 1 — the lossless spring ↔ LC dictionary.
|
|
26
|
+
*
|
|
27
|
+
* `m ↔ L`, `k ↔ 1/C`, `x ↔ q`. Under `u = x/x0` (or `q/q0`) and `τ = ω0 t`
|
|
28
|
+
* both systems become `u'' + u = 0`, so the equivalence is exact and
|
|
29
|
+
* invertible.
|
|
30
|
+
*
|
|
31
|
+
* Its counterexample is W2b, which lives on THIS bridge: it shows that adding
|
|
32
|
+
* a resistor to the LC side breaks the equivalence, so bridge 1 is a statement
|
|
33
|
+
* about the LOSSLESS pair only.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare const BRIDGE_SPRING_LC: AtlasBridge;
|
|
38
|
+
/**
|
|
39
|
+
* Bridge 2 — damped spring ↔ RLC, exact ON a side condition.
|
|
40
|
+
*
|
|
41
|
+
* The undamped dictionary of bridge 1 does not extend for free: `b` and `R`
|
|
42
|
+
* are independent parameters, and the nondimensional systems coincide only
|
|
43
|
+
* when the damping ratios match. The side condition is that equality, and W2
|
|
44
|
+
* DERIVES `R` from it rather than assuming a value.
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export declare const BRIDGE_DAMPED_RLC: AtlasBridge;
|
|
49
|
+
/**
|
|
50
|
+
* Re-register an `AtlasBridge` through the Phase 1 `RelationContract` union.
|
|
51
|
+
*
|
|
52
|
+
* `AtlasBridge` states its two conditional requirements — `exact-equivalence`
|
|
53
|
+
* needs `inverse`, `approximation` needs `bound` — only in doc comments, so a
|
|
54
|
+
* record that breaks them type-checks. `RelationContract` states them in the
|
|
55
|
+
* type system. This function is the one place the Sprint 0 records cross from
|
|
56
|
+
* the weaker shape to the stronger one, and it THROWS on the two cases the
|
|
57
|
+
* doc comments could only describe.
|
|
58
|
+
*
|
|
59
|
+
* It copies rather than restates: every field comes off the bridge, so a
|
|
60
|
+
* contract cannot drift from the record it re-registers.
|
|
61
|
+
*
|
|
62
|
+
* @throws TypeError when the bridge omits the field its relation requires.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
export declare function relationContractOf(bridge: AtlasBridge): RelationContract;
|
|
66
|
+
/** Bridge 1 re-registered through the Phase 1 contract. @internal */
|
|
67
|
+
export declare const CONTRACT_SPRING_LC: RelationContract;
|
|
68
|
+
/** Bridge 2 re-registered through the Phase 1 contract. @internal */
|
|
69
|
+
export declare const CONTRACT_DAMPED_RLC: RelationContract;
|
|
70
|
+
//# sourceMappingURL=bridges-exact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridges-exact.d.ts","sourceRoot":"","sources":["../../../src/atlas/oscillators/bridges-exact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAuB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AA+CtF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAwD9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,WAkC/B,CAAC;AAMF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,gBAAgB,CAwBxE;AAED,qEAAqE;AACrE,eAAO,MAAM,kBAAkB,EAAE,gBAAuD,CAAC;AAEzF,qEAAqE;AACrE,eAAO,MAAM,mBAAmB,EAAE,gBAAwD,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two Phase 0 `exact-equivalence` bridges of design note §3.
|
|
3
|
+
*
|
|
4
|
+
* - `ab-spring-lc` — the lossless mechanical/electrical dictionary, exact with
|
|
5
|
+
* no side condition beyond positivity and losslessness.
|
|
6
|
+
* - `ab-damped-rlc` — exact only ON a side condition: the two damping ratios
|
|
7
|
+
* must agree, `b/(2√(mk)) = (R/2)√(C/L)`.
|
|
8
|
+
*
|
|
9
|
+
* **Regimes carry no inequalities.** `RegimeInequality` expresses `<`, `<=`,
|
|
10
|
+
* `>`, `>=` only, so the bridge-2 side condition — an EQUALITY between two
|
|
11
|
+
* derived ratios — cannot be written as one. It is carried in
|
|
12
|
+
* `sideConditions` as prose instead, and the equality is what witness W2
|
|
13
|
+
* executes. Writing an inequality that merely resembles it would be a
|
|
14
|
+
* fabricated constraint, so none is written. `groupDefinitions` is derived
|
|
15
|
+
* from the premise and conclusion parameters by `deriveRegimeGroups`, exactly
|
|
16
|
+
* as the models do; nothing there is hand-authored.
|
|
17
|
+
*
|
|
18
|
+
* **Evidence tags are witness-gated.** A tag appears only because a witness in
|
|
19
|
+
* `tests/atlas/oscillators-exact.test.ts` passes and shows it.
|
|
20
|
+
*
|
|
21
|
+
* @module atlas/oscillators/bridges-exact
|
|
22
|
+
*/
|
|
23
|
+
import { deriveRegimeGroups } from '../regime.js';
|
|
24
|
+
import { getAtlasModel } from './models.js';
|
|
25
|
+
const FAMILY = 'oscillators';
|
|
26
|
+
/** The witness test file every witness below runs in. */
|
|
27
|
+
const TEST = 'tests/atlas/oscillators-exact.test.ts';
|
|
28
|
+
/** Where the CAS witnesses W1s and W2s are named; the artifact pin runs them. */
|
|
29
|
+
const WITNESS_RESULTS_TEST = 'tests/atlas/witness-results.test.ts';
|
|
30
|
+
/**
|
|
31
|
+
* Literature for the electromechanical analogy, NOT a pointer at our own plan.
|
|
32
|
+
*
|
|
33
|
+
* The previous value here was `docs/planning/Atlas-Phase-0-Design.md §3, §6` - a citation
|
|
34
|
+
* naming the document that ASSERTED the claim. That is circular, and it is worse than an
|
|
35
|
+
* empty array because it LOOKS sourced and would satisfy any check that only asks whether
|
|
36
|
+
* `citations[]` is non-empty. Same failure class as the evidence-tag theatre that
|
|
37
|
+
* `tests/atlas/evidence-rule.test.ts` exists to catch.
|
|
38
|
+
*
|
|
39
|
+
* Work and topic are cited rather than precise section numbers, because a section number
|
|
40
|
+
* stated without checking the edition in hand is the same fabrication in a more confident
|
|
41
|
+
* costume. `reviewStatus` stays 'proposed' until the independent physicist review lands.
|
|
42
|
+
*/
|
|
43
|
+
const CITATIONS = [
|
|
44
|
+
'Olson, Dynamical Analogies - the force-voltage (impedance) analogy between a mass-spring–damper and a series RLC circuit',
|
|
45
|
+
'Feynman, Lectures on Physics Vol. II, chapter on resonance - the LC oscillator and its mechanical counterpart',
|
|
46
|
+
];
|
|
47
|
+
/**
|
|
48
|
+
* Regime coordinates spanning a bridge's premise and conclusion parameters.
|
|
49
|
+
*
|
|
50
|
+
* The two models' parameter names are disjoint in both bridges, so the union
|
|
51
|
+
* is a legal `deriveRegimeGroups` input.
|
|
52
|
+
*/
|
|
53
|
+
function bridgeRegime(premiseId, conclusionId) {
|
|
54
|
+
const parameters = [
|
|
55
|
+
...getAtlasModel(premiseId).parameters,
|
|
56
|
+
...getAtlasModel(conclusionId).parameters,
|
|
57
|
+
];
|
|
58
|
+
return {
|
|
59
|
+
family: FAMILY,
|
|
60
|
+
inequalities: [],
|
|
61
|
+
groupDefinitions: deriveRegimeGroups(FAMILY, parameters, []),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const evidence = (...tags) => new Set(tags);
|
|
65
|
+
/**
|
|
66
|
+
* Bridge 1 — the lossless spring ↔ LC dictionary.
|
|
67
|
+
*
|
|
68
|
+
* `m ↔ L`, `k ↔ 1/C`, `x ↔ q`. Under `u = x/x0` (or `q/q0`) and `τ = ω0 t`
|
|
69
|
+
* both systems become `u'' + u = 0`, so the equivalence is exact and
|
|
70
|
+
* invertible.
|
|
71
|
+
*
|
|
72
|
+
* Its counterexample is W2b, which lives on THIS bridge: it shows that adding
|
|
73
|
+
* a resistor to the LC side breaks the equivalence, so bridge 1 is a statement
|
|
74
|
+
* about the LOSSLESS pair only.
|
|
75
|
+
*
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export const BRIDGE_SPRING_LC = {
|
|
79
|
+
id: 'ab-spring-lc',
|
|
80
|
+
relation: 'exact-equivalence',
|
|
81
|
+
premises: ['model-spring'],
|
|
82
|
+
conclusion: 'model-lc',
|
|
83
|
+
// Two nondimensionalizations, each with its own ω0; composed, the spring→LC map is
|
|
84
|
+
// q(t) = (q0/x0)·x(ω_LC t / ω_s). The dimensioned frequencies differ (W1a: ω_s = 2,
|
|
85
|
+
// ω_LC = 2√2); what is preserved is the frequency in units of ω0.
|
|
86
|
+
transformation: 'u = x/x0 or q/q0, τ = ω0 t; composed, q(t) = (q0/x0)·x(ω_LC t / ω_s)',
|
|
87
|
+
inverse: 'x = x0 u, t = τ/ω0',
|
|
88
|
+
preserves: ['the natural frequency in units of ω0 (ω = 1 in τ = ω0 t)', 'energy up to scale', 'phase portrait'],
|
|
89
|
+
doesNotPreserve: ['physical interpretation', 'units'],
|
|
90
|
+
sideConditions: ['m, k, L, C > 0', 'lossless', 'unforced', 'x0, q0 nonzero'],
|
|
91
|
+
regime: bridgeRegime('model-spring', 'model-lc'),
|
|
92
|
+
counterexamples: [
|
|
93
|
+
{
|
|
94
|
+
description: 'adding R to bridge 1 breaks it: the same L, C with R = 4 has ζ_RLC = 0.5, ' +
|
|
95
|
+
'which no lossless spring matches — the trajectories separate by more than 1e-2 at τ = π',
|
|
96
|
+
witness: 'W2b',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
// `symbolically-checked` is NOT stored here any more (Phase 4 S4.3): it is
|
|
100
|
+
// DERIVED from `data/atlas/witness-results.json`, where W1s records the CAS
|
|
101
|
+
// check of this bridge's dictionary. A stored copy would be a second source
|
|
102
|
+
// of truth that no run could falsify.
|
|
103
|
+
evidence: evidence('proposed', 'numerically-supported'),
|
|
104
|
+
witnesses: [
|
|
105
|
+
{
|
|
106
|
+
id: 'W1',
|
|
107
|
+
kind: 'symbolic',
|
|
108
|
+
test: TEST,
|
|
109
|
+
tolerance: 'exact — rational exponent arithmetic, no floating point',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'W1a',
|
|
113
|
+
kind: 'numeric',
|
|
114
|
+
test: TEST,
|
|
115
|
+
tolerance: '|u_spring − u_lc| < 1e-8; each within 1e-8 of cos τ',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: 'W1b',
|
|
119
|
+
kind: 'numeric',
|
|
120
|
+
test: TEST,
|
|
121
|
+
tolerance: 'inverse-mapped trajectory solves m x″ + k x = 0 within 1e-8; a 1% wrong ω0 fails',
|
|
122
|
+
},
|
|
123
|
+
{ id: 'W2b', kind: 'numeric', test: TEST, tolerance: 'separation > 1e-2 at τ = π' },
|
|
124
|
+
{
|
|
125
|
+
id: 'W1s',
|
|
126
|
+
kind: 'symbolic',
|
|
127
|
+
test: WITNESS_RESULTS_TEST,
|
|
128
|
+
tolerance: 'CAS: k/m under m ↔ L, k ↔ 1/C minus 1/(LC) simplifies to literal 0',
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
citations: CITATIONS,
|
|
132
|
+
reviewStatus: 'proposed',
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Bridge 2 — damped spring ↔ RLC, exact ON a side condition.
|
|
136
|
+
*
|
|
137
|
+
* The undamped dictionary of bridge 1 does not extend for free: `b` and `R`
|
|
138
|
+
* are independent parameters, and the nondimensional systems coincide only
|
|
139
|
+
* when the damping ratios match. The side condition is that equality, and W2
|
|
140
|
+
* DERIVES `R` from it rather than assuming a value.
|
|
141
|
+
*
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
export const BRIDGE_DAMPED_RLC = {
|
|
145
|
+
id: 'ab-damped-rlc',
|
|
146
|
+
relation: 'exact-equivalence',
|
|
147
|
+
premises: ['model-damped-spring'],
|
|
148
|
+
conclusion: 'model-rlc',
|
|
149
|
+
transformation: 'u = x/x0 or q/q0, τ = ω0 t; composed, q(t) = (q0/x0)·x(ω_RLC t / ω_mech)',
|
|
150
|
+
inverse: 'x = x0 u, t = τ/ω0',
|
|
151
|
+
preserves: ['the natural frequency in units of ω0 (ω = 1 in τ = ω0 t)', 'damping ratio', 'phase portrait'],
|
|
152
|
+
doesNotPreserve: ['physical interpretation', 'units'],
|
|
153
|
+
sideConditions: [
|
|
154
|
+
'b/√(mk) = R√(C/L), equivalently ζ_mech = b/(2√(mk)) equals ζ_RLC = (R/2)√(C/L)',
|
|
155
|
+
'm, b, k, L, R, C > 0',
|
|
156
|
+
'unforced',
|
|
157
|
+
'x0, q0 nonzero',
|
|
158
|
+
],
|
|
159
|
+
regime: bridgeRegime('model-damped-spring', 'model-rlc'),
|
|
160
|
+
counterexamples: [],
|
|
161
|
+
evidence: evidence('proposed', 'numerically-supported'),
|
|
162
|
+
witnesses: [
|
|
163
|
+
{
|
|
164
|
+
id: 'W2',
|
|
165
|
+
kind: 'numeric',
|
|
166
|
+
test: TEST,
|
|
167
|
+
tolerance: 'R derived exactly; |u_mech − u_rlc| < 1e-8 at four τ',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: 'W2s',
|
|
171
|
+
kind: 'symbolic',
|
|
172
|
+
test: WITNESS_RESULTS_TEST,
|
|
173
|
+
tolerance: 'CAS: b²/(4mk) under m ↔ L, k ↔ 1/C, b ↔ R minus R²C/(4L) simplifies to literal 0',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
citations: CITATIONS,
|
|
177
|
+
reviewStatus: 'proposed',
|
|
178
|
+
};
|
|
179
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
180
|
+
// Phase 1 re-registration: the Sprint 0 bridges through `RelationContract`
|
|
181
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
182
|
+
/**
|
|
183
|
+
* Re-register an `AtlasBridge` through the Phase 1 `RelationContract` union.
|
|
184
|
+
*
|
|
185
|
+
* `AtlasBridge` states its two conditional requirements — `exact-equivalence`
|
|
186
|
+
* needs `inverse`, `approximation` needs `bound` — only in doc comments, so a
|
|
187
|
+
* record that breaks them type-checks. `RelationContract` states them in the
|
|
188
|
+
* type system. This function is the one place the Sprint 0 records cross from
|
|
189
|
+
* the weaker shape to the stronger one, and it THROWS on the two cases the
|
|
190
|
+
* doc comments could only describe.
|
|
191
|
+
*
|
|
192
|
+
* It copies rather than restates: every field comes off the bridge, so a
|
|
193
|
+
* contract cannot drift from the record it re-registers.
|
|
194
|
+
*
|
|
195
|
+
* @throws TypeError when the bridge omits the field its relation requires.
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
export function relationContractOf(bridge) {
|
|
199
|
+
const { relation, transformation } = bridge;
|
|
200
|
+
switch (relation) {
|
|
201
|
+
case 'exact-equivalence': {
|
|
202
|
+
if (bridge.inverse === undefined) {
|
|
203
|
+
throw new TypeError(`${bridge.id}: exact-equivalence without an inverse`);
|
|
204
|
+
}
|
|
205
|
+
return { type: relation, transformation, inverse: bridge.inverse };
|
|
206
|
+
}
|
|
207
|
+
case 'approximation': {
|
|
208
|
+
if (bridge.bound === undefined) {
|
|
209
|
+
throw new TypeError(`${bridge.id}: approximation without a bound`);
|
|
210
|
+
}
|
|
211
|
+
return { type: relation, transformation, bound: bridge.bound };
|
|
212
|
+
}
|
|
213
|
+
case 'coarse-graining':
|
|
214
|
+
// `bound` is OPTIONAL here: the chain/wave bridge carries none, and the
|
|
215
|
+
// union allows that rather than forcing an invented one.
|
|
216
|
+
return bridge.bound === undefined
|
|
217
|
+
? { type: relation, transformation }
|
|
218
|
+
: { type: relation, transformation, bound: bridge.bound };
|
|
219
|
+
default:
|
|
220
|
+
return { type: relation, transformation };
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/** Bridge 1 re-registered through the Phase 1 contract. @internal */
|
|
224
|
+
export const CONTRACT_SPRING_LC = relationContractOf(BRIDGE_SPRING_LC);
|
|
225
|
+
/** Bridge 2 re-registered through the Phase 1 contract. @internal */
|
|
226
|
+
export const CONTRACT_DAMPED_RLC = relationContractOf(BRIDGE_DAMPED_RLC);
|
|
227
|
+
//# sourceMappingURL=bridges-exact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridges-exact.js","sourceRoot":"","sources":["../../../src/atlas/oscillators/bridges-exact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OA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