omnibias-geometry 0.2.0__tar.gz
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.
- omnibias_geometry-0.2.0/LICENSE +214 -0
- omnibias_geometry-0.2.0/PKG-INFO +176 -0
- omnibias_geometry-0.2.0/README.md +124 -0
- omnibias_geometry-0.2.0/pyproject.toml +76 -0
- omnibias_geometry-0.2.0/setup.cfg +4 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/__init__.py +64 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/__init__.py +35 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/charts.py +108 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/exterior_core.py +160 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/forms.py +156 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/integration_core.py +110 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/_core/manifold.py +101 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/algebraic.py +389 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/algebraic_surfaces.py +147 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/atlas/__init__.py +56 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/atlas/_core.py +79 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/atlas/cocycle.py +198 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/atlas/jax.py +84 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/atlas/torch.py +86 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/continuation.py +415 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/continuation_directional.py +106 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/continuation_switch.py +228 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/__init__.py +410 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/__init__.py +418 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/connection.py +110 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/continuum_fit.py +107 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/covariant_jet.py +495 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/data_paths.py +122 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/ensemble_language.py +742 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/forms.py +174 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/ghost.py +204 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/instanton.py +66 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/invariants.py +245 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/jet_dimension.py +122 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/kernels.py +321 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/landau_gluon.py +342 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/lie_algebra.py +203 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/loop_language.py +315 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/representation.py +580 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/scale_setting.py +104 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/spectral_density.py +181 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/stieltjes.py +175 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/_core/weak_ym.py +140 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/band/__init__.py +51 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/band/_core.py +211 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/band/jax.py +77 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/band/torch.py +87 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/__init__.py +9 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/__init__.py +144 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/action.py +62 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/algebra.py +68 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/connection.py +305 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/gauge.py +70 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/hodge.py +54 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/nonintegrable.py +261 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/representation.py +103 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/jax/ops/topology.py +97 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/__init__.py +80 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/__init__.py +15 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/kernels.py +633 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/stats.py +160 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/su3_kernels.py +359 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/su3_montecarlo.py +94 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/_core/wilson_flow.py +137 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/jax/__init__.py +69 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/jax/langevin.py +63 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/jax/montecarlo.py +181 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/jax/observables.py +210 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/jax/su2.py +232 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/langevin.py +65 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/montecarlo.py +177 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/observables.py +237 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/su2.py +226 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/lattice/torch/__init__.py +69 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/proofmachine.py +584 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/py.typed +0 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/__init__.py +85 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/anchored_seam.py +303 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/cube_bridge.py +299 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/feedback.py +94 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/finite.py +201 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/heat_kernel.py +552 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/lattice.py +134 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/stochastic/small_time.py +340 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/__init__.py +9 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/__init__.py +144 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/action.py +68 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/algebra.py +82 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/connection.py +308 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/gauge.py +79 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/hodge.py +66 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/nonintegrable.py +274 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/representation.py +136 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/torch/ops/topology.py +134 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/__init__.py +671 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/adjacent_cone_inverse.py +204 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/adjacent_cone_vacuum.py +131 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/adjacent_gap_comparison.py +197 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/adjacent_resolvent.py +320 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/adjacent_vacuum.py +281 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/ambient_conditional.py +241 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/certificates.py +1354 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/character_algebra.py +167 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/charged_amplitude.py +111 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/charged_confinement.py +247 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/charged_sectors.py +187 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/commutator_matrix.py +129 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/compact_commutator.py +235 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/corner_vacuum.py +238 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/finite_graph_resolvent.py +162 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/forest_projection.py +268 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/gap.py +649 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/hamiltonian.py +956 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/invariant_vacuum_fourier.py +343 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/isolated_block_kinetic.py +173 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/joint_vacuum.py +224 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/marginal_majorant.py +396 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/matrices.py +692 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/montecarlo.py +449 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/nonabelian_small_field.py +250 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/periodic_corner.py +320 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/periodic_corner_box.py +183 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/physical_blocks.py +512 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/plaquette_path.py +192 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/plaquette_resolvent.py +230 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/quadratic_vacuum.py +121 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/reference_resolvent.py +133 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/report.py +356 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/scale_gap_budget.py +181 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/shared_strip_refinement.py +289 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/shared_strip_two_step.py +220 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/sixj.py +182 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/static_sources.py +240 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strip.py +378 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strip_conditional_hierarchy.py +270 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strip_face_obstruction.py +186 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strip_kernel_tail.py +240 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strip_marginal_hierarchy.py +201 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/strong_coupling.py +683 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/su3_vacuum_fourier.py +327 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/su3_wilson.py +407 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_kernel_tail.py +228 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_kernel_threshold.py +174 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_quasimode.py +160 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_refinement.py +230 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_vacuum_refinement.py +219 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/theta_weak_blocks.py +184 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/trial.py +220 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/vacuum_constraints.py +382 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/vacuum_fourier.py +359 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/vacuum_local.py +165 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/vmf_poincare.py +214 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/weak_plaquette.py +232 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_attachment.py +207 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_conditional_block.py +210 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_cube.py +286 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_large_field.py +185 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_polar_source.py +59 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_residual_source.py +333 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/gauge/transfer/wilson_static_source.py +102 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/__init__.py +9 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/__init__.py +109 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/connection.py +194 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/exterior.py +160 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/field_ops.py +85 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/fisher.py +61 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/integration.py +146 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/pullback.py +88 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/jax/ops/topology.py +183 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/__init__.py +71 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/geometry.py +374 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/jax.py +74 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/strata.py +132 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/symmetry.py +167 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/neuromanifold/torch.py +73 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/py.typed +0 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/scan/__init__.py +19 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/scan/jax.py +33 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/scan/torch.py +34 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/__init__.py +9 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/__init__.py +109 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/connection.py +258 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/exterior.py +190 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/field_ops.py +104 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/fisher.py +61 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/integration.py +177 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/pullback.py +87 -0
- omnibias_geometry-0.2.0/src/omnibias/geometry/torch/ops/topology.py +276 -0
- omnibias_geometry-0.2.0/src/omnibias_geometry.egg-info/PKG-INFO +176 -0
- omnibias_geometry-0.2.0/src/omnibias_geometry.egg-info/SOURCES.txt +264 -0
- omnibias_geometry-0.2.0/src/omnibias_geometry.egg-info/dependency_links.txt +1 -0
- omnibias_geometry-0.2.0/src/omnibias_geometry.egg-info/requires.txt +28 -0
- omnibias_geometry-0.2.0/src/omnibias_geometry.egg-info/top_level.txt +1 -0
- omnibias_geometry-0.2.0/tests/test_adjacent_cone_inverse.py +96 -0
- omnibias_geometry-0.2.0/tests/test_adjacent_cone_vacuum.py +103 -0
- omnibias_geometry-0.2.0/tests/test_adjacent_gap_comparison.py +283 -0
- omnibias_geometry-0.2.0/tests/test_adjacent_resolvent.py +301 -0
- omnibias_geometry-0.2.0/tests/test_adjacent_vacuum.py +277 -0
- omnibias_geometry-0.2.0/tests/test_algebraic_curve_certificates.py +210 -0
- omnibias_geometry-0.2.0/tests/test_algebraic_surface_certificates.py +103 -0
- omnibias_geometry-0.2.0/tests/test_ambient_conditional.py +267 -0
- omnibias_geometry-0.2.0/tests/test_character_algebra.py +287 -0
- omnibias_geometry-0.2.0/tests/test_commutator_matrix.py +193 -0
- omnibias_geometry-0.2.0/tests/test_compact_commutator.py +304 -0
- omnibias_geometry-0.2.0/tests/test_continuation.py +126 -0
- omnibias_geometry-0.2.0/tests/test_continuation_directional.py +96 -0
- omnibias_geometry-0.2.0/tests/test_continuation_switch.py +159 -0
- omnibias_geometry-0.2.0/tests/test_corner_vacuum.py +257 -0
- omnibias_geometry-0.2.0/tests/test_exterior.py +124 -0
- omnibias_geometry-0.2.0/tests/test_exterior_advanced.py +247 -0
- omnibias_geometry-0.2.0/tests/test_finite_graph_resolvent.py +159 -0
- omnibias_geometry-0.2.0/tests/test_fisher.py +118 -0
- omnibias_geometry-0.2.0/tests/test_forest_projection.py +345 -0
- omnibias_geometry-0.2.0/tests/test_gauge_wilson_attachment.py +383 -0
- omnibias_geometry-0.2.0/tests/test_geometry.py +366 -0
- omnibias_geometry-0.2.0/tests/test_gr_einstein.py +384 -0
- omnibias_geometry-0.2.0/tests/test_holonomy_band.py +113 -0
- omnibias_geometry-0.2.0/tests/test_invariant_vacuum_fourier.py +544 -0
- omnibias_geometry-0.2.0/tests/test_isolated_block_kinetic.py +152 -0
- omnibias_geometry-0.2.0/tests/test_joint_vacuum.py +364 -0
- omnibias_geometry-0.2.0/tests/test_marginal_majorant.py +437 -0
- omnibias_geometry-0.2.0/tests/test_natural_gradient_pullback.py +111 -0
- omnibias_geometry-0.2.0/tests/test_neuromanifold.py +167 -0
- omnibias_geometry-0.2.0/tests/test_neuromanifold_chart_provider.py +174 -0
- omnibias_geometry-0.2.0/tests/test_neuromanifold_coordinate_covariance.py +77 -0
- omnibias_geometry-0.2.0/tests/test_nonabelian_small_field.py +168 -0
- omnibias_geometry-0.2.0/tests/test_periodic_corner.py +379 -0
- omnibias_geometry-0.2.0/tests/test_periodic_corner_box.py +321 -0
- omnibias_geometry-0.2.0/tests/test_physical_blocks.py +439 -0
- omnibias_geometry-0.2.0/tests/test_plaquette_path.py +303 -0
- omnibias_geometry-0.2.0/tests/test_plaquette_resolvent.py +220 -0
- omnibias_geometry-0.2.0/tests/test_pullback.py +242 -0
- omnibias_geometry-0.2.0/tests/test_quadratic_vacuum.py +116 -0
- omnibias_geometry-0.2.0/tests/test_reference_resolvent.py +201 -0
- omnibias_geometry-0.2.0/tests/test_regression.py +87 -0
- omnibias_geometry-0.2.0/tests/test_scale_gap_budget.py +188 -0
- omnibias_geometry-0.2.0/tests/test_scan_equivariant.py +54 -0
- omnibias_geometry-0.2.0/tests/test_shared_strip_refinement.py +334 -0
- omnibias_geometry-0.2.0/tests/test_shared_strip_two_step.py +290 -0
- omnibias_geometry-0.2.0/tests/test_stochastic_anchored_seam.py +307 -0
- omnibias_geometry-0.2.0/tests/test_stochastic_cube_bridge.py +178 -0
- omnibias_geometry-0.2.0/tests/test_stochastic_heat_kernel.py +403 -0
- omnibias_geometry-0.2.0/tests/test_stochastic_small_time.py +212 -0
- omnibias_geometry-0.2.0/tests/test_strip_conditional_hierarchy.py +241 -0
- omnibias_geometry-0.2.0/tests/test_strip_face_obstruction.py +196 -0
- omnibias_geometry-0.2.0/tests/test_strip_kernel_tail.py +405 -0
- omnibias_geometry-0.2.0/tests/test_strip_marginal_hierarchy.py +186 -0
- omnibias_geometry-0.2.0/tests/test_surface_integral.py +342 -0
- omnibias_geometry-0.2.0/tests/test_theta_kernel_tail.py +329 -0
- omnibias_geometry-0.2.0/tests/test_theta_kernel_threshold.py +177 -0
- omnibias_geometry-0.2.0/tests/test_theta_quasimode.py +232 -0
- omnibias_geometry-0.2.0/tests/test_theta_refinement.py +336 -0
- omnibias_geometry-0.2.0/tests/test_theta_vacuum_refinement.py +244 -0
- omnibias_geometry-0.2.0/tests/test_theta_weak_blocks.py +326 -0
- omnibias_geometry-0.2.0/tests/test_topology.py +272 -0
- omnibias_geometry-0.2.0/tests/test_vacuum_constraints.py +331 -0
- omnibias_geometry-0.2.0/tests/test_vmf_poincare.py +303 -0
- omnibias_geometry-0.2.0/tests/test_weak_plaquette.py +248 -0
- omnibias_geometry-0.2.0/tests/test_wilson_conditional_block.py +303 -0
- omnibias_geometry-0.2.0/tests/test_wilson_cube.py +249 -0
- omnibias_geometry-0.2.0/tests/test_wilson_large_field.py +399 -0
- omnibias_geometry-0.2.0/tests/test_wilson_linear_source.py +128 -0
- omnibias_geometry-0.2.0/tests/test_wilson_polar_source.py +185 -0
- omnibias_geometry-0.2.0/tests/test_wilson_residual_source.py +291 -0
- omnibias_geometry-0.2.0/tests/test_wilson_residual_tensors.py +289 -0
- omnibias_geometry-0.2.0/tests/test_wilson_static_source.py +102 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
omnibias -- permissive tier
|
|
2
|
+
===========================
|
|
3
|
+
|
|
4
|
+
SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Copyright (C) 2026 Derivon
|
|
6
|
+
|
|
7
|
+
This package is licensed under the Apache License, Version 2.0, reproduced in
|
|
8
|
+
full below. You do not need a commercial license to use it. See LICENSING.md in
|
|
9
|
+
the repository root for the tier split and for the copyleft tier's terms.
|
|
10
|
+
|
|
11
|
+
--------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Apache License
|
|
15
|
+
Version 2.0, January 2004
|
|
16
|
+
http://www.apache.org/licenses/
|
|
17
|
+
|
|
18
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
19
|
+
|
|
20
|
+
1. Definitions.
|
|
21
|
+
|
|
22
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
23
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
24
|
+
|
|
25
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
26
|
+
the copyright owner that is granting the License.
|
|
27
|
+
|
|
28
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
29
|
+
other entities that control, are controlled by, or are under common
|
|
30
|
+
control with that entity. For the purposes of this definition,
|
|
31
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
32
|
+
direction or management of such entity, whether by contract or
|
|
33
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
34
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
35
|
+
|
|
36
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
37
|
+
exercising permissions granted by this License.
|
|
38
|
+
|
|
39
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
40
|
+
including but not limited to software source code, documentation
|
|
41
|
+
source, and configuration files.
|
|
42
|
+
|
|
43
|
+
"Object" form shall mean any form resulting from mechanical
|
|
44
|
+
transformation or translation of a Source form, including but
|
|
45
|
+
not limited to compiled object code, generated documentation,
|
|
46
|
+
and conversions to other media types.
|
|
47
|
+
|
|
48
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
49
|
+
Object form, made available under the License, as indicated by a
|
|
50
|
+
copyright notice that is included in or attached to the work
|
|
51
|
+
(an example is provided in the Appendix below).
|
|
52
|
+
|
|
53
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
54
|
+
form, that is based on (or derived from) the Work and for which the
|
|
55
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
56
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
57
|
+
of this License, Derivative Works shall not include works that remain
|
|
58
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
59
|
+
the Work and Derivative Works thereof.
|
|
60
|
+
|
|
61
|
+
"Contribution" shall mean any work of authorship, including
|
|
62
|
+
the original version of the Work and any modifications or additions
|
|
63
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
64
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
65
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
66
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
67
|
+
means any form of electronic, verbal, or written communication sent
|
|
68
|
+
to the Licensor or its representatives, including but not limited to
|
|
69
|
+
communication on electronic mailing lists, source code control systems,
|
|
70
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
71
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
72
|
+
excluding communication that is conspicuously marked or otherwise
|
|
73
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
74
|
+
|
|
75
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
76
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
77
|
+
subsequently incorporated within the Work.
|
|
78
|
+
|
|
79
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
80
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
81
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
82
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
83
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
84
|
+
Work and such Derivative Works in Source or Object form.
|
|
85
|
+
|
|
86
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
87
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
88
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
89
|
+
(except as stated in this section) patent license to make, have made,
|
|
90
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
91
|
+
where such license applies only to those patent claims licensable
|
|
92
|
+
by such Contributor that are necessarily infringed by their
|
|
93
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
94
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
95
|
+
institute patent litigation against any entity (including a
|
|
96
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
97
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
98
|
+
or contributory patent infringement, then any patent licenses
|
|
99
|
+
granted to You under this License for that Work shall terminate
|
|
100
|
+
as of the date such litigation is filed.
|
|
101
|
+
|
|
102
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
103
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
104
|
+
modifications, and in Source or Object form, provided that You
|
|
105
|
+
meet the following conditions:
|
|
106
|
+
|
|
107
|
+
(a) You must give any other recipients of the Work or
|
|
108
|
+
Derivative Works a copy of this License; and
|
|
109
|
+
|
|
110
|
+
(b) You must cause any modified files to carry prominent notices
|
|
111
|
+
stating that You changed the files; and
|
|
112
|
+
|
|
113
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
114
|
+
that You distribute, all copyright, patent, trademark, and
|
|
115
|
+
attribution notices from the Source form of the Work,
|
|
116
|
+
excluding those notices that do not pertain to any part of
|
|
117
|
+
the Derivative Works; and
|
|
118
|
+
|
|
119
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
120
|
+
distribution, then any Derivative Works that You distribute must
|
|
121
|
+
include a readable copy of the attribution notices contained
|
|
122
|
+
within such NOTICE file, excluding those notices that do not
|
|
123
|
+
pertain to any part of the Derivative Works, in at least one
|
|
124
|
+
of the following places: within a NOTICE text file distributed
|
|
125
|
+
as part of the Derivative Works; within the Source form or
|
|
126
|
+
documentation, if provided along with the Derivative Works; or,
|
|
127
|
+
within a display generated by the Derivative Works, if and
|
|
128
|
+
wherever such third-party notices normally appear. The contents
|
|
129
|
+
of the NOTICE file are for informational purposes only and
|
|
130
|
+
do not modify the License. You may add Your own attribution
|
|
131
|
+
notices within Derivative Works that You distribute, alongside
|
|
132
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
133
|
+
that such additional attribution notices cannot be construed
|
|
134
|
+
as modifying the License.
|
|
135
|
+
|
|
136
|
+
You may add Your own copyright statement to Your modifications and
|
|
137
|
+
may provide additional or different license terms and conditions
|
|
138
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
139
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
140
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
141
|
+
the conditions stated in this License.
|
|
142
|
+
|
|
143
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
144
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
145
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
146
|
+
this License, without any additional terms or conditions.
|
|
147
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
148
|
+
the terms of any separate license agreement you may have executed
|
|
149
|
+
with Licensor regarding such Contributions.
|
|
150
|
+
|
|
151
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
152
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
153
|
+
except as required for reasonable and customary use in describing the
|
|
154
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
155
|
+
|
|
156
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
157
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
158
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
159
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
160
|
+
implied, including, without limitation, any warranties or conditions
|
|
161
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
162
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
163
|
+
appropriateness of using or redistributing the Work and assume any
|
|
164
|
+
risks associated with Your exercise of permissions under this License.
|
|
165
|
+
|
|
166
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
167
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
168
|
+
unless required by applicable law (such as deliberate and grossly
|
|
169
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
170
|
+
liable to You for damages, including any direct, indirect, special,
|
|
171
|
+
incidental, or consequential damages of any character arising as a
|
|
172
|
+
result of this License or out of the use or inability to use the
|
|
173
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
174
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
175
|
+
other commercial damages or losses), even if such Contributor
|
|
176
|
+
has been advised of the possibility of such damages.
|
|
177
|
+
|
|
178
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
179
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
180
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
181
|
+
or other liability obligations and/or rights consistent with this
|
|
182
|
+
License. However, in accepting such obligations, You may act only
|
|
183
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
184
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
185
|
+
defend, and hold each Contributor harmless for any liability
|
|
186
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
187
|
+
of your accepting any such warranty or additional liability.
|
|
188
|
+
|
|
189
|
+
END OF TERMS AND CONDITIONS
|
|
190
|
+
|
|
191
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
192
|
+
|
|
193
|
+
To apply the Apache License to your work, attach the following
|
|
194
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
195
|
+
replaced with your own identifying information. (Don't include
|
|
196
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
197
|
+
comment syntax for the file format. We also recommend that a
|
|
198
|
+
file or class name and description of purpose be included on the
|
|
199
|
+
same "printed page" as the copyright notice for easier
|
|
200
|
+
identification within third-party archives.
|
|
201
|
+
|
|
202
|
+
Copyright [yyyy] [name of copyright owner]
|
|
203
|
+
|
|
204
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
205
|
+
you may not use this file except in compliance with the License.
|
|
206
|
+
You may obtain a copy of the License at
|
|
207
|
+
|
|
208
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
209
|
+
|
|
210
|
+
Unless required by applicable law or agreed to in writing, software
|
|
211
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
212
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
213
|
+
See the License for the specific language governing permissions and
|
|
214
|
+
limitations under the License.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: omnibias-geometry
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Differential geometry on manifolds for omnibias: metric tensor, Christoffel symbols, covariant derivative, the Laplace-Beltrami operator, Riemann/Ricci/scalar curvature, geodesics, exterior calculus (d, wedge, Hodge star, codifferential), and the pullback metric of a learned chart (g = J^T h J) for learned manifolds. Built on the omnibias-fields substrate with cross-backend (torch + jax) parity.
|
|
5
|
+
Author-email: Vardan Grigoryants <vardan@derivon.ai>
|
|
6
|
+
Maintainer-email: Derivon <info@derivon.ai>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/derivon-ai/omnibias
|
|
9
|
+
Project-URL: Documentation, https://omnibias.ai/
|
|
10
|
+
Project-URL: Source, https://github.com/derivon-ai/omnibias
|
|
11
|
+
Project-URL: Issues, https://github.com/derivon-ai/omnibias/issues
|
|
12
|
+
Project-URL: Changelog, https://github.com/derivon-ai/omnibias/blob/main/CHANGELOG.md
|
|
13
|
+
Keywords: differential-geometry,riemannian-geometry,laplace-beltrami,curvature,exterior-calculus,pullback-metric,learned-manifolds,scientific-machine-learning
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: omnibias-core>=0.2.0
|
|
30
|
+
Requires-Dist: omnibias-fields>=0.1.0
|
|
31
|
+
Requires-Dist: numpy>=1.24
|
|
32
|
+
Provides-Extra: torch
|
|
33
|
+
Requires-Dist: omnibias-fields[torch]; extra == "torch"
|
|
34
|
+
Requires-Dist: torch>=2.0; extra == "torch"
|
|
35
|
+
Provides-Extra: jax
|
|
36
|
+
Requires-Dist: omnibias-fields[jax]; extra == "jax"
|
|
37
|
+
Requires-Dist: jax>=0.4.30; extra == "jax"
|
|
38
|
+
Requires-Dist: jaxlib>=0.4.30; extra == "jax"
|
|
39
|
+
Provides-Extra: atlas
|
|
40
|
+
Requires-Dist: omnibias-partition>=0.1.0a1; extra == "atlas"
|
|
41
|
+
Provides-Extra: all
|
|
42
|
+
Requires-Dist: omnibias-geometry[jax,torch]; extra == "all"
|
|
43
|
+
Provides-Extra: test
|
|
44
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
45
|
+
Requires-Dist: numpy>=1.24; extra == "test"
|
|
46
|
+
Requires-Dist: sympy>=1.12; extra == "test"
|
|
47
|
+
Provides-Extra: dev
|
|
48
|
+
Requires-Dist: omnibias-geometry[all,atlas,test]; extra == "dev"
|
|
49
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
50
|
+
Requires-Dist: mypy>=1.5; extra == "dev"
|
|
51
|
+
Dynamic: license-file
|
|
52
|
+
|
|
53
|
+
# omnibias-geometry
|
|
54
|
+
|
|
55
|
+
**Status: Beta (v0.2.0).**
|
|
56
|
+
|
|
57
|
+
Differential geometry on manifolds, built on the `omnibias-fields` substrate with
|
|
58
|
+
cross-backend (PyTorch + JAX) parity:
|
|
59
|
+
|
|
60
|
+
- metric tensor `g_ij`, inverse metric `g^{ij}`, volume element `sqrt|g|`
|
|
61
|
+
- Christoffel symbols `Gamma^k_ij`
|
|
62
|
+
- covariant derivative `nabla` (scalar / vector / one-form)
|
|
63
|
+
- the **Laplace-Beltrami operator** `Delta_g f`
|
|
64
|
+
- Riemann / Ricci / scalar curvature
|
|
65
|
+
- the geodesic equation RHS
|
|
66
|
+
- exterior calculus: `d`, wedge, Hodge star, codifferential (see Phase 4)
|
|
67
|
+
- the **pullback metric** `g = JᵀhJ` of a learned chart `phi: R^d -> R^n`
|
|
68
|
+
(analytic or neural), turning curvature / Laplace-Beltrami into tools for
|
|
69
|
+
*learned* manifolds
|
|
70
|
+
- gated chart scan (`omnibias.geometry.scan`; discrete `C_L`, not SO(2)/SO(3))
|
|
71
|
+
and shipped Wilson-line holonomy band (`omnibias.geometry.gauge.band`;
|
|
72
|
+
closed form only abelian + transverse-constant; no Yang-Mills /
|
|
73
|
+
mass-gap claim)
|
|
74
|
+
|
|
75
|
+
## Install
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pip install "omnibias-geometry[torch]" # or [jax], or [all]
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Define a manifold
|
|
82
|
+
|
|
83
|
+
A metric is given by a *per-point* callable `g_point(x): (d,) -> (d, d)` written
|
|
84
|
+
with backend ops (so it is `vmap`/autodiff compatible):
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
import torch
|
|
88
|
+
from omnibias.geometry import ManifoldSpec, MetricSpec
|
|
89
|
+
from omnibias.geometry.torch import ops as geo
|
|
90
|
+
|
|
91
|
+
R = 1.0
|
|
92
|
+
def sphere_g(x): # x = (theta, phi)
|
|
93
|
+
theta = x[0]
|
|
94
|
+
z = 0.0 * theta
|
|
95
|
+
return torch.stack([
|
|
96
|
+
torch.stack([R**2 + z, z]),
|
|
97
|
+
torch.stack([z, R**2 * torch.sin(theta) ** 2]),
|
|
98
|
+
])
|
|
99
|
+
|
|
100
|
+
sphere = ManifoldSpec("S2", 2, MetricSpec(sphere_g, dim=2))
|
|
101
|
+
coords = torch.tensor([[1.0, 0.5], [2.0, 3.0]], dtype=torch.float64)
|
|
102
|
+
|
|
103
|
+
geo.scalar_curvature(coords, sphere) # ~ 2 / R^2
|
|
104
|
+
geo.christoffel(coords, sphere) # (B, k, i, j)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
`laplace_beltrami` and `covariant_derivative` additionally take a
|
|
108
|
+
`FieldState` (any `omnibias-fields` field):
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
from omnibias.fields._core.components import ComponentSpec
|
|
112
|
+
from omnibias.fields._core.coords import CoordinateSpec
|
|
113
|
+
from omnibias.pinn.torch.fields.one_layer import OneLayerVectorField
|
|
114
|
+
|
|
115
|
+
field = OneLayerVectorField(
|
|
116
|
+
coordinate_spec=CoordinateSpec(("theta", "phi")),
|
|
117
|
+
components=ComponentSpec(("f", "vx", "vy")), hidden=16, base="tanh",
|
|
118
|
+
)
|
|
119
|
+
state = field(coords)
|
|
120
|
+
|
|
121
|
+
geo.laplace_beltrami(state, "f", sphere) # (B,)
|
|
122
|
+
geo.covariant_derivative(state, ("vx", "vy"), sphere, kind="vector")
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Learned manifolds (pullback metric)
|
|
126
|
+
|
|
127
|
+
Hand a chart `phi: R^d -> R^n` to a `ChartSpec`; the induced metric `g = JᵀhJ`
|
|
128
|
+
(with `J` by autodiff) plugs straight into every operator above:
|
|
129
|
+
|
|
130
|
+
```python
|
|
131
|
+
from omnibias.geometry import ChartSpec
|
|
132
|
+
from omnibias.geometry.torch import ops as geo
|
|
133
|
+
|
|
134
|
+
def phi(x): # the standard S^2 embedding, x = (theta, phi)
|
|
135
|
+
th, ph = x[0], x[1]
|
|
136
|
+
return torch.stack([torch.sin(th)*torch.cos(ph),
|
|
137
|
+
torch.sin(th)*torch.sin(ph), torch.cos(th)])
|
|
138
|
+
|
|
139
|
+
chart = ChartSpec(phi=phi, domain_dim=2, ambient_dim=3, name="S2")
|
|
140
|
+
manifold = ManifoldSpec("S2", 2, geo.metric_spec_from_chart(chart))
|
|
141
|
+
geo.scalar_curvature(coords, manifold) # ~ 2 (recovers the round sphere)
|
|
142
|
+
geo.pullback_metric(coords, chart) # (B, 2, 2) = diag(1, sin^2 theta)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
`phi` can equally be a neural network: omnibias then supplies exact curvature and
|
|
146
|
+
Laplace-Beltrami on the *learned* manifold.
|
|
147
|
+
|
|
148
|
+
## Two exact mechanisms, one consistent stack
|
|
149
|
+
|
|
150
|
+
`omnibias-geometry` is **exact** end-to-end. It uses two equally-exact
|
|
151
|
+
mechanisms, depending on what is being differentiated:
|
|
152
|
+
|
|
153
|
+
| Quantity | Mechanism | Why |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| **Field-function derivatives** (`grad f`, `hess f`, `Δ_g f` applied to the field) | **Closed-form sigma-tower** — one forward pass at every order, bit-identical across torch / JAX, scales as `O(1)` in input dim. | The field is a Riccati-activation neural field; `omnibias-fields` exposes the closed-form recurrence. |
|
|
156
|
+
| **Metric derivatives** inside Christoffel symbols, Riemann / Ricci / scalar curvature | **Forward-mode autodiff of the analytic per-point metric `g(x)`** — exact to machine precision (not a finite-difference approximation). | A user-supplied metric `g_point(x)` is an arbitrary analytic Python function; the right tool is exact forward-mode AD, not a sigma-tower recurrence. |
|
|
157
|
+
|
|
158
|
+
Both paths produce identical results to a sympy symbolic reference (within
|
|
159
|
+
float64 ULPs) on the analytic round sphere — `scalar curvature = 2/R²`,
|
|
160
|
+
`Ricci = g/R²`, `Δ_{S²} cos(θ) = -2 cos(θ)` — and to torch ↔ jax parity at
|
|
161
|
+
`rtol = 1e-9`. See [`GEOMETRY_DERIVATIONS.md`](GEOMETRY_DERIVATIONS.md) for
|
|
162
|
+
the index conventions and the per-op derivation, and
|
|
163
|
+
[`docs/scope-and-guarantees.md`](../../docs/scope-and-guarantees.md) for the
|
|
164
|
+
project-wide definition of "closed-form" vs "autodiff-exact".
|
|
165
|
+
|
|
166
|
+
## Validation
|
|
167
|
+
|
|
168
|
+
Every operator is checked against (1) the analytic round sphere
|
|
169
|
+
(`scalar curvature = 2/R^2`, `Ricci = g/R^2`, eigenfunction
|
|
170
|
+
`Delta_{S^2} cos(theta) = -2 cos(theta)`), (2) a sympy symbolic computation, and
|
|
171
|
+
(3) torch/jax cross-backend parity, all in float64.
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
Apache-2.0. See [`LICENSE`](LICENSE) and [`../../LICENSING.md`](../../LICENSING.md).
|
|
176
|
+
You never need a commercial licence for this package.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# omnibias-geometry
|
|
2
|
+
|
|
3
|
+
**Status: Beta (v0.2.0).**
|
|
4
|
+
|
|
5
|
+
Differential geometry on manifolds, built on the `omnibias-fields` substrate with
|
|
6
|
+
cross-backend (PyTorch + JAX) parity:
|
|
7
|
+
|
|
8
|
+
- metric tensor `g_ij`, inverse metric `g^{ij}`, volume element `sqrt|g|`
|
|
9
|
+
- Christoffel symbols `Gamma^k_ij`
|
|
10
|
+
- covariant derivative `nabla` (scalar / vector / one-form)
|
|
11
|
+
- the **Laplace-Beltrami operator** `Delta_g f`
|
|
12
|
+
- Riemann / Ricci / scalar curvature
|
|
13
|
+
- the geodesic equation RHS
|
|
14
|
+
- exterior calculus: `d`, wedge, Hodge star, codifferential (see Phase 4)
|
|
15
|
+
- the **pullback metric** `g = JᵀhJ` of a learned chart `phi: R^d -> R^n`
|
|
16
|
+
(analytic or neural), turning curvature / Laplace-Beltrami into tools for
|
|
17
|
+
*learned* manifolds
|
|
18
|
+
- gated chart scan (`omnibias.geometry.scan`; discrete `C_L`, not SO(2)/SO(3))
|
|
19
|
+
and shipped Wilson-line holonomy band (`omnibias.geometry.gauge.band`;
|
|
20
|
+
closed form only abelian + transverse-constant; no Yang-Mills /
|
|
21
|
+
mass-gap claim)
|
|
22
|
+
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install "omnibias-geometry[torch]" # or [jax], or [all]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Define a manifold
|
|
30
|
+
|
|
31
|
+
A metric is given by a *per-point* callable `g_point(x): (d,) -> (d, d)` written
|
|
32
|
+
with backend ops (so it is `vmap`/autodiff compatible):
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
import torch
|
|
36
|
+
from omnibias.geometry import ManifoldSpec, MetricSpec
|
|
37
|
+
from omnibias.geometry.torch import ops as geo
|
|
38
|
+
|
|
39
|
+
R = 1.0
|
|
40
|
+
def sphere_g(x): # x = (theta, phi)
|
|
41
|
+
theta = x[0]
|
|
42
|
+
z = 0.0 * theta
|
|
43
|
+
return torch.stack([
|
|
44
|
+
torch.stack([R**2 + z, z]),
|
|
45
|
+
torch.stack([z, R**2 * torch.sin(theta) ** 2]),
|
|
46
|
+
])
|
|
47
|
+
|
|
48
|
+
sphere = ManifoldSpec("S2", 2, MetricSpec(sphere_g, dim=2))
|
|
49
|
+
coords = torch.tensor([[1.0, 0.5], [2.0, 3.0]], dtype=torch.float64)
|
|
50
|
+
|
|
51
|
+
geo.scalar_curvature(coords, sphere) # ~ 2 / R^2
|
|
52
|
+
geo.christoffel(coords, sphere) # (B, k, i, j)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`laplace_beltrami` and `covariant_derivative` additionally take a
|
|
56
|
+
`FieldState` (any `omnibias-fields` field):
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from omnibias.fields._core.components import ComponentSpec
|
|
60
|
+
from omnibias.fields._core.coords import CoordinateSpec
|
|
61
|
+
from omnibias.pinn.torch.fields.one_layer import OneLayerVectorField
|
|
62
|
+
|
|
63
|
+
field = OneLayerVectorField(
|
|
64
|
+
coordinate_spec=CoordinateSpec(("theta", "phi")),
|
|
65
|
+
components=ComponentSpec(("f", "vx", "vy")), hidden=16, base="tanh",
|
|
66
|
+
)
|
|
67
|
+
state = field(coords)
|
|
68
|
+
|
|
69
|
+
geo.laplace_beltrami(state, "f", sphere) # (B,)
|
|
70
|
+
geo.covariant_derivative(state, ("vx", "vy"), sphere, kind="vector")
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Learned manifolds (pullback metric)
|
|
74
|
+
|
|
75
|
+
Hand a chart `phi: R^d -> R^n` to a `ChartSpec`; the induced metric `g = JᵀhJ`
|
|
76
|
+
(with `J` by autodiff) plugs straight into every operator above:
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
from omnibias.geometry import ChartSpec
|
|
80
|
+
from omnibias.geometry.torch import ops as geo
|
|
81
|
+
|
|
82
|
+
def phi(x): # the standard S^2 embedding, x = (theta, phi)
|
|
83
|
+
th, ph = x[0], x[1]
|
|
84
|
+
return torch.stack([torch.sin(th)*torch.cos(ph),
|
|
85
|
+
torch.sin(th)*torch.sin(ph), torch.cos(th)])
|
|
86
|
+
|
|
87
|
+
chart = ChartSpec(phi=phi, domain_dim=2, ambient_dim=3, name="S2")
|
|
88
|
+
manifold = ManifoldSpec("S2", 2, geo.metric_spec_from_chart(chart))
|
|
89
|
+
geo.scalar_curvature(coords, manifold) # ~ 2 (recovers the round sphere)
|
|
90
|
+
geo.pullback_metric(coords, chart) # (B, 2, 2) = diag(1, sin^2 theta)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`phi` can equally be a neural network: omnibias then supplies exact curvature and
|
|
94
|
+
Laplace-Beltrami on the *learned* manifold.
|
|
95
|
+
|
|
96
|
+
## Two exact mechanisms, one consistent stack
|
|
97
|
+
|
|
98
|
+
`omnibias-geometry` is **exact** end-to-end. It uses two equally-exact
|
|
99
|
+
mechanisms, depending on what is being differentiated:
|
|
100
|
+
|
|
101
|
+
| Quantity | Mechanism | Why |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| **Field-function derivatives** (`grad f`, `hess f`, `Δ_g f` applied to the field) | **Closed-form sigma-tower** — one forward pass at every order, bit-identical across torch / JAX, scales as `O(1)` in input dim. | The field is a Riccati-activation neural field; `omnibias-fields` exposes the closed-form recurrence. |
|
|
104
|
+
| **Metric derivatives** inside Christoffel symbols, Riemann / Ricci / scalar curvature | **Forward-mode autodiff of the analytic per-point metric `g(x)`** — exact to machine precision (not a finite-difference approximation). | A user-supplied metric `g_point(x)` is an arbitrary analytic Python function; the right tool is exact forward-mode AD, not a sigma-tower recurrence. |
|
|
105
|
+
|
|
106
|
+
Both paths produce identical results to a sympy symbolic reference (within
|
|
107
|
+
float64 ULPs) on the analytic round sphere — `scalar curvature = 2/R²`,
|
|
108
|
+
`Ricci = g/R²`, `Δ_{S²} cos(θ) = -2 cos(θ)` — and to torch ↔ jax parity at
|
|
109
|
+
`rtol = 1e-9`. See [`GEOMETRY_DERIVATIONS.md`](GEOMETRY_DERIVATIONS.md) for
|
|
110
|
+
the index conventions and the per-op derivation, and
|
|
111
|
+
[`docs/scope-and-guarantees.md`](../../docs/scope-and-guarantees.md) for the
|
|
112
|
+
project-wide definition of "closed-form" vs "autodiff-exact".
|
|
113
|
+
|
|
114
|
+
## Validation
|
|
115
|
+
|
|
116
|
+
Every operator is checked against (1) the analytic round sphere
|
|
117
|
+
(`scalar curvature = 2/R^2`, `Ricci = g/R^2`, eigenfunction
|
|
118
|
+
`Delta_{S^2} cos(theta) = -2 cos(theta)`), (2) a sympy symbolic computation, and
|
|
119
|
+
(3) torch/jax cross-backend parity, all in float64.
|
|
120
|
+
|
|
121
|
+
## License
|
|
122
|
+
|
|
123
|
+
Apache-2.0. See [`LICENSE`](LICENSE) and [`../../LICENSING.md`](../../LICENSING.md).
|
|
124
|
+
You never need a commercial licence for this package.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "omnibias-geometry"
|
|
7
|
+
version = "0.2.0"
|
|
8
|
+
description = "Differential geometry on manifolds for omnibias: metric tensor, Christoffel symbols, covariant derivative, the Laplace-Beltrami operator, Riemann/Ricci/scalar curvature, geodesics, exterior calculus (d, wedge, Hodge star, codifferential), and the pullback metric of a learned chart (g = J^T h J) for learned manifolds. Built on the omnibias-fields substrate with cross-backend (torch + jax) parity."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "Vardan Grigoryants", email = "vardan@derivon.ai" }]
|
|
14
|
+
maintainers = [{ name = "Derivon", email = "info@derivon.ai" }]
|
|
15
|
+
keywords = [
|
|
16
|
+
"differential-geometry",
|
|
17
|
+
"riemannian-geometry",
|
|
18
|
+
"laplace-beltrami",
|
|
19
|
+
"curvature",
|
|
20
|
+
"exterior-calculus",
|
|
21
|
+
"pullback-metric",
|
|
22
|
+
"learned-manifolds",
|
|
23
|
+
"scientific-machine-learning",
|
|
24
|
+
]
|
|
25
|
+
classifiers = [
|
|
26
|
+
"Development Status :: 4 - Beta",
|
|
27
|
+
"Intended Audience :: Science/Research",
|
|
28
|
+
"Programming Language :: Python :: 3",
|
|
29
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
30
|
+
"Programming Language :: Python :: 3.10",
|
|
31
|
+
"Programming Language :: Python :: 3.11",
|
|
32
|
+
"Programming Language :: Python :: 3.12",
|
|
33
|
+
"Programming Language :: Python :: 3.13",
|
|
34
|
+
"Programming Language :: Python :: 3.14",
|
|
35
|
+
"Topic :: Scientific/Engineering :: Mathematics",
|
|
36
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
37
|
+
"Typing :: Typed",
|
|
38
|
+
]
|
|
39
|
+
# ``omnibias-core`` arrives transitively through ``omnibias-fields``, but
|
|
40
|
+
# ``omnibias.geometry.gauge.transfer`` imports ``omnibias.core.verified`` directly
|
|
41
|
+
# (interval arithmetic, the spectral-gap engines, ``besseli_iv``), so the dependency
|
|
42
|
+
# is declared rather than inherited.
|
|
43
|
+
dependencies = ["omnibias-core>=0.2.0", "omnibias-fields>=0.1.0", "numpy>=1.24"]
|
|
44
|
+
|
|
45
|
+
[project.optional-dependencies]
|
|
46
|
+
torch = ["omnibias-fields[torch]", "torch>=2.0"]
|
|
47
|
+
jax = ["omnibias-fields[jax]", "jax>=0.4.30", "jaxlib>=0.4.30"]
|
|
48
|
+
# The learned-atlas bridge (``omnibias.geometry.atlas``) is built on the alpha
|
|
49
|
+
# ``omnibias-partition`` keystone; it is an opt-in extra so a default
|
|
50
|
+
# ``omnibias-geometry`` install never pulls an alpha prerelease.
|
|
51
|
+
atlas = ["omnibias-partition>=0.1.0a1"]
|
|
52
|
+
all = ["omnibias-geometry[torch,jax]"]
|
|
53
|
+
test = [
|
|
54
|
+
"pytest>=7.0",
|
|
55
|
+
"numpy>=1.24",
|
|
56
|
+
"sympy>=1.12",
|
|
57
|
+
]
|
|
58
|
+
dev = [
|
|
59
|
+
"omnibias-geometry[all,atlas,test]",
|
|
60
|
+
"ruff>=0.1.0",
|
|
61
|
+
"mypy>=1.5",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[project.urls]
|
|
65
|
+
Homepage = "https://github.com/derivon-ai/omnibias"
|
|
66
|
+
Documentation = "https://omnibias.ai/"
|
|
67
|
+
Source = "https://github.com/derivon-ai/omnibias"
|
|
68
|
+
Issues = "https://github.com/derivon-ai/omnibias/issues"
|
|
69
|
+
Changelog = "https://github.com/derivon-ai/omnibias/blob/main/CHANGELOG.md"
|
|
70
|
+
|
|
71
|
+
[tool.setuptools.packages.find]
|
|
72
|
+
where = ["src"]
|
|
73
|
+
include = ["omnibias.*"]
|
|
74
|
+
|
|
75
|
+
[tool.setuptools.package-data]
|
|
76
|
+
"omnibias.geometry" = ["py.typed"]
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# Copyright (C) 2026 Derivon
|
|
3
|
+
"""omnibias-geometry: differential geometry on manifolds.
|
|
4
|
+
|
|
5
|
+
Metric tensor, Christoffel symbols, covariant derivative, the Laplace-Beltrami
|
|
6
|
+
operator, Riemann / Ricci / scalar curvature, geodesics, and exterior calculus
|
|
7
|
+
(``d``, wedge, Hodge star, codifferential), built on the ``omnibias-fields``
|
|
8
|
+
substrate with cross-backend (torch + jax) parity.
|
|
9
|
+
|
|
10
|
+
The pure-Python schemas (:class:`MetricSpec`, :class:`ManifoldSpec`) live in
|
|
11
|
+
:mod:`omnibias.geometry._core`; the backend ops live in
|
|
12
|
+
``omnibias.geometry.torch`` and ``omnibias.geometry.jax``.
|
|
13
|
+
|
|
14
|
+
The :mod:`omnibias.geometry.gauge` submodule (**alpha**, folded in from the former
|
|
15
|
+
standalone ``omnibias-gauge`` package) is the non-abelian extension: Lie algebras,
|
|
16
|
+
Lie-algebra-valued forms, gauge connections, the field strength ``F = dA + g[A, A]``,
|
|
17
|
+
the Yang-Mills operator, characteristic classes, and an SU(2) lattice Monte-Carlo.
|
|
18
|
+
It is imported on demand and is not part of the eager ``omnibias.geometry`` API.
|
|
19
|
+
|
|
20
|
+
.. important::
|
|
21
|
+
|
|
22
|
+
**Bit-parity with the PyTorch twin requires 64-bit JAX** --
|
|
23
|
+
``jax.config.update("jax_enable_x64", True)`` before the first JAX array is
|
|
24
|
+
created (or ``JAX_ENABLE_X64=1``). JAX otherwise truncates to ``float32``
|
|
25
|
+
while PyTorch uses ``float64``, so the twins stay internally consistent but
|
|
26
|
+
agree only to ``float32`` tolerance. Where a value feeds a threshold, a
|
|
27
|
+
rounding step or an ``argmax``, that is enough to change the decision rather
|
|
28
|
+
than just the last digits. See :mod:`omnibias.jax.precision`.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from __future__ import annotations
|
|
32
|
+
|
|
33
|
+
from importlib.metadata import PackageNotFoundError as _PkgNotFound
|
|
34
|
+
from importlib.metadata import version as _pkg_version
|
|
35
|
+
|
|
36
|
+
from omnibias.geometry._core import (
|
|
37
|
+
AmbientMetricFn,
|
|
38
|
+
ChartFn,
|
|
39
|
+
ChartSpec,
|
|
40
|
+
DifferentialForm,
|
|
41
|
+
ManifoldSpec,
|
|
42
|
+
MetricFn,
|
|
43
|
+
MetricSpec,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
try:
|
|
47
|
+
__version__ = _pkg_version("omnibias-geometry")
|
|
48
|
+
except _PkgNotFound: # pragma: no cover - bare source checkout
|
|
49
|
+
__version__ = "0.0.0+unknown"
|
|
50
|
+
|
|
51
|
+
# Founding-idea lineage (see docs/theory.md "Two senses of collapse").
|
|
52
|
+
__lineage__ = "bias collapse"
|
|
53
|
+
|
|
54
|
+
__all__ = [
|
|
55
|
+
"AmbientMetricFn",
|
|
56
|
+
"ChartFn",
|
|
57
|
+
"ChartSpec",
|
|
58
|
+
"DifferentialForm",
|
|
59
|
+
"ManifoldSpec",
|
|
60
|
+
"MetricFn",
|
|
61
|
+
"MetricSpec",
|
|
62
|
+
"__lineage__",
|
|
63
|
+
"__version__",
|
|
64
|
+
]
|