Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — Evergreen_Bootstrapping_HigherBootstrap

Definition
Evergreen_Bootstrapping_HigherBootstrap

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogevergreen

Definition bundle for the Aether Catalog module Evergreen.Bootstrapping.HigherBootstrap, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from Evergreen/Bootstrapping/HigherBootstrap.lean by skeleton subtraction
import Mathlib
/-
  # Higher Bootstrapping: Reaching Up
  =====================================

  Bootstrapping at the highest levels of mathematics: where structures
  create the frameworks needed to define themselves.

  1. **Ordinal Bootstrap**: Ordinals are defined by well-ordering, but the
     collection of all ordinals is itself well-ordered — ordinals bootstrap
     their own organizing principle.

  2. **Universe Bootstrap**: Type : Type would be inconsistent (Girard's paradox),
     so we need a hierarchy Type 0 : Type 1 : Type 2 : ... Each universe
     bootstraps the next.

  3. **Well-Founded Recursion Bootstrap**: Defining functions by well-founded
     recursion, where the termination proof uses the very function being defined.
-/


/-! ## The Ordinal Bootstrap

Ordinals are the canonical bootstrapped objects: each ordinal is the set of
all smaller ordinals. The ordinal α IS the well-ordered set {β | β < α}.
An ordinal is literally constructed from all its predecessors.
-/

section OrdinalBootstrap



end OrdinalBootstrap

/-! ## The Universe Bootstrap

Lean's type theory has a hierarchy of universes: Type 0 : Type 1 : Type 2 : ...
Each universe contains the previous ones. We formalize properties of this hierarchy.
-/

section UniverseBootstrap



end UniverseBootstrap

/-! ## Well-Founded Recursion: Defining Things by Themselves

The most practical bootstrap: defining a function f by well-founded recursion
means f(x) is defined in terms of f(y) for y < x. The function literally
uses itself (on smaller inputs) in its own definition.
-/

section WellFoundedBootstrap

/-- Ackermann's function: a classic bootstrapped definition where each level
    of the function bootstraps from the previous level -/
def ackermann : ℕ → ℕ → ℕ
  | 0, n => n + 1
  | m + 1, 0 => ackermann m 1
  | m + 1, n + 1 => ackermann m (ackermann (m + 1) n)




end WellFoundedBootstrap

/-! ## The Completeness Bootstrap

Gödel's completeness theorem has a beautiful bootstrap structure:
it proves that provability (a syntactic notion) equals truth in all models
(a semantic notion). We formalize a toy version with propositional logic.
-/

section CompletenessBootstrap

/-- Simple propositional formulas -/
inductive PropForm : Type where
  | var : ℕ → PropForm
  | false_ : PropForm
  | imp : PropForm → PropForm → PropForm

/-- Assignment of truth values to propositional variables -/
def PropValuation := ℕ → Bool

/-- Evaluate a formula under a valuation -/
def PropForm.eval (v : PropValuation) : PropForm → Bool
  | .var n => v n
  | .false_ => false
  | .imp p q => !(p.eval v) || q.eval v

/-- A formula is a tautology if true under all valuations -/
def PropForm.isTautology (φ : PropForm) : Prop :=
  ∀ v : PropValuation, φ.eval v = true

/-- Negation as syntactic sugar -/
def PropForm.not_ (φ : PropForm) : PropForm := .imp φ .false_



end CompletenessBootstrap

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me