Rolling up #443, #442, #441, 439 #444
Conversation
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…nded HKT. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ded HKT. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ounded HKT. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…nded HKT. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ounded HKT. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ble Monad implementation without Applicative. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
prepared implementation. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
… generic to work with new DoubleFloat Type. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…t Type. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ions in all gauge theories. Made ADM ops generic over Field. Updated examples. Added docs. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ld generics. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
… operations at the 30/21 digit. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #444 +/- ##
==========================================
- Coverage 92.91% 88.83% -4.08%
==========================================
Files 777 831 +54
Lines 31708 36977 +5269
==========================================
+ Hits 29460 32848 +3388
- Misses 2248 4129 +1881 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||||||||||||||||||||
User description
Rolling up a number of issues in a single new year PR.
Describe your changes
Closes #443 #442 #441 #439
Issue ticket number and link
Closes #443 #442 #441 #439
Code checklist before requesting a review
For details on make, please see BUILD.md
Note: The CI runs all of the above and fixing things before they hit CI speeds
up the review and merge process. Thank you.
PR Type
Enhancement, Tests
Description
Comprehensive physics theory implementations: General Relativity (Schwarzschild, Kerr, FLRW metrics, ADM formalism), Electroweak theory with radiative corrections, QCD with SU(3) gauge theory, and electromagnetic gauge field operations
Advanced differential geometry types:
CurvatureTensorwith Riemann/Weyl/Ricci symmetries,DifferentialFormfor de Rham cohomology, and Stokes adjunction (d ⊣ ∂) for discrete differential geometryHKT3 witness implementations for gauge fields, sparse matrices, simplicial complexes, and multivectors using standardized
deep_causality_hafttrait system withNoConstraintpatternHigh-precision arithmetic:
DoubleFloattrait implementation with transcendental functions (sin, cos, tan, exp, ln, sqrt) using Taylor series and Newton-Raphson methodsExtensive test coverage: 40+ QED tests, comprehensive GR tests (metrics, curvature invariants, ADM constraints, geodesic deviation), DoubleFloat transcendental function tests, and HKT trait validation
Production-ready physics pipelines: General Relativity spacetime analysis and electromagnetic wave analysis via
CausalEffectPropagationProcesswith modular causal compositionRefactored HKT witness types across multiple modules to use simplified trait signatures and
Satisfies<NoConstraint>pattern, removing complex tensor constraintsDiagram Walkthrough
File Walkthrough
14 files
hkt_gauge_witness.rs
HKT3 witness implementation for gauge field operationsdeep_causality_topology/src/extensions/hkt_gauge_field/hkt_gauge_witness.rs
GaugeFieldenabling higher-kinded typeoperations like
Promonad(field merging) andParametricMonad(gaugetransformations)
GaugeFieldHKTwrapper andGaugeFieldDataforstoring gauge field data without direct
GaugeGroupconstraintsmerge_fields(),gauge_transform(),compute_field_strength_abelian(),compute_field_strength_non_abelian(), andgauge_rotation()B vectors with West Coast signature convention
mod.rs
Curvature tensor type with differential geometry operationsdeep_causality_topology/src/types/curvature_tensor/mod.rs
CurvatureTensorrank-4 type for Riemann curvature withsymmetry properties (
Riemann,Weyl,Ricci,None)tensor/scalar computation, Kretschmann scalar with full metric index
raising
tensor, Bianchi identity verification) for differential geometry
creation
electroweak_params.rs
Electroweak theory parameters and precision calculationsdeep_causality_physics/src/theories/electroweak/electroweak_params.rs
ElectroweakParamsconfiguration for SU(2)_L × U(1)_Ysymmetry breaking with precision radiative corrections
coupling constants, W/Z masses with one-loop corrections
(neutrinos, leptons, quarks) with color and QCD factors
verification, and custodial symmetry tests via ρ-parameter
mod.rs
Differential forms for de Rham cohomology and integrationdeep_causality_topology/src/types/differential_form/mod.rs
DifferentialFormtype for k-forms on manifolds withantisymmetric coefficient tensors
generator-based form creation without requiring
Defaulttraitcoefficient mapping
components C(n,k) in k-forms on n-dimensional manifolds
traits_float.rs
Float trait implementation for DoubleFloat with transcendentalfunctionsdeep_causality_num/src/float_double/traits_float.rs
Floattrait forDoubleFloatwith high-precisionmathematical operations
Taylor series and Newton-Raphson methods
precision
cases (NaN, infinity, zero)
mod.rs
Refactor HKT multifield witness to use haft trait systemdeep_causality_multivector/src/extensions/hkt_multifield/mod.rs
deep_causality_hafttrait systemwith
NoConstraintFunctor,Applicative,Monad, andCoMonadimplementationsusing standardized trait signatures
TensorDataconstraints and replaces withSatisfiespattern
Puretrait implementation with panic for context-dependentfield creation
main.rs
General Relativity gauge field pipeline with causal compositionexamples/physics_examples/gauge_gr/main.rs
spacetime analysis via
CausalEffectPropagationProcessinvariants, geodesic analysis, ADM formalism, and horizon detection
f32,f64,DoubleFloat) viaFloatTypetype alias and
float_from_f64!macroforces, time dilation, and event horizon properties
ext_hkt.rs
Refactor sparse matrix HKT witness with improved applicative logicdeep_causality_sparse/src/extensions/ext_hkt.rs
deep_causality_hafttraitsystem with
NoConstraintandSatisfiesApplicative::applywithscalar broadcast and element-wise intersection
shift_viewhelper function for spatial comonad extension withproper index translation
Adjunctiontrait with improvedunitandcounitimplementations and helper functions
metrics.rs
Advanced General Relativity metric constructors and computationsdeep_causality_physics/src/theories/general_relativity/metrics.rs
Schwarzschild, Kerr, and FLRW
singularities and numerical instabilities
spacetime analytically
definition and coordinate systems
gr_ops_impl.rs
General Relativity Operations Implementation with ADM Formalismdeep_causality_physics/src/theories/general_relativity/gr_ops_impl.rs
GrOpstrait for General Relativity with methods forcomputing Ricci tensor, Ricci scalar, Einstein tensor, and Kretschmann
scalar
kernels
metric extraction and covariant divergence
CurvatureTensorandCurvatureTensorVectorfor HKT-safe tensor operations
qcd.rs
Quantum Chromodynamics Kernels for SU(3) Gauge Theorydeep_causality_physics/src/nuclear/qcd.rs
constants for QCD
triplet fields
constant computation
optional Coulomb term
hkt_adjunction_stokes.rs
Stokes Adjunction for Differential Geometry Integrationdeep_causality_topology/src/extensions/hkt_gauge_field/hkt_adjunction_stokes.rs
boundary operator
StokesContextfor managing simplicial complex topology andoperations
Adjunctiontrait with unit, counit, and adjunct operationsfor differential forms and chains
exterior_derivative,boundary, andintegratefor discrete differential geometrygauge_em_ops_impl.rs
Electromagnetic Gauge Field Operations Implementationdeep_causality_physics/src/theories/electromagnetism/gauge_em_ops_impl.rs
GaugeEmOpstrait for U(1) gauge field electromagneticoperations
waves
Poynting vector, Lorentz invariants
product, cross product)
mod.rs
Simplicial Complex Chain HKT Trait Implementationsdeep_causality_topology/src/extensions/hkt_simplicial_complex/mod.rs
Functor,Foldable, andAdjunctiontraits forChainWitnesson simplicial complexes
composition
CsrMatrixWitnessfor sparse matrix operations on chainweights
4 files
gr_tests.rs
General Relativity theory comprehensive test coveragedeep_causality_physics/tests/theories/gr_tests.rs
Schwarzschild, Kerr, and FLRW metrics with curvature invariant
validation
with Christoffel symbol support
antisymmetry preservation
Riemann tensor expansion
em_tests.rs
Comprehensive QED electromagnetic field test suitedeep_causality_physics/tests/theories/em_tests.rs
theory covering 40+ test cases
quantities, and physical properties
zeros, and shape correctness
Lorentz force calculations
causal_tensor_ext_hkt_tests.rs
HKT Tensor Tests Refactoring with Type Updatesdeep_causality_tensor/tests/extensions/causal_tensor_ext_hkt_tests.rs
deep_causality_hafti32tof64for consistency with physicsapplications
Applicativetests to use function pointers andBoxforproper type constraints
CoMonadtest documentationdouble_transcendental_tests.rs
DoubleFloat Transcendental Function Test Suitedeep_causality_num/tests/float_double/double_transcendental_tests.rs
DoubleFloattranscendental functions(exp, ln, sin, cos, etc.)
inverses)
PI,E,LN_2) and precision of high-precisionarithmetic
1 files
main.rs
Gauge Theory Electromagnetic Wave Pipeline Exampleexamples/physics_examples/gauge_em/main.rs
CausalEffectPropagationProcessfor EM wave analysiscomputation, energy analysis, radiation analysis, and field
classification
bind_or_errorfor type-safe error propagation through physicsstages
Lorentz invariants
101 files