Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
inductive type OAI.PureTypeSystem.Expr line 15
inductive Expr (Sorts : Type u) : Type u | var : Nat → Expr Sorts | sort : Sorts → Expr Sorts | app : Expr Sorts → Expr Sorts → Expr Sorts | lam : Expr Sorts → Expr Sorts → Expr Sorts | pi : Expr Sorts → Expr Sorts → Expr Sorts deriving DecidableEq
definition OAI.PureTypeSystem.Expr.liftRen line 27
def liftRen (ρ : Nat → Nat) : Nat → Nat | 0 => 0 | n + 1 => ρ n + 1
definition OAI.PureTypeSystem.Expr.rename line 31
def rename (ρ : Nat → Nat) : Expr S → Expr S | var n => var (ρ n) | sort s => sort s | app f a => app (rename ρ f) (rename ρ a) | lam A b => lam (rename ρ A) (rename (liftRen ρ) b) | pi A B => pi (rename ρ A) (rename (liftRen ρ) B)
definition OAI.PureTypeSystem.Expr.liftSub line 38
def liftSub (σ : Nat → Expr S) : Nat → Expr S | 0 => var 0 | n + 1 => rename Nat.succ (σ n)
definition OAI.PureTypeSystem.Expr.subst line 42
def subst (σ : Nat → Expr S) : Expr S → Expr S | var n => σ n | sort s => sort s | app f a => app (subst σ f) (subst σ a) | lam A b => lam (subst σ A) (subst (liftSub σ) b) | pi A B => pi (subst σ A) (subst (liftSub σ) B)
definition OAI.PureTypeSystem.Expr.single line 49
def single (a : Expr S) : Nat → Expr S | 0 => a | n + 1 => var n
definition OAI.PureTypeSystem.Expr.instantiate line 53
def instantiate (b a : Expr S) : Expr S := subst (single a) b
structure OAI.PureTypeSystem.Specification line 57
structure Specification (S : Type u) where axioms : S → S → Prop rule : S → S → S → Prop
inductive type OAI.PureTypeSystem.Beta line 61
inductive Beta {S : Type u} : Expr S → Expr S → Prop | head (A b a) : Beta (.app (.lam A b) a) (b.instantiate a) | app_left {f f' a} : Beta f f' → Beta (.app f a) (.app f' a) | app_right {f a a'} : Beta a a' → Beta (.app f a) (.app f a') | lam_domain {A A' b} : Beta A A' → Beta (.lam A b) (.lam A' b) | lam_body {A b b'} : Beta b b' → Beta (.lam A b) (.lam A b') | pi_domain {A A' B} : Beta A A' → Beta (.pi A B) (.pi A' B) | pi_body {A B B'} : Beta B B' → Beta (.pi A B) (.pi A B')
definition OAI.PureTypeSystem.Converts line 70
def Converts {S : Type u} : Expr S → Expr S → Prop := Relation.EqvGen Beta
definition OAI.PureTypeSystem.Normal line 72
def Normal {S : Type u} (M : Expr S) : Prop := ∀ N, ¬ Beta M N
definition OAI.PureTypeSystem.WeaklyNormalizing line 74
def WeaklyNormalizing {S : Type u} (M : Expr S) : Prop := ∃ N, Relation.ReflTransGen Beta M N ∧ Normal N
definition OAI.PureTypeSystem.StronglyNormalizing line 79
def StronglyNormalizing {S : Type u} (M : Expr S) : Prop := Acc (fun N M : Expr S => Beta M N) M
inductive type OAI.PureTypeSystem.HasType line 82
inductive HasType {S : Type u} (P : Specification S) : List (Expr S) → Expr S → Expr S → Prop | ax {s t} : P.axioms s t → HasType P [] (.sort s) (.sort t) | var {Γ A s} : HasType P Γ A (.sort s) →
Show the remaining 13 lines
HasType P (A :: Γ) (.var 0) (A.rename Nat.succ) | weaken {Γ M B A s} : HasType P Γ M B → HasType P Γ A (.sort s) → HasType P (A :: Γ) (M.rename Nat.succ) (B.rename Nat.succ) | product {Γ A B s₁ s₂ s₃} : HasType P Γ A (.sort s₁) → HasType P (A :: Γ) B (.sort s₂) → P.rule s₁ s₂ s₃ → HasType P Γ (.pi A B) (.sort s₃) | abstraction {Γ A b B s} : HasType P (A :: Γ) b B → HasType P Γ (.pi A B) (.sort s) → HasType P Γ (.lam A b) (.pi A B) | application {Γ f a A B} : HasType P Γ f (.pi A B) → HasType P Γ a A → HasType P Γ (.app f a) (B.instantiate a) | conversion {Γ M A B s} : HasType P Γ M A → HasType P Γ B (.sort s) → Converts A B → HasType P Γ M B
inductive type OAI.PureTypeSystem.ValidContext line 100
inductive ValidContext {S : Type u} (P : Specification S) : List (Expr S) → Prop | nil : ValidContext P [] | cons {Γ A s} : ValidContext P Γ → HasType P Γ A (.sort s) → ValidContext P (A :: Γ)
definition OAI.PureTypeSystem.Legal line 105
def Legal {S : Type u} (P : Specification S) (Γ : List (Expr S)) (M : Expr S) : Prop := ∃ A, HasType P Γ M A ∨ HasType P Γ A M
definition OAI.PureTypeSystem.SystemWeaklyNormalizing line 108
def SystemWeaklyNormalizing {S : Type u} (P : Specification S) : Prop := ∀ Γ, ValidContext P Γ → ∀ M, Legal P Γ M → WeaklyNormalizing M
definition OAI.PureTypeSystem.SystemStronglyNormalizing line 111
def SystemStronglyNormalizing {S : Type u} (P : Specification S) : Prop := ∀ Γ, ValidContext P Γ → ∀ M, Legal P Γ M → StronglyNormalizing M