Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ theorem depth_open_fvar_eq_depth (M : Term Var) (x : Var) : depth (M ^ fvar x) =
/-- Opening for some free variable at i-th bound variable, increments `LcAt`. -/
@[simp, scoped grind =]
theorem lcAt_openRec_fvar_iff_lcAt (M : Term Var) (x : Var) (i : ℕ) :
LcAt i (M⟦i ↝ fvar x⟧) LcAt (i + 1) M := by
LcAt i (M⟦i ↝ fvar x⟧) = LcAt (i + 1) M := by
induction M generalizing i <;> grind

/-- Opening for some free variable is locally closed if and only if `M` is `LcAt 1`. -/
theorem lcAt_open_fvar_iff_lcAt (M : Term Var) (x : Var) : LcAt 0 (M ^ fvar x) LcAt 1 M :=
theorem lcAt_open_fvar_iff_lcAt (M : Term Var) (x : Var) : LcAt 0 (M ^ fvar x) = LcAt 1 M :=
lcAt_openRec_fvar_iff_lcAt M x 0

/-- Locally closed terms. -/
Expand Down
Loading