Cslib.SKI.Church
defimported Lean
Function form of the church numerals.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in def Cslib.SKI.Church (n : Nat) (f x : SKI) : SKI
- Defined in
- CSLib, `Cslib.SKI.Church`
- Lean proof
- By Thomas Waring, Jesse Alama, from github.com/leanprover/cslib at
3951377e5a3f(Copyright (c) 2025 Thomas Waring. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.Cslib.SKI.Church← Cslib.SKI.Church (Cslib/Languages/CombinatoryLogic/Recursion.lean:69): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 2
- Cslib.SKIAn SKI expression is built from the primitive combinators
S,KandI, and application. - Cslib.SKI.CoeTermPolynomialCslib.SKI.CoeTermPolynomial
- Cslib.SKIAn SKI expression is built from the primitive combinators
- Used by 2
- Cslib.SKI.Church_succCslib.SKI.Church_succ
- Cslib.SKI.Church_zeroCslib.SKI.Church_zero
Lean source view module on GitHub
open Cslib.SKI @[inherit_doc] local infixl:100 " ⬝ " => app set_option autoImplicit true in set_option relaxedAutoImplicit true in /-- Function form of the church numerals. -/ def Cslib.SKI.Church (n : Nat) (f x : SKI) : SKI := match n with | 0 => x | n+1 => f ⬝ (Church n f x)