Skip to main content

hisab_mimamsa/
lib.rs

1//! Hisab-Mimamsa — Theoretical Physics Engine
2//!
3//! **Hisab** (Arabic: حساب — calculation) + **Mimamsa** (Sanskrit: मीमांसा — critical inquiry)
4//!
5//! Computational theoretical physics built on the hisab math foundation.
6//! General relativity, quantum field theory, cosmology, and unified field models.
7//!
8//! # Architecture
9//!
10//! Four domain modules, each feature-gated:
11//!
12//! - [`relativity`] — General & special relativity: spacetime metrics, geodesics,
13//!   Lorentz transforms, gravitational lensing, black hole thermodynamics
14//! - `quantum_field` *(feature `qft`)* — Quantum field theory: field quantization,
15//!   propagators, Feynman diagrams, renormalization (extends kana beyond circuits)
16//! - `cosmology` *(feature `cosmology`)* — Friedmann equations, dark energy models,
17//!   CMB power spectrum, large-scale structure, cosmic expansion history
18//! - `unified` *(feature `unified`)* — Bridge between QFT and GR: effective field
19//!   theory, holographic principle, information-theoretic bounds, fixed point convergence
20//!
21//! # Relationship to Other Crates
22//!
23//! ```text
24//! hisab (math foundation)
25//!   ├── hisab-mimamsa (this) — theoretical physics
26//!   │     ├── relativity — spacetime, geodesics, black holes
27//!   │     ├── quantum_field — QFT, propagators, renormalization
28//!   │     ├── cosmology — Friedmann, CMB, expansion
29//!   │     └── unified — GR+QFT bridge, holographic, fixed point
30//!   ├── kana — quantum mechanics (circuits, states, operators)
31//!   ├── tanmatra — atomic/subatomic (Standard Model, nuclear, decay)
32//!   ├── falak — orbital mechanics (Keplerian, transfers)
33//!   ├── tara — stellar astrophysics (classification, evolution)
34//!   └── jyotish — astronomical computation (ephemeris, calendar)
35//! ```
36//!
37//! # bhava Bridge (Scale 3-7)
38//!
39//! The unified module provides bridge functions for bhava's consciousness model:
40//! - Scale 3: Planetary field → personality manifestation (via jyotish)
41//! - Scale 4: Stellar influence → soul motivation layers (via tara)
42//! - Scale 5: Galactic structure → civilizational personality fields
43//! - Scale 6: Cosmic expansion → manifestation intensity scalar
44//! - Scale 7: Cosmic breath phase → unity/differentiation cycle
45//!
46//! The fixed point at zero (Unity) emerges from the cosmological model:
47//! at heat death / maximum entropy, all fields converge to ground state,
48//! all manifestation intensity → 0.0, all bridge outputs → identity element.
49//!
50//! # Examples
51//!
52//! Special relativity — muon time dilation at 0.994c:
53//!
54//! ```
55//! use hisab_mimamsa::relativity::lorentz;
56//!
57//! let gamma = lorentz::lorentz_factor(0.994 * lorentz::C).unwrap();
58//! assert!((gamma - 9.14).abs() < 0.1);
59//! ```
60//!
61//! General relativity — Schwarzschild radius of the Sun:
62//!
63//! ```
64//! use hisab_mimamsa::relativity::metric;
65//!
66//! let rs = metric::schwarzschild_radius(1.989e30).unwrap();
67//! assert!((rs - 2953.0).abs() < 5.0);
68//! ```
69//!
70//! Black hole thermodynamics — Hawking temperature:
71//!
72//! ```
73//! use hisab_mimamsa::relativity::black_hole;
74//!
75//! let t = black_hole::hawking_temperature(1.989e30).unwrap();
76//! assert!(t > 1e-9 && t < 1e-6);
77//! ```
78
79pub mod constants;
80pub mod error;
81pub mod relativity;
82
83#[cfg(feature = "qft")]
84pub mod quantum_field;
85
86#[cfg(feature = "cosmology")]
87pub mod cosmology;
88
89#[cfg(feature = "unified")]
90pub mod unified;
91
92#[cfg(feature = "logging")]
93pub mod logging;
94
95pub use error::MimamsaError;