Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — Evergreen_Factor_Basic

Definition
Evergreen_Factor_Basic

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

aether-catalogevergreen

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

Definition code
-- Def bundle generated from Evergreen/Factor/Basic.lean by skeleton subtraction
import Mathlib
/-
# Oracle Theory — Basic Definitions

Formalization of oracles, anti-oracles, and their fundamental properties.

An **oracle** over a type `α` is a decision procedure modeled as a set:
membership in the set means "the oracle answers yes."

The **anti-oracle** (contrarian oracle) always gives the opposite answer.
-/

namespace OracleTheory

/-- An oracle over a type `α` is a decision set: `x ∈ O.carrier` means
    the oracle answers "yes" to query `x`. -/
@[ext]
structure Oracle (α : Type*) where
  carrier : Set α

namespace Oracle

variable {α : Type*}

/-- The empty oracle: always answers "no". -/
def empty : Oracle α := ⟨∅⟩

/-- The universal oracle: always answers "yes". -/
def univ : Oracle α := ⟨Set.univ⟩

/-- The anti-oracle (contrarian): always gives the opposite answer. -/
def anti (O : Oracle α) : Oracle α := ⟨O.carrierᶜ⟩

/-- The join (union) of two oracles: says "yes" when either says "yes". -/
def join (O₁ O₂ : Oracle α) : Oracle α := ⟨O₁.carrier ∪ O₂.carrier⟩

/-- The meet (intersection) of two oracles: says "yes" when both say "yes". -/
def meet (O₁ O₂ : Oracle α) : Oracle α := ⟨O₁.carrier ∩ O₂.carrier⟩

/-- The symmetric difference (XOR) of two oracles. -/
def xor (O₁ O₂ : Oracle α) : Oracle α := ⟨symmDiff O₁.carrier O₂.carrier⟩

/-- The set difference of two oracles. -/
def sdiff (O₁ O₂ : Oracle α) : Oracle α := ⟨O₁.carrier \ O₂.carrier⟩

-- Simp lemmas for carrier access

-- ============================================================
-- Core Anti-Oracle Properties
-- ============================================================







-- ============================================================
-- De Morgan's Laws for Oracles
-- ============================================================



-- ============================================================
-- Join/Meet algebraic properties
-- ============================================================











-- ============================================================
-- Subset ordering on oracles
-- ============================================================

/-- Oracle O₁ is weaker than O₂ if every "yes" answer of O₁ is also a "yes" of O₂. -/
def weaker (O₁ O₂ : Oracle α) : Prop := O₁.carrier ⊆ O₂.carrier





-- ============================================================
-- Oracle Equivalence
-- ============================================================


end Oracle
end OracleTheory

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