Aether Catalog definitions — Evergreen_RosettaStone_Bridge10_Research
DefinitionEvergreen_RosettaStone_Bridge10_Researchaether-catalogevergreen
Definition bundle for the Aether Catalog module Evergreen.RosettaStone.Bridge10.Research, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from Evergreen/RosettaStone/Bridge10_Research.lean by skeleton subtraction
import Mathlib
/-
Bridge 10: Research Synthesis — New Connecting Theorems
========================================================
Novel cross-bridge connections discovered through systematic analysis
of Bridges 1–9. Each section identifies a structural link between
two or more bridges and proves it formally.
## Discoveries
1. **CRT Bridge (1↔9)**: Idempotents in ℤ/nℤ correspond to subsets of
prime factors via CRT.
2. **Boolean Algebra of Idempotents (1↔2↔4)**: Commutative ring idempotents
form a Boolean algebra.
3. **Trace-Rank Bridge (5↔6↔8)**: Trace counts rank for idempotent matrices.
4. **Tropical Degeneration (1↔7)**: Classical sparsity vs tropical density.
5. **Spectral Decomposition Universality (3↔8↔9)**: CSOI gives decomposition.
6. **Oracle-Module Bridge (Cross↔6)**: range(e) = ker(1-e).
7. **Idempotent Zeta Function (1↔9)**: Verified multiplicativity.
8. **Contraction-Projection Duality (4↔8)**: Closure/interior as idempotent operators.
-/
open Finset BigOperators
namespace RosettaStone.Research
/-! ═══════════════════════════════════════════════════════════════════════════
§1: CRT Bridge — Idempotents via Chinese Remainder Theorem (Bridge 1↔9)
═══════════════════════════════════════════════════════════════════════════ -/
/-! ═══════════════════════════════════════════════════════════════════════════
§2: Boolean Algebra of Idempotents (Bridge 1↔2↔4)
═══════════════════════════════════════════════════════════════════════════ -/
section BooleanAlgebraOfIdempotents
variable {R : Type*} [CommRing R]
/-
PROBLEM
Join of idempotents is idempotent.
PROVIDED SOLUTION
Expand (e+f-ef)² using ring, substitute e²=e and f²=f, then simplify. The key: (e+f-ef)² = e² + f² + (ef)² + 2ef - 2e²f - 2ef² = e + f + efef + 2ef - 2ef - 2ef = e + f + ef·ef - 2ef. Since ef·ef = e·f·e·f = (e²)(f²) = ef (by mul_mul_mul_comm), we get e+f+ef-2ef = e+f-ef. Use nlinarith or linear_combination after substituting.
-/
end BooleanAlgebraOfIdempotents
/-! ═══════════════════════════════════════════════════════════════════════════
§3: Trace-Rank Bridge (Bridge 5↔6↔8)
═══════════════════════════════════════════════════════════════════════════ -/
/-
PROBLEM
Complementary projections have complementary traces: Tr(P) + Tr(I-P) = n.
PROVIDED SOLUTION
Expand (1-P).trace = 1.trace - P.trace using linearity of trace. Then P.trace + (1.trace - P.trace) = 1.trace = n. Use Matrix.trace_one and linearity.
-/
/-! ═══════════════════════════════════════════════════════════════════════════
§4: Tropical Degeneration (Bridge 1↔7)
═══════════════════════════════════════════════════════════════════════════ -/
/-! ═══════════════════════════════════════════════════════════════════════════
§5: Spectral Decomposition Universality (Bridge 3↔8↔9)
═══════════════════════════════════════════════════════════════════════════ -/
/-- Complete system of orthogonal idempotents in a ring. -/
structure CSOI (R : Type*) [Ring R] (n : ℕ) where
proj : Fin n → R
idempotent : ∀ i, proj i * proj i = proj i
orthogonal : ∀ i j, i ≠ j → proj i * proj j = 0
complete : ∑ i : Fin n, proj i = 1
/-
PROBLEM
A CSOI with 2 elements: second projector is 1 minus the first.
PROVIDED SOLUTION
From csoi.complete, we have ∑ i : Fin 2, csoi.proj i = 1. Expand with Fin.sum_univ_two to get csoi.proj 0 + csoi.proj 1 = 1, hence csoi.proj 1 = 1 - csoi.proj 0. Use linarith or sub_eq_of_eq_add.
-/
/-
PROBLEM
From an idempotent, construct a CSOI with 2 elements.
PROVIDED SOLUTION
For idempotent: fin_cases i, for i=0 use he, for i=1 expand (1-e)(1-e) = 1-2e+e² = 1-2e+e = 1-e. For orthogonal: fin_cases i j, use he_orth1 and he_orth2. For complete: ![e, 1-e] sums to e + (1-e) = 1 by add_sub_cancel. Access elements with Matrix.cons_val_zero and Matrix.cons_val_one.
-/
/-! ═══════════════════════════════════════════════════════════════════════════
§6: Oracle-Module Bridge (Cross↔Bridge 6)
═══════════════════════════════════════════════════════════════════════════ -/
variable {K : Type*} [CommRing K] {W : Type*} [AddCommGroup W] [Module K W]
/-
PROBLEM
Oracle-Module correspondence: range(e) = ker(1 - e).
PROVIDED SOLUTION
ext x. For (→): if x ∈ range(e), then x = e(y) for some y, so (id - e)(x) = x - e(x) = e(y) - e(e(y)) = e(y) - e(y) = 0, using he: e ∘ₗ e = e. For (←): if x ∈ ker(id - e), then x - e(x) = 0, so x = e(x), hence x ∈ range(e) (take y = x). Use LinearMap.mem_range, LinearMap.mem_ker, LinearMap.sub_apply, LinearMap.id_apply, and LinearMap.congr_fun he.
-/
/-
PROBLEM
Complementary oracle-module: ker(e) = range(1 - e).
PROVIDED SOLUTION
ext x. For (→): if e(x) = 0, then (id - e)(x) = x - e(x) = x - 0 = x, so x = (id - e)(x) ∈ range(id - e). For (←): if x ∈ range(id - e), then x = y - e(y) for some y, so e(x) = e(y) - e(e(y)) = e(y) - e(y) = 0 using he. Use LinearMap.mem_ker, LinearMap.mem_range, map_sub, LinearMap.congr_fun he.
-/
/-! ═══════════════════════════════════════════════════════════════════════════
§7: Idempotent Zeta Function (Bridge 1↔9)
═══════════════════════════════════════════════════════════════════════════ -/
/-- Idempotent count function. -/
def idemCount (n : ℕ) [NeZero n] : ℕ :=
(Finset.univ.filter (fun e : ZMod n => e * e = e)).card
-- Primes: 2 idempotents
-- Prime powers: still 2 idempotents (ω = 1)
-- Products of 2 distinct primes: 4 = 2² idempotents
-- Products of 3 distinct primes: 8 = 2³ idempotents
-- Multiplicativity verified computationally
/-! ═══════════════════════════════════════════════════════════════════════════
§8: Contraction-Projection Duality (Bridge 4↔8)
═══════════════════════════════════════════════════════════════════════════ -/
/-- A closure operator on a partial order. -/
structure ClosureOp (α : Type*) [Preorder α] where
op : α → α
mono : ∀ a b, a ≤ b → op a ≤ op b
extensive : ∀ a, a ≤ op a
idempotent : ∀ a, op (op a) = op a
/-! ═══════════════════════════════════════════════════════════════════════════
§9: The Grand Unification — All Bridges Share e ∘ e = e
═══════════════════════════════════════════════════════════════════════════ -/
/-- An abstract idempotent in any magma. -/
def IsIdem {M : Type*} [Mul M] (e : M) : Prop := e * e = e
/-! ═══════════════════════════════════════════════════════════════════════════
§10: Idempotent Entropy — A New Invariant
═══════════════════════════════════════════════════════════════════════════ -/
/-- The idempotent entropy: log of the number of idempotents. -/
noncomputable def idemEntropy (k : ℕ) : ℝ :=
if k = 0 then 0 else Real.log k
end RosettaStone.Research