Aether Catalog definitions — Evergreen_RosettaStone_Bridge8_Quantum
DefinitionEvergreen_RosettaStone_Bridge8_Quantumaether-catalogevergreen
Definition bundle for the Aether Catalog module Evergreen.RosettaStone.Bridge8.Quantum, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from Evergreen/RosettaStone/Bridge8_Quantum.lean by skeleton subtraction
import Mathlib
/-
Bridge 8: Quantum Geometry — Projections and Measurements
===========================================================
Measurements are projections (P² = P). Idempotency = measurement stability.
-/
namespace RosettaStone.Quantum
variable {n : ℕ}
/-- A projection matrix P satisfies P² = P. -/
def IsProjection (P : Matrix (Fin n) (Fin n) ℝ) : Prop :=
P * P = P
/-- A diagonal projection matrix. -/
def diagonalProjection (S : Finset (Fin n)) : Matrix (Fin n) (Fin n) ℝ :=
Matrix.diagonal (fun i => if i ∈ S then 1 else 0)
end RosettaStone.Quantum