/-
Copyright (c) 2026 Anthropic, PBC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
SPDX-License-Identifier: Apache-2.0
-/
import Statement
import Minimal.Main

/-!
# Proofs of the statements, each from the corresponding theorem of the development (`Minimal/Main.lean`)
-/

namespace Solution

open Statement

/-- Theorem 1.1, on `ℓ²(ℕ, ℂ)`. -/
theorem onL2 : OnL2 :=
  IspMinimal.exists_no_invariant_subspace

/-- The invariant subspace problem, as posed in `Statement.ISP`, has a negative answer. -/
theorem not_ISP : ¬ ISP := by
  intro h
  obtain ⟨T, hT⟩ := IspMinimal.exists_no_invariant_subspace
  have := IspMinimal.ℓ2_separable
  obtain ⟨M, h1, h2, h3, h4⟩ := h L2 IspMinimal.ℓ2_not_finiteDimensional T
  rcases hT M h1 h4 with h | h
  · exact h2 h
  · exact h3 h

/-- The existential form. -/
theorem hilbert_space_form : HilbertSpaceForm :=
  IspMinimal.theorem

end Solution
