url
stringclasses 147
values | commit
stringclasses 147
values | file_path
stringlengths 7
101
| full_name
stringlengths 1
94
| start
stringlengths 6
10
| end
stringlengths 6
11
| tactic
stringlengths 1
11.2k
| state_before
stringlengths 3
2.09M
| state_after
stringlengths 6
2.09M
|
---|---|---|---|---|---|---|---|---|
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | intro v a1 | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
β’ β x β vs, V x = ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) x | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
v : Var
a1 : v β vs
β’ V v = ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | specialize h2 v a1 | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
v : Var
a1 : v β vs
β’ V v = ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) v | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
v : Var
a1 : v β vs
h2 : Var.lc_at j v
β’ V v = ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
v : Var
a1 : v β vs
h2 : Var.lc_at j v
β’ V v = ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) v | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
v : Var
a1 : v β vs
h2 : Var.lc_at j v
β’ V v = V (Var.close j (free_ z) (Var.openList j [free_ z] v)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | cases v | case a.h.e'_4
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
v : Var
a1 : v β vs
h2 : Var.lc_at j v
β’ V v = V (Var.close j (free_ z) (Var.openList j [free_ z] v)) | case a.h.e'_4.free_
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
aβ : String
a1 : free_ aβ β vs
h2 : Var.lc_at j (free_ aβ)
β’ V (free_ aβ) = V (Var.close j (free_ z) (Var.openList j [free_ z] (free_ aβ)))
case a.h.e'_4.bound_
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
aβ : β
a1 : bound_ aβ β vs
h2 : Var.lc_at j (bound_ aβ)
β’ V (bound_ aβ) = V (Var.close j (free_ z) (Var.openList j [free_ z] (bound_ aβ))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | case _ x =>
simp only [Var.openList]
simp only [Var.close]
have s1 : Β¬ free_ x = free_ z
intro contra
apply h1
simp only [β contra]
exact a1
simp only [if_neg s1] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (Var.close j (free_ z) (Var.openList j [free_ z] (free_ x))) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | case _ i =>
simp only [Var.lc_at] at h2
simp only [Var.openList]
simp
split_ifs
simp only [Var.close]
simp only [if_pos h2] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : Var.lc_at j (bound_ i)
β’ V (bound_ i) = V (Var.close j (free_ z) (Var.openList j [free_ z] (bound_ i))) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Var.openList] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (Var.close j (free_ z) (Var.openList j [free_ z] (free_ x))) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (Var.close j (free_ z) (free_ x)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Var.close] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (Var.close j (free_ z) (free_ x)) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | have s1 : Β¬ free_ x = free_ z | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ Β¬free_ x = free_ z
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | intro contra | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
β’ Β¬free_ x = free_ z
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ False
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | apply h1 | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ False
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ free_ z β vs
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [β contra] | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ free_ z β vs
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ free_ x β vs
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | exact a1 | case s1
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
contra : free_ x = free_ z
β’ free_ x β vs
D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [if_neg s1] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
x : String
a1 : free_ x β vs
h2 : Var.lc_at j (free_ x)
s1 : Β¬free_ x = free_ z
β’ V (free_ x) = V (if free_ x = free_ z then bound_ j else free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Var.lc_at] at h2 | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : Var.lc_at j (bound_ i)
β’ V (bound_ i) = V (Var.close j (free_ z) (Var.openList j [free_ z] (bound_ i))) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (Var.close j (free_ z) (Var.openList j [free_ z] (bound_ i))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Var.openList] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (Var.close j (free_ z) (Var.openList j [free_ z] (bound_ i))) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) =
V
(Var.close j (free_ z)
(if i < j then bound_ i
else if x : i - j < [free_ z].length then [free_ z][i - j] else bound_ (i - j - [free_ z].length + j))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) =
V
(Var.close j (free_ z)
(if i < j then bound_ i
else if x : i - j < [free_ z].length then [free_ z][i - j] else bound_ (i - j - [free_ z].length + j))) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) =
V (Var.close j (free_ z) (if i < j then bound_ i else if i - j = 0 then free_ z else bound_ (i - j - 1 + j))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | split_ifs | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) =
V (Var.close j (free_ z) (if i < j then bound_ i else if i - j = 0 then free_ z else bound_ (i - j - 1 + j))) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (Var.close j (free_ z) (bound_ i)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Var.close] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (Var.close j (free_ z) (bound_ i)) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [if_pos h2] | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
i : β
a1 : bound_ i β vs
h2 : i < j
β’ V (bound_ i) = V (if i < j then bound_ i else bound_ (i + 1)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [occursIn] at h1 | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi.not_
h2 : Formula.lc_at j phi.not_
β’ Holds D I V phi.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi.not_) | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi.not_
β’ Holds D I V phi.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi.not_) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Formula.lc_at] at h2 | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi.not_
β’ Holds D I V phi.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi.not_) | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Holds D I V phi.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi.not_) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Holds] | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Holds D I V phi.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi.not_) | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Β¬Holds D I V phi β Β¬Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | congr! 1 | D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Β¬Holds D I V phi β Β¬Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) | case a.h.e'_1.a
D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | exact phi_ih V j h1 h2 | case a.h.e'_1.a
D : Type
I : Interpretation D
z : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j phi
β’ Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [occursIn] at h1 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (phi.imp_ psi)
h2 : Formula.lc_at j (phi.imp_ psi)
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1 : Β¬(occursIn (free_ z) phi β¨ occursIn (free_ z) psi)
h2 : Formula.lc_at j (phi.imp_ psi)
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | push_neg at h1 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1 : Β¬(occursIn (free_ z) phi β¨ occursIn (free_ z) psi)
h2 : Formula.lc_at j (phi.imp_ psi)
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j (phi.imp_ psi)
h1 : Β¬occursIn (free_ z) phi β§ Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Formula.lc_at] at h2 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j (phi.imp_ psi)
h1 : Β¬occursIn (free_ z) phi β§ Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j phi β§ Formula.lc_at j psi
h1 : Β¬occursIn (free_ z) phi β§ Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | cases h1 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j phi β§ Formula.lc_at j psi
h1 : Β¬occursIn (free_ z) phi β§ Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | case intro
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j phi β§ Formula.lc_at j psi
leftβ : Β¬occursIn (free_ z) phi
rightβ : Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | cases h2 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h2 : Formula.lc_at j phi β§ Formula.lc_at j psi
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | case intro
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
leftβ : Formula.lc_at j phi
rightβ : Formula.lc_at j psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Holds] | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
β’ Holds D I V (phi.imp_ psi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (phi.imp_ psi)) | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
β’ Holds D I V phi β Holds D I V psi β
Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) β
Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | congr! 1 | D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
β’ Holds D I V phi β Holds D I V psi β
Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) β
Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi) | case a.h.a
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
β’ Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi)
case a.h'.a
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
aβ : Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi)
β’ Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | exact phi_ih V j h1_left h2_left | case a.h.a
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
β’ Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | exact psi_ih V j h1_right h2_right | case a.h'.a
D : Type
I : Interpretation D
z : String
phi psi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
psi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) psi β
Formula.lc_at j psi β (Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi))
V : VarAssignment D
j : β
h1_left : Β¬occursIn (free_ z) phi
h1_right : Β¬occursIn (free_ z) psi
h2_left : Formula.lc_at j phi
h2_right : Formula.lc_at j psi
aβ : Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi)
β’ Holds D I V psi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] psi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [occursIn] at h1 | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (forall_ x phi)
h2 : Formula.lc_at j (forall_ x phi)
β’ Holds D I V (forall_ x phi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ x phi)) | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j (forall_ x phi)
β’ Holds D I V (forall_ x phi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ x phi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Formula.lc_at] at h2 | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at j (forall_ x phi)
β’ Holds D I V (forall_ x phi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ x phi)) | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ Holds D I V (forall_ x phi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ x phi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Formula.openList] | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ Holds D I V (forall_ x phi) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ x phi)) | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ Holds D I V (forall_ x phi) β
Holds D I (V β Var.close j (free_ z)) (forall_ x (Formula.openList (j + 1) [free_ z] phi)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [Holds] | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ Holds D I V (forall_ x phi) β
Holds D I (V β Var.close j (free_ z)) (forall_ x (Formula.openList (j + 1) [free_ z] phi)) | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ (β (d : D), Holds D I (shift D V d) phi) β
β (d : D), Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | apply forall_congr' | D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ (β (d : D), Holds D I (shift D V d) phi) β
β (d : D), Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ β (a : D),
Holds D I (shift D V a) phi β
Holds D I (shift D (V β Var.close j (free_ z)) a) (Formula.openList (j + 1) [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | intro d | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
β’ β (a : D),
Holds D I (shift D V a) phi β
Holds D I (shift D (V β Var.close j (free_ z)) a) (Formula.openList (j + 1) [free_ z] phi) | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
β’ Holds D I (shift D V d) phi β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | specialize phi_ih (shift D V d) (j + 1) h1 h2 | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
phi_ih :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) phi β
Formula.lc_at j phi β (Holds D I V phi β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] phi))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
β’ Holds D I (shift D V d) phi β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ Holds D I (shift D V d) phi β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [phi_ih] | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ Holds D I (shift D V d) phi β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi) β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | congr! 1 | case h
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi) β
Holds D I (shift D (V β Var.close j (free_ z)) d) (Formula.openList (j + 1) [free_ z] phi) | case h.a.h.e'_3
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ shift D V d β Var.close (j + 1) (free_ z) = shift D (V β Var.close j (free_ z)) d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | apply extracted_1 | case h.a.h.e'_3
D : Type
I : Interpretation D
z x : String
phi : Formula
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) phi
h2 : Formula.lc_at (j + 1) phi
d : D
phi_ih :
Holds D I (shift D V d) phi β
Holds D I (shift D V d β Var.close (j + 1) (free_ z)) (Formula.openList (j + 1) [free_ z] phi)
β’ shift D V d β Var.close (j + 1) (free_ z) = shift D (V β Var.close j (free_ z)) d | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | induction F generalizing j | F : Formula
j : β
zs : List String
h1 : lc_at j F
β’ openList j (List.map free_ zs) F = F | case pred_
zs : List String
aβΒΉ : String
aβ : List Var
j : β
h1 : lc_at j (pred_ aβΒΉ aβ)
β’ openList j (List.map free_ zs) (pred_ aβΒΉ aβ) = pred_ aβΒΉ aβ
case not_
zs : List String
aβ : Formula
a_ihβ : β (j : β), lc_at j aβ β openList j (List.map free_ zs) aβ = aβ
j : β
h1 : lc_at j aβ.not_
β’ openList j (List.map free_ zs) aβ.not_ = aβ.not_
case imp_
zs : List String
aβΒΉ aβ : Formula
a_ihβΒΉ : β (j : β), lc_at j aβΒΉ β openList j (List.map free_ zs) aβΒΉ = aβΒΉ
a_ihβ : β (j : β), lc_at j aβ β openList j (List.map free_ zs) aβ = aβ
j : β
h1 : lc_at j (aβΒΉ.imp_ aβ)
β’ openList j (List.map free_ zs) (aβΒΉ.imp_ aβ) = aβΒΉ.imp_ aβ
case forall_
zs : List String
aβΒΉ : String
aβ : Formula
a_ihβ : β (j : β), lc_at j aβ β openList j (List.map free_ zs) aβ = aβ
j : β
h1 : lc_at j (forall_ aβΒΉ aβ)
β’ openList j (List.map free_ zs) (forall_ aβΒΉ aβ) = forall_ aβΒΉ aβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case pred_ X vs =>
simp only [Formula.lc_at] at h1
simp only [Formula.openList]
simp
apply List.map_mem_id
intro v a1
specialize h1 v a1
cases v
case _ x =>
simp only [Var.openList]
case _ i =>
cases i
case zero =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1]
case succ i =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j : β
h1 : lc_at j (pred_ X vs)
β’ openList j (List.map free_ zs) (pred_ X vs) = pred_ X vs | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case not_ phi phi_ih =>
simp only [Formula.lc_at] at h1
simp only [Formula.openList]
congr!
exact phi_ih j h1 | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi.not_
β’ openList j (List.map free_ zs) phi.not_ = phi.not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case forall_ x phi phi_ih =>
simp only [Formula.lc_at] at h1
simp only [Formula.openList]
simp
exact phi_ih (j + 1) h1 | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j (forall_ x phi)
β’ openList j (List.map free_ zs) (forall_ x phi) = forall_ x phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.lc_at] at h1 | zs : List String
X : String
vs : List Var
j : β
h1 : lc_at j (pred_ X vs)
β’ openList j (List.map free_ zs) (pred_ X vs) = pred_ X vs | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ openList j (List.map free_ zs) (pred_ X vs) = pred_ X vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.openList] | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ openList j (List.map free_ zs) (pred_ X vs) = pred_ X vs | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ pred_ X (List.map (Var.openList j (List.map free_ zs)) vs) = pred_ X vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ pred_ X (List.map (Var.openList j (List.map free_ zs)) vs) = pred_ X vs | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ List.map (Var.openList j (List.map free_ zs)) vs = vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | apply List.map_mem_id | zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ List.map (Var.openList j (List.map free_ zs)) vs = vs | case h1
zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ β x β vs, Var.openList j (List.map free_ zs) x = x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | intro v a1 | case h1
zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
β’ β x β vs, Var.openList j (List.map free_ zs) x = x | case h1
zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
v : Var
a1 : v β vs
β’ Var.openList j (List.map free_ zs) v = v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | specialize h1 v a1 | case h1
zs : List String
X : String
vs : List Var
j : β
h1 : β v β vs, Var.lc_at j v
v : Var
a1 : v β vs
β’ Var.openList j (List.map free_ zs) v = v | case h1
zs : List String
X : String
vs : List Var
j : β
v : Var
a1 : v β vs
h1 : Var.lc_at j v
β’ Var.openList j (List.map free_ zs) v = v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | cases v | case h1
zs : List String
X : String
vs : List Var
j : β
v : Var
a1 : v β vs
h1 : Var.lc_at j v
β’ Var.openList j (List.map free_ zs) v = v | case h1.free_
zs : List String
X : String
vs : List Var
j : β
aβ : String
a1 : free_ aβ β vs
h1 : Var.lc_at j (free_ aβ)
β’ Var.openList j (List.map free_ zs) (free_ aβ) = free_ aβ
case h1.bound_
zs : List String
X : String
vs : List Var
j aβ : β
a1 : bound_ aβ β vs
h1 : Var.lc_at j (bound_ aβ)
β’ Var.openList j (List.map free_ zs) (bound_ aβ) = bound_ aβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case _ x =>
simp only [Var.openList] | zs : List String
X : String
vs : List Var
j : β
x : String
a1 : free_ x β vs
h1 : Var.lc_at j (free_ x)
β’ Var.openList j (List.map free_ zs) (free_ x) = free_ x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case _ i =>
cases i
case zero =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1]
case succ i =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ i β vs
h1 : Var.lc_at j (bound_ i)
β’ Var.openList j (List.map free_ zs) (bound_ i) = bound_ i | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Var.openList] | zs : List String
X : String
vs : List Var
j : β
x : String
a1 : free_ x β vs
h1 : Var.lc_at j (free_ x)
β’ Var.openList j (List.map free_ zs) (free_ x) = free_ x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | cases i | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ i β vs
h1 : Var.lc_at j (bound_ i)
β’ Var.openList j (List.map free_ zs) (bound_ i) = bound_ i | case zero
zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : Var.lc_at j (bound_ 0)
β’ Var.openList j (List.map free_ zs) (bound_ 0) = bound_ 0
case succ
zs : List String
X : String
vs : List Var
j nβ : β
a1 : bound_ (nβ + 1) β vs
h1 : Var.lc_at j (bound_ (nβ + 1))
β’ Var.openList j (List.map free_ zs) (bound_ (nβ + 1)) = bound_ (nβ + 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case zero =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : Var.lc_at j (bound_ 0)
β’ Var.openList j (List.map free_ zs) (bound_ 0) = bound_ 0 | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | case succ i =>
simp only [Var.lc_at] at h1
simp only [Var.openList]
simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : Var.lc_at j (bound_ (i + 1))
β’ Var.openList j (List.map free_ zs) (bound_ (i + 1)) = bound_ (i + 1) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Var.lc_at] at h1 | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : Var.lc_at j (bound_ 0)
β’ Var.openList j (List.map free_ zs) (bound_ 0) = bound_ 0 | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : 0 < j
β’ Var.openList j (List.map free_ zs) (bound_ 0) = bound_ 0 |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Var.openList] | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : 0 < j
β’ Var.openList j (List.map free_ zs) (bound_ 0) = bound_ 0 | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : 0 < j
β’ (if 0 < j then bound_ 0
else
if x : 0 - j < (List.map free_ zs).length then (List.map free_ zs)[0 - j]
else bound_ (0 - j - (List.map free_ zs).length + j)) =
bound_ 0 |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j : β
a1 : bound_ 0 β vs
h1 : 0 < j
β’ (if 0 < j then bound_ 0
else
if x : 0 - j < (List.map free_ zs).length then (List.map free_ zs)[0 - j]
else bound_ (0 - j - (List.map free_ zs).length + j)) =
bound_ 0 | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Var.lc_at] at h1 | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : Var.lc_at j (bound_ (i + 1))
β’ Var.openList j (List.map free_ zs) (bound_ (i + 1)) = bound_ (i + 1) | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : i + 1 < j
β’ Var.openList j (List.map free_ zs) (bound_ (i + 1)) = bound_ (i + 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Var.openList] | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : i + 1 < j
β’ Var.openList j (List.map free_ zs) (bound_ (i + 1)) = bound_ (i + 1) | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : i + 1 < j
β’ (if i + 1 < j then bound_ (i + 1)
else
if x : i + 1 - j < (List.map free_ zs).length then (List.map free_ zs)[i + 1 - j]
else bound_ (i + 1 - j - (List.map free_ zs).length + j)) =
bound_ (i + 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [if_pos h1] | zs : List String
X : String
vs : List Var
j i : β
a1 : bound_ (i + 1) β vs
h1 : i + 1 < j
β’ (if i + 1 < j then bound_ (i + 1)
else
if x : i + 1 - j < (List.map free_ zs).length then (List.map free_ zs)[i + 1 - j]
else bound_ (i + 1 - j - (List.map free_ zs).length + j)) =
bound_ (i + 1) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.lc_at] at h1 | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi.not_
β’ openList j (List.map free_ zs) phi.not_ = phi.not_ | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ openList j (List.map free_ zs) phi.not_ = phi.not_ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.openList] | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ openList j (List.map free_ zs) phi.not_ = phi.not_ | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ (openList j (List.map free_ zs) phi).not_ = phi.not_ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | congr! | zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ (openList j (List.map free_ zs) phi).not_ = phi.not_ | case h.e'_1
zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ openList j (List.map free_ zs) phi = phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | exact phi_ih j h1 | case h.e'_1
zs : List String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j phi
β’ openList j (List.map free_ zs) phi = phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.lc_at] at h1 | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1 : lc_at j (phi.imp_ psi)
β’ openList j (List.map free_ zs) (phi.imp_ psi) = phi.imp_ psi | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1 : lc_at j phi β§ lc_at j psi
β’ openList j (List.map free_ zs) (phi.imp_ psi) = phi.imp_ psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.openList] | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1 : lc_at j phi β§ lc_at j psi
β’ openList j (List.map free_ zs) (phi.imp_ psi) = phi.imp_ psi | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1 : lc_at j phi β§ lc_at j psi
β’ (openList j (List.map free_ zs) phi).imp_ (openList j (List.map free_ zs) psi) = phi.imp_ psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | cases h1 | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1 : lc_at j phi β§ lc_at j psi
β’ (openList j (List.map free_ zs) phi).imp_ (openList j (List.map free_ zs) psi) = phi.imp_ psi | case intro
zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
leftβ : lc_at j phi
rightβ : lc_at j psi
β’ (openList j (List.map free_ zs) phi).imp_ (openList j (List.map free_ zs) psi) = phi.imp_ psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | congr! | zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1_left : lc_at j phi
h1_right : lc_at j psi
β’ (openList j (List.map free_ zs) phi).imp_ (openList j (List.map free_ zs) psi) = phi.imp_ psi | case h.e'_1
zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1_left : lc_at j phi
h1_right : lc_at j psi
β’ openList j (List.map free_ zs) phi = phi
case h.e'_2
zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1_left : lc_at j phi
h1_right : lc_at j psi
β’ openList j (List.map free_ zs) psi = psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | exact phi_ih j h1_left | case h.e'_1
zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1_left : lc_at j phi
h1_right : lc_at j psi
β’ openList j (List.map free_ zs) phi = phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | exact psi_ih j h1_right | case h.e'_2
zs : List String
phi psi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
psi_ih : β (j : β), lc_at j psi β openList j (List.map free_ zs) psi = psi
j : β
h1_left : lc_at j phi
h1_right : lc_at j psi
β’ openList j (List.map free_ zs) psi = psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.lc_at] at h1 | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at j (forall_ x phi)
β’ openList j (List.map free_ zs) (forall_ x phi) = forall_ x phi | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ openList j (List.map free_ zs) (forall_ x phi) = forall_ x phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp only [Formula.openList] | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ openList j (List.map free_ zs) (forall_ x phi) = forall_ x phi | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ forall_ x (openList (j + 1) (List.map free_ zs) phi) = forall_ x phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | simp | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ forall_ x (openList (j + 1) (List.map free_ zs) phi) = forall_ x phi | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ openList (j + 1) (List.map free_ zs) phi = phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.Formula.OpenListLC | [1207, 1] | [1256, 28] | exact phi_ih (j + 1) h1 | zs : List String
x : String
phi : Formula
phi_ih : β (j : β), lc_at j phi β openList j (List.map free_ zs) phi = phi
j : β
h1 : lc_at (j + 1) phi
β’ openList (j + 1) (List.map free_ zs) phi = phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | induction F generalizing j zs | F : Formula
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) F) β Formula.lc_at (j + zs.length) F | case pred_
aβΒΉ : String
aβ : List Var
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) (pred_ aβΒΉ aβ)) β Formula.lc_at (j + zs.length) (pred_ aβΒΉ aβ)
case not_
aβ : Formula
a_ihβ :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) aβ) β Formula.lc_at (j + zs.length) aβ
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) aβ.not_) β Formula.lc_at (j + zs.length) aβ.not_
case imp_
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) aβΒΉ) β Formula.lc_at (j + zs.length) aβΒΉ
a_ihβ :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) aβ) β Formula.lc_at (j + zs.length) aβ
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) (aβΒΉ.imp_ aβ)) β Formula.lc_at (j + zs.length) (aβΒΉ.imp_ aβ)
case forall_
aβΒΉ : String
aβ : Formula
a_ihβ :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) aβ) β Formula.lc_at (j + zs.length) aβ
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) (forall_ aβΒΉ aβ)) β
Formula.lc_at (j + zs.length) (forall_ aβΒΉ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | case not_ phi phi_ih =>
simp only [Formula.openList]
simp only [Formula.lc_at]
apply phi_ih | phi : Formula
phi_ih :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) phi) β Formula.lc_at (j + zs.length) phi
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) phi.not_) β Formula.lc_at (j + zs.length) phi.not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | case forall_ _ phi phi_ih =>
simp only [Formula.openList]
simp only [Formula.lc_at]
simp only [phi_ih]
have s1 : j + 1 + List.length zs = j + List.length zs + 1
linarith;
simp only [s1] | aβ : String
phi : Formula
phi_ih :
β (j : β) (zs : List String),
Formula.lc_at j (Formula.openList j (List.map free_ zs) phi) β Formula.lc_at (j + zs.length) phi
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) (forall_ aβ phi)) β
Formula.lc_at (j + zs.length) (forall_ aβ phi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp only [Formula.openList] | X : String
vs : List Var
j : β
zs : List String
β’ Formula.lc_at j (Formula.openList j (List.map free_ zs) (pred_ X vs)) β Formula.lc_at (j + zs.length) (pred_ X vs) | X : String
vs : List Var
j : β
zs : List String
β’ Formula.lc_at j (pred_ X (List.map (Var.openList j (List.map free_ zs)) vs)) β
Formula.lc_at (j + zs.length) (pred_ X vs) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp only [Formula.lc_at] | X : String
vs : List Var
j : β
zs : List String
β’ Formula.lc_at j (pred_ X (List.map (Var.openList j (List.map free_ zs)) vs)) β
Formula.lc_at (j + zs.length) (pred_ X vs) | X : String
vs : List Var
j : β
zs : List String
β’ (β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v) β β v β vs, Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | constructor | X : String
vs : List Var
j : β
zs : List String
β’ (β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v) β β v β vs, Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
β’ (β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v) β β v β vs, Var.lc_at (j + zs.length) v
case mpr
X : String
vs : List Var
j : β
zs : List String
β’ (β v β vs, Var.lc_at (j + zs.length) v) β β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | intro a1 v a2 | case mp
X : String
vs : List Var
j : β
zs : List String
β’ (β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v) β β v β vs, Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
a1 : β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v
v : Var
a2 : v β vs
β’ Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | specialize a1 (Var.openList j (List.map free_ zs) v) | case mp
X : String
vs : List Var
j : β
zs : List String
a1 : β v β List.map (Var.openList j (List.map free_ zs)) vs, Var.lc_at j v
v : Var
a2 : v β vs
β’ Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
Var.openList j (List.map free_ zs) v β List.map (Var.openList j (List.map free_ zs)) vs β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp at a1 | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
Var.openList j (List.map free_ zs) v β List.map (Var.openList j (List.map free_ zs)) vs β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
β x β vs,
Var.openList j (List.map free_ zs) x = Var.openList j (List.map free_ zs) v β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | specialize a1 v a2 | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
β x β vs,
Var.openList j (List.map free_ zs) x = Var.openList j (List.map free_ zs) v β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
Var.openList j (List.map free_ zs) v = Var.openList j (List.map free_ zs) v β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp at a1 | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 :
Var.openList j (List.map free_ zs) v = Var.openList j (List.map free_ zs) v β
Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | cases v | case mp
X : String
vs : List Var
j : β
zs : List String
v : Var
a2 : v β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) v)
β’ Var.lc_at (j + zs.length) v | case mp.free_
X : String
vs : List Var
j : β
zs : List String
aβ : String
a2 : free_ aβ β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (free_ aβ))
β’ Var.lc_at (j + zs.length) (free_ aβ)
case mp.bound_
X : String
vs : List Var
j : β
zs : List String
aβ : β
a2 : bound_ aβ β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (bound_ aβ))
β’ Var.lc_at (j + zs.length) (bound_ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | case _ x =>
simp only [Var.lc_at] | X : String
vs : List Var
j : β
zs : List String
x : String
a2 : free_ x β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (free_ x))
β’ Var.lc_at (j + zs.length) (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | case _ i =>
simp only [Var.lc_at]
simp only [Var.openList] at a1
split at a1
case _ c1 =>
linarith
case _ c1 =>
split at a1
case _ c2 =>
simp at c2
exact lt_add_of_tsub_lt_left c2
case _ c2 =>
simp only [Var.lc_at] at a1
simp at a1 | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (bound_ i))
β’ Var.lc_at (j + zs.length) (bound_ i) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp only [Var.lc_at] | X : String
vs : List Var
j : β
zs : List String
x : String
a2 : free_ x β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (free_ x))
β’ Var.lc_at (j + zs.length) (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp only [Var.lc_at] | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (bound_ i))
β’ Var.lc_at (j + zs.length) (bound_ i) | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (bound_ i))
β’ i < j + zs.length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | simp only [Var.openList] at a1 | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 : Var.lc_at j (Var.openList j (List.map free_ zs) (bound_ i))
β’ i < j + zs.length | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 :
Var.lc_at j
(if i < j then bound_ i
else
if x : i - j < (List.map free_ zs).length then (List.map free_ zs)[i - j]
else bound_ (i - j - (List.map free_ zs).length + j))
β’ i < j + zs.length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | split at a1 | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
a1 :
Var.lc_at j
(if i < j then bound_ i
else
if x : i - j < (List.map free_ zs).length then (List.map free_ zs)[i - j]
else bound_ (i - j - (List.map free_ zs).length + j))
β’ i < j + zs.length | case inl
X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
hβ : i < j
a1 : Var.lc_at j (bound_ i)
β’ i < j + zs.length
case inr
X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
hβ : Β¬i < j
a1 :
Var.lc_at j
(if x : i - j < (List.map free_ zs).length then (List.map free_ zs)[i - j]
else bound_ (i - j - (List.map free_ zs).length + j))
β’ i < j + zs.length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.lc_at_instantiate | [1259, 1] | [1342, 19] | case _ c1 =>
linarith | X : String
vs : List Var
j : β
zs : List String
i : β
a2 : bound_ i β vs
c1 : i < j
a1 : Var.lc_at j (bound_ i)
β’ i < j + zs.length | no goals |