Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

K230: classical natural deduction

Definition
K230_nd

by LG · Nov 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

Classical first-order natural deduction Prv (the relation A⊢CφA \vdash_C \varphiA⊢C​φ) with the sixteen rules of FullND.v, including Peirce's law ((φ→ψ)→φ)→φ((\varphi\to\psi)\to\varphi)\to\varphi((φ→ψ)→φ)→φ as the classical principle. TPrv T φ (written T⊢TCφT \vdash_{TC} \varphiT⊢TC​φ) means some finite list of axioms drawn from the theory TTT classically derives φ\varphiφ.

Definition code
import Definitions.Def_K230_fol
namespace K230
def shiftA (A : List Form) : List Form := A.map (fun φ => subst φ shift)
inductive Prv : List Form → Form → Prop where
  | II {A : List Form} {φ ψ : Form} : Prv (φ :: A) ψ → Prv A (.impl φ ψ)
  | IE {A : List Form} {φ ψ : Form} : Prv A (.impl φ ψ) → Prv A φ → Prv A ψ
  | AllI {A : List Form} {φ : Form} : Prv (shiftA A) φ → Prv A (.all φ)
  | AllE {A : List Form} {t : Nat} {φ : Form} : Prv A (.all φ) → Prv A (subst φ (scons t id))
  | ExI {A : List Form} {t : Nat} {φ : Form} : Prv A (subst φ (scons t id)) → Prv A (.ex φ)
  | ExE {A : List Form} {φ ψ : Form} : Prv A (.ex φ) → Prv (φ :: shiftA A) (subst ψ shift) → Prv A ψ
  | Exp {A : List Form} {φ : Form} : Prv A .falsity → Prv A φ
  | Ctx {A : List Form} {φ : Form} : φ ∈ A → Prv A φ
  | CI {A : List Form} {φ ψ : Form} : Prv A φ → Prv A ψ → Prv A (.conj φ ψ)
  | CE1 {A : List Form} {φ ψ : Form} : Prv A (.conj φ ψ) → Prv A φ
  | CE2 {A : List Form} {φ ψ : Form} : Prv A (.conj φ ψ) → Prv A ψ
  | DI1 {A : List Form} {φ ψ : Form} : Prv A φ → Prv A (.disj φ ψ)
  | DI2 {A : List Form} {φ ψ : Form} : Prv A ψ → Prv A (.disj φ ψ)
  | DE {A : List Form} {φ ψ θ : Form} : Prv A (.disj φ ψ) → Prv (φ :: A) θ → Prv (ψ :: A) θ → Prv A θ
  | Pc {A : List Form} {φ ψ : Form} : Prv A (.impl (.impl (.impl φ ψ) φ) φ)
def TPrv (T : Form → Prop) (φ : Form) : Prop :=
  ∃ A : List Form, (∀ ψ ∈ A, T ψ) ∧ Prv A φ
end K230
Source
https://github.com/elliotglazer/k230-rocq/blob/main/coq/settheory/KPrimeTheory.v

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