Pith. sign in

IndisputableMonolith.Verification.GWTC3RingdownSharedRunner

IndisputableMonolith/Verification/GWTC3RingdownSharedRunner.lean · 97 lines · 13 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending

   1import Mathlib
   2import IndisputableMonolith.Verification.GWTC3RingdownGuardedFamilyScripts
   3
   4/-!
   5# GWTC-3 Ringdown Shared Guarded Family Runner
   6
   7## Status: STRUCTURAL THEOREM (0 sorry, 0 RS-internal axiom; closure 2026-05-22).
   8
   9This module records the refactor that moved controlled-family damping
  10scripts onto a shared guarded runner.
  11
  12Refactored scripts:
  13
  14* `gwtc3_ringdown_guarded_family_runner.py`
  15* `gwtc3_ringdown_ds1mode10m_damping_family.py`
  16* `gwtc3_ringdown_kerr2200m_damping_family.py`
  17* `gwtc3_ringdown_kerr22010m_damping_family.py`
  18
  19The shared runner enforces `require_eligible_model(model)` before
  20posterior bytes are read, and exposes two mapping labels:
  21
  22* `direct` for damped-sinusoid `f_t_0/tau_t_0`;
  23* `kerr220` for Kerr 220 `Q(a)` mapping.
  24
  25This is a refactor / safety invariant only. It adds no new physics
  26mapping and computes no posterior likelihood.
  27Zero `sorry`. Zero new RS-specific axioms.
  28-/
  29
  30namespace IndisputableMonolith
  31namespace Verification
  32namespace GWTC3RingdownSharedRunner
  33
  34open IndisputableMonolith.Verification.GWTC3RingdownGuardedFamilyScripts
  35
  36/-! ## §1. Refactor counts -/
  37
  38def sharedRunnerPresent : Bool := true
  39def refactoredFamilyScriptCount : Nat := 3
  40def supportedMappingCount : Nat := 2
  41def smokeTestsAfterRefactor : Nat := 7
  42def smokePassesAfterRefactor : Nat := 7
  43
  44theorem shared_runner_present : sharedRunnerPresent = true := rfl
  45
  46theorem refactored_count_matches_guarded_count :
  47    refactoredFamilyScriptCount = guardedScriptCount := rfl
  48
  49theorem supported_mapping_count_pos :
  50    0 < supportedMappingCount := by
  51  unfold supportedMappingCount
  52  decide
  53
  54theorem smoke_after_refactor_all_passed :
  55    smokePassesAfterRefactor = smokeTestsAfterRefactor := rfl
  56
  57/-! ## §2. Master cert -/
  58
  59structure GWTC3RingdownSharedRunnerCert where
  60  runner_present : sharedRunnerPresent = true
  61  refactored_count :
  62    refactoredFamilyScriptCount = guardedScriptCount
  63  mapping_count_pos :
  64    0 < supportedMappingCount
  65  smoke_passed :
  66    smokePassesAfterRefactor = smokeTestsAfterRefactor
  67  guarded_scripts_available :
  68    Nonempty GWTC3RingdownGuardedFamilyScriptsCert
  69
  70def gwtc3RingdownSharedRunnerCert : GWTC3RingdownSharedRunnerCert where
  71  runner_present := shared_runner_present
  72  refactored_count := refactored_count_matches_guarded_count
  73  mapping_count_pos := supported_mapping_count_pos
  74  smoke_passed := smoke_after_refactor_all_passed
  75  guarded_scripts_available := gwtc3RingdownGuardedFamilyScriptsCert_inhabited
  76
  77theorem gwtc3RingdownSharedRunnerCert_inhabited :
  78    Nonempty GWTC3RingdownSharedRunnerCert :=
  79  ⟨gwtc3RingdownSharedRunnerCert⟩
  80
  81/-- One-statement shared-runner theorem. -/
  82theorem gwtc3_ringdown_shared_runner_one_statement :
  83    (sharedRunnerPresent = true) ∧
  84    (refactoredFamilyScriptCount = 3) ∧
  85    (supportedMappingCount = 2) ∧
  86    (smokePassesAfterRefactor = smokeTestsAfterRefactor) ∧
  87    Nonempty GWTC3RingdownSharedRunnerCert :=
  88  ⟨shared_runner_present,
  89   rfl,
  90   rfl,
  91   smoke_after_refactor_all_passed,
  92   gwtc3RingdownSharedRunnerCert_inhabited⟩
  93
  94end GWTC3RingdownSharedRunner
  95end Verification
  96end IndisputableMonolith
  97

source mirrored from github.com/jonwashburn/shape-of-logic