{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "# Rasayana Shastra & Ashta-Dhatu Alchemy\n## रसायन शास्त्र एवं अष्टधातु तन्त्र · Metallurgical Substrates & Aerodynamic Physics (3 Master Chapters)\n**Format:** decoded chapter suite · **Scope:** Substrate Alchemy & Physics · 3 Chapters\n**Execution:** every code cell below was executed with Python 3.11.15 on 2026-10-07 by scripts/library/sync_library.py; the outputs are the real stdout of that run.\n\n*यह ऐतिहासिक ग्रन्थों पर आधारित पाठ और गणना है, चिकित्सा-परामर्श नहीं। · Text and computation about historical treatises — not medical advice.*\n\n---"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "## Chapter 1: अष्टधातु सम्मिश्रण एवं श्रीयन्त्र ज्यामिति (Ashta-Dhātu Metallurgical Substrate & Śrī Yantra Geometry)\n**Scope:** `Section 1.1 – 1.16` · **Reading:** `15 min study`\n\n### Overview\nInterpretive chapter. Lists the eight metals of the aṣṭa-dhātu and the 43 triangles of the Śrī Yantra; the snippet returns those constants (8, 43). No resonance, impedance or metallurgy is computed. Not a remedy and not for ingestion.\n\n### Ślokas & anvaya\n> **स्वर्णं रूप्यं ताम्रकं च नागं वङ्गं तथापि च ।  \n> तीक्ष्णं कान्तं च रसकं ह्यष्टधातु प्रकीर्तितम् ॥**\n>\n> *svarṇaṃ rūpyaṃ tāmrakaṃ ca nāgaṃ vaṅgaṃ tathāpi ca |  \n> tīkṣṇaṃ kāntaṃ ca rasakaṃ hyaṣṭadhātu prakīrtitam ||*\n>\n> **Meter:** अनुष्टुभ् छन्दः\n>\n> **Source:** स्रोत अपरीक्षित · source unverified — no text in this repository carries this verse; it is not presented as a located quotation. Annex verse: not presented as a classical text.\n\n- **स्वर्णं रूप्यं ताम्रकम्**: Gold, Silver, and Copper\n- **नागं वङ्गं तीक्ष्णम्**: Lead, Tin, and Wrought Iron\n- **कान्तं च रसकम्**: Loadstone (Magnetite) and Zinc (or Mercury)\n- **अष्टधातु प्रकीर्तितम्**: Are declared as the sacred Ashta-Dhatu\n\nGold, Silver, Copper, Lead, Tin, Iron, Magnetite, and Zinc constitute the eight sacred metals known as Ashta-Dhatu.\n\n### Formulation — Śrī Yantra 43-Node Adjacency & Substrate Impedance\n$$Z_{\\text{substrate}} = \\sum_{k=1}^{8} w_k Z_k, \\quad A_{\\text{graph}} \\in \\mathbb{R}^{43 \\times 43}$$\n\nThe snippet returns the stated constants (8 metals, 43); no graph, impedance or resonance is computed."
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": "def ashta_dhatu_resonance():\n    metals = [\"Gold\", \"Silver\", \"Copper\", \"Lead\", \"Tin\", \"Iron\", \"Magnetite\", \"Zinc\"]\n    sri_nodes = 43\n    return {\"metals\": len(metals), \"graph_nodes\": sri_nodes, \"status\": \"Resonance Matrix Verified ✓\"}"
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": "ashta_dhatu_resonance() → {'metals': 8, 'graph_nodes': 43, 'status': 'Resonance Matrix Verified ✓'}\n"
    }
   ],
   "source": "print('ashta_dhatu_resonance()', \"→\", repr(ashta_dhatu_resonance()))"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "**Recorded output (dataset `codeOutput`, verified against the run above):**\n```\nashta_dhatu_resonance() → {'metals': 8, 'graph_nodes': 43, 'status': 'Resonance Matrix Verified ✓'}\n(returns the constants stated in the snippet (8 metal names, 43); the \"status\" field is a hardcoded label)\nComputed by executing this snippet (Python 3.11.15, 2026-10-07).\n```"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "## Chapter 2: पुष्पक विमान भौतिकी एवं डमरू तरङ्ग-शास्त्र (Pushpaka Vimāna Aerodynamic Physics & Ḍamaru Acoustic Waves)\n**Scope:** `Section 2.1 – 2.22` · **Reading:** `18 min study`\n\n### Overview\nInterpretive chapter. Pairs the vimāna of the Vaimānika tradition with the standing-wave formula fₙ = n v ⁄ 2L for n = 1…14; the snippet returns constants (1.618, 14) and computes no aerodynamics.\n\n### Ślokas & anvaya\n> **पक्षोद्घातेन मरुतां वेगं सम्पाद्य खे गतिम् ।  \n> नादब्रह्ममये पीठे विमानं परिकीर्तितम् ॥**\n>\n> *pakṣodghātena marutāṃ vegaṃ sampādya khe gatim |  \n> nādabrahmamaye pīṭhe vimānaṃ parikīrtitam ||*\n>\n> **Meter:** अनुष्टुभ् छन्दः\n>\n> **Source:** स्रोत अपरीक्षित · source unverified — no text in this repository carries this verse; it is not presented as a located quotation. Annex verse: not presented as a classical text.\n\n- **मरुतां वेगं सम्पाद्य**: Generating atmospheric fluid velocity\n- **खे गतिम्**: Achieving controlled flight in space\n- **नादब्रह्ममये पीठे**: Upon the platform of acoustic wave resonance\n\nBy inducing differential atmospheric velocity, movement through the sky is achieved upon the foundation of acoustic wave dynamics.\n\n### Formulation — Acoustic Standing Wave Harmonic Frequency\n$$f_n = \\frac{n v}{2 L}, \\quad n = 1, 2, \\dots, 14 \\quad (\\text{14 Śivasūtra Harmonics})$$\n\nc_l = 1.618 is a constant written in the snippet; no lift or vortex is computed."
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": "def pushpaka_lift_coef():\n    cl_golden = 1.618\n    shiva_harmonics = 14\n    return {\"c_l\": cl_golden, \"harmonics\": shiva_harmonics, \"status\": \"Aerodynamic Lift Stable ✓\"}"
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": "pushpaka_lift_coef() → {'c_l': 1.618, 'harmonics': 14, 'status': 'Aerodynamic Lift Stable ✓'}\n"
    }
   ],
   "source": "print('pushpaka_lift_coef()', \"→\", repr(pushpaka_lift_coef()))"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "**Recorded output (dataset `codeOutput`, verified against the run above):**\n```\npushpaka_lift_coef() → {'c_l': 1.618, 'harmonics': 14, 'status': 'Aerodynamic Lift Stable ✓'}\n(returns the constants stated in the snippet; no aerodynamics is computed)\nComputed by executing this snippet (Python 3.11.15, 2026-10-07).\n```"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "## Chapter 3: ५१ शक्तिपीठ एवं १२ ज्योतिर्लिङ्ग भौगोलिकी (Geodetic Triangulation of 51 Śakti Pīṭhas & 12 Jyotirliṅgas)\n**Scope:** `Section 3.1 – 3.20` · **Reading:** `16 min study`\n\n### Overview\nInterpretive chapter. Counts 51 Śakti Pīṭhas + 12 Jyotirliṅgas + 5 Kedāra sites = 68; no coordinates are in the snippet and no lattice is computed; berry_phase_rad is a constant written in the snippet.\n\n### Ślokas & anvaya\n> **एकाधिकपञ्चाशत्पीठेष्वाधारः शिवकेशवौ ।  \n> केदारनाथ-कामाख्या-कन्याकुमारी-सुसङ्गमः ॥**\n>\n> *ekādhikapañcāśatpīṭheṣvādhāraḥ śivakeśavau |  \n> kedāranātha-kāmākhyā-kanyākumārī-susaṅgamaḥ ||*\n>\n> **Meter:** अनुष्टुभ् छन्दः\n>\n> **Source:** स्रोत अपरीक्षित · source unverified — no text in this repository carries this verse; it is not presented as a located quotation. Annex verse: not presented as a classical text.\n\n- **एकाधिकपञ्चाशत् पीठेषु**: Across the 51 sacred Shakti Peetha sites\n- **केदारनाथ-कामाख्या-कन्याकुमारी**: Kedarnath, Kamakhya, and Kanyakumari\n- **सुसङ्गमः**: Form the supreme geodetic triangle\n\nAcross the 51 sacred Peethas, the triangle bounded by Kedarnath, Kamakhya, and Kanyakumari anchors the sacred geodetic grid.\n\n### Formulation — Great Circle Haversine Distance & Spherical Excess\n$$d = 2 R \\arcsin\\sqrt{\\sin^2\\left(\\frac{\\Delta\\phi}{2}\\right) + \\cos\\phi_1\\cos\\phi_2\\sin^2\\left(\\frac{\\Delta\\lambda}{2}\\right)}$$\n\nThe haversine formula is stated, not applied: the snippet holds no coordinates."
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": "def sacred_geodesy_stats():\n    peethas = 51\n    jyotirlingas = 12\n    kedars = 5\n    return {\"total_sites\": peethas + jyotirlingas + kedars, \"berry_phase_rad\": 0.040479, \"status\": \"Geodetic Lattice Sealed ✓\"}"
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": "sacred_geodesy_stats() → {'total_sites': 68, 'berry_phase_rad': 0.040479, 'status': 'Geodetic Lattice Sealed ✓'}\n"
    }
   ],
   "source": "print('sacred_geodesy_stats()', \"→\", repr(sacred_geodesy_stats()))"
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": "**Recorded output (dataset `codeOutput`, verified against the run above):**\n```\nsacred_geodesy_stats() → {'total_sites': 68, 'berry_phase_rad': 0.040479, 'status': 'Geodetic Lattice Sealed ✓'}\n(total_sites = 51 + 12 + 5 is computed; berry_phase_rad is a constant stated in the snippet)\nComputed by executing this snippet (Python 3.11.15, 2026-10-07).\n```"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}