Aether Catalog definitions — Speculative_Logic_CausalPrediction
DefinitionSpeculative_Logic_CausalPredictionaether-catalogspeculative
Definition bundle for the Aether Catalog module Speculative.Logic.CausalPrediction, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from Speculative/Logic/CausalPrediction.lean by skeleton subtraction import Mathlib /-! # CatalogBuild.MachineLearning.Prediction.CausalPrediction Auto-generated from theorem catalog database. Domain: MachineLearning/Prediction Declarations: 12 -/ noncomputable section /-- A simplified structural causal model with three variables: X (treatment), Y (outcome), Z (confounder) -/ structure CausalModel where -- Conditional expectations (observational) E_Y_given_X : ℝ → ℝ -- Interventional expectations (causal) E_Y_given_doX : ℝ → ℝ -- The confounding bias bias : ℝ → ℝ -- Relationship: observational = causal + bias observational_decomp : ∀ x, E_Y_given_X x = E_Y_given_doX x + bias x /-- An instrumental variable Z satisfies: 1. Z → X (relevance) 2. Z ⊥ U (independence from confounders) 3. Z → Y only through X (exclusion restriction) -/ structure InstrumentalVariable where cov_ZX : ℝ -- Cov(Z,X) cov_ZY : ℝ -- Cov(Z,Y) relevance : cov_ZX ≠ 0 end