Equations
- termContext = Lean.ParserDescr.node `termContext 1024 (Lean.ParserDescr.symbol "context")
Instances For
Equations
- context_terms [] = ∅
- context_terms ((x_1, snd) :: Γ') = {x_1} ∪ context_terms Γ'
Instances For
Equations
- in_context a [] = False
- in_context a (b :: m) = (a = b.1 ∨ in_context a m)
Instances For
theorem
in_context_append_neg
(a : ℕ)
(Γ : context)
(Δ : context)
:
¬in_context a (Γ ++ Δ) → ¬in_context a Γ ∧ ¬in_context a Δ
theorem
in_context_append_neg'
(a : ℕ)
(Γ : context)
(Δ : context)
:
¬in_context a Γ ∧ ¬in_context a Δ → ¬in_context a (Γ ++ Δ)
theorem
valid_push
(Γ : context)
(x : ℕ)
(T : Typ)
:
valid_ctx Γ → ¬in_context x Γ → valid_ctx ([(x, T)] ++ Γ)
Equations
- _root_.get x [] = none
- _root_.get x ((x_2, snd) :: Γ') = if x = x_2 then some snd else _root_.get x Γ'