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.HoldsCoincideVar | [959, 1] | [1015, 17] | tauto | case a.h'.a.h1.a
D : Type
I : Interpretation D
phi psi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
psi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v psi β V v = V' v) β (Holds D I V psi β Holds D I V' psi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn v (phi.imp_ psi) β V v = V' v
aβ : Holds D I V' phi
v : Var
a1 : occursFreeIn v psi
β’ occursFreeIn v phi β¨ occursFreeIn v psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [occursFreeIn] at h1 | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn v (forall_ x phi) β V v = V' v
β’ Holds D I V (forall_ x phi) β Holds D I V' (forall_ x phi) | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ Holds D I V (forall_ x phi) β Holds D I V' (forall_ x phi) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [Holds] | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ Holds D I V (forall_ x phi) β Holds D I V' (forall_ x phi) | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ (β (d : D), Holds D I (shift D V d) phi) β β (d : D), Holds D I (shift D V' d) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | apply forall_congr' | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ (β (d : D), Holds D I (shift D V d) phi) β β (d : D), Holds D I (shift D V' d) phi | case h
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ β (a : D), Holds D I (shift D V a) phi β Holds D I (shift D V' a) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | intro d | case h
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
β’ β (a : D), Holds D I (shift D V a) phi β Holds D I (shift D V' a) phi | case h
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
β’ Holds D I (shift D V d) phi β Holds D I (shift D V' d) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | apply phi_ih | case h
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
β’ Holds D I (shift D V d) phi β Holds D I (shift D V' d) phi | case h.h1
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
β’ β (v : Var), occursFreeIn v phi β shift D V d v = shift D V' d v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | intro v a1 | case h.h1
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
β’ β (v : Var), occursFreeIn v phi β shift D V d v = shift D V' d v | case h.h1
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
v : Var
a1 : occursFreeIn v phi
β’ shift D V d v = shift D V' d v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | cases v | case h.h1
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
v : Var
a1 : occursFreeIn v phi
β’ shift D V d v = shift D V' d v | case h.h1.free_
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
aβ : String
a1 : occursFreeIn (free_ aβ) phi
β’ shift D V d (free_ aβ) = shift D V' d (free_ aβ)
case h.h1.bound_
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
aβ : β
a1 : occursFreeIn (bound_ aβ) phi
β’ shift D V d (bound_ aβ) = shift D V' d (bound_ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | case free_ x =>
simp only [shift]
apply h1
exact a1 | D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ shift D V d (free_ x) = shift D V' d (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | case bound_ i =>
cases i
case zero =>
simp only [shift]
case succ i =>
simp only [shift]
apply h1
simp only [lift]
exact a1 | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ i) phi
β’ shift D V d (bound_ i) = shift D V' d (bound_ i) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [shift] | D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ shift D V d (free_ x) = shift D V' d (free_ x) | D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ V (free_ x) = V' (free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | apply h1 | D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ V (free_ x) = V' (free_ x) | case a
D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ occursFreeIn (lift (free_ x)) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | exact a1 | case a
D : Type
I : Interpretation D
xβ : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
x : String
a1 : occursFreeIn (free_ x) phi
β’ occursFreeIn (lift (free_ x)) phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | cases i | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ i) phi
β’ shift D V d (bound_ i) = shift D V' d (bound_ i) | case zero
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
a1 : occursFreeIn (bound_ 0) phi
β’ shift D V d (bound_ 0) = shift D V' d (bound_ 0)
case succ
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
nβ : β
a1 : occursFreeIn (bound_ (nβ + 1)) phi
β’ shift D V d (bound_ (nβ + 1)) = shift D V' d (bound_ (nβ + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | case zero =>
simp only [shift] | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
a1 : occursFreeIn (bound_ 0) phi
β’ shift D V d (bound_ 0) = shift D V' d (bound_ 0) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | case succ i =>
simp only [shift]
apply h1
simp only [lift]
exact a1 | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ shift D V d (bound_ (i + 1)) = shift D V' d (bound_ (i + 1)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [shift] | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
a1 : occursFreeIn (bound_ 0) phi
β’ shift D V d (bound_ 0) = shift D V' d (bound_ 0) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [shift] | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ shift D V d (bound_ (i + 1)) = shift D V' d (bound_ (i + 1)) | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ V (bound_ i) = V' (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | apply h1 | D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ V (bound_ i) = V' (bound_ i) | case a
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ occursFreeIn (lift (bound_ i)) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | simp only [lift] | case a
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ occursFreeIn (lift (bound_ i)) phi | case a
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ occursFreeIn (bound_ (i + 1)) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsCoincideVar | [959, 1] | [1015, 17] | exact a1 | case a
D : Type
I : Interpretation D
x : String
phi : Formula
phi_ih :
β (V V' : VarAssignment D), (β (v : Var), occursFreeIn v phi β V v = V' v) β (Holds D I V phi β Holds D I V' phi)
V V' : VarAssignment D
h1 : β (v : Var), occursFreeIn (lift v) phi β V v = V' v
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) phi
β’ occursFreeIn (bound_ (i + 1)) phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | apply forall_congr' | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ (β (d : D), Holds D I (shift D V d) F) β
β (d : D), Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F | case h
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ β (a : D), Holds D I (shift D V a) F β Holds D I (Function.updateITE V (free_ z) a β Var.openList 0 [free_ z]) F |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | intro d | case h
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ β (a : D), Holds D I (shift D V a) F β Holds D I (Function.updateITE V (free_ z) a β Var.openList 0 [free_ z]) F | case h
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ Holds D I (shift D V d) F β Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | apply HoldsCoincideVar | case h
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ Holds D I (shift D V d) F β Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ β (v : Var), occursFreeIn v F β shift D V d v = (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | intro v a1 | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ β (v : Var), occursFreeIn v F β shift D V d v = (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) v | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) v | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = Function.updateITE V (free_ z) d (Var.openList 0 [free_ z] v) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [Function.updateITE] | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = Function.updateITE V (free_ z) d (Var.openList 0 [free_ z] v) | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = if Var.openList 0 [free_ z] v = free_ z then d else V (Var.openList 0 [free_ z] v) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | cases v | case h.h1
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
v : Var
a1 : occursFreeIn v F
β’ shift D V d v = if Var.openList 0 [free_ z] v = free_ z then d else V (Var.openList 0 [free_ z] v) | case h.h1.free_
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
aβ : String
a1 : occursFreeIn (free_ aβ) F
β’ shift D V d (free_ aβ) =
if Var.openList 0 [free_ z] (free_ aβ) = free_ z then d else V (Var.openList 0 [free_ z] (free_ aβ))
case h.h1.bound_
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
aβ : β
a1 : occursFreeIn (bound_ aβ) F
β’ shift D V d (bound_ aβ) =
if Var.openList 0 [free_ z] (bound_ aβ) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ aβ)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case _ x' =>
simp only [shift]
simp only [Var.openList]
split_ifs
case _ c1 =>
simp at c1
simp only [β c1] at h1
contradiction
case _ c1 =>
rfl | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ shift D V d (free_ x') =
if Var.openList 0 [free_ z] (free_ x') = free_ z then d else V (Var.openList 0 [free_ z] (free_ x')) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case _ i =>
cases i
case zero =>
simp only [shift]
simp only [Var.openList]
simp
case succ i =>
simp only [shift]
simp only [Var.openList]
simp | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ i) F
β’ shift D V d (bound_ i) =
if Var.openList 0 [free_ z] (bound_ i) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [shift] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ shift D V d (free_ x') =
if Var.openList 0 [free_ z] (free_ x') = free_ z then d else V (Var.openList 0 [free_ z] (free_ x')) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ V (free_ x') = if Var.openList 0 [free_ z] (free_ x') = free_ z then d else V (Var.openList 0 [free_ z] (free_ x')) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [Var.openList] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ V (free_ x') = if Var.openList 0 [free_ z] (free_ x') = free_ z then d else V (Var.openList 0 [free_ z] (free_ x')) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ V (free_ x') = if free_ x' = free_ z then d else V (free_ x') |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | split_ifs | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
β’ V (free_ x') = if free_ x' = free_ z then d else V (free_ x') | case pos
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
hβ : free_ x' = free_ z
β’ V (free_ x') = d
case neg
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
hβ : Β¬free_ x' = free_ z
β’ V (free_ x') = V (free_ x') |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case _ c1 =>
simp at c1
simp only [β c1] at h1
contradiction | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : free_ x' = free_ z
β’ V (free_ x') = d | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case _ c1 =>
rfl | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : Β¬free_ x' = free_ z
β’ V (free_ x') = V (free_ x') | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp at c1 | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : free_ x' = free_ z
β’ V (free_ x') = d | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : x' = z
β’ V (free_ x') = d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [β c1] at h1 | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : x' = z
β’ V (free_ x') = d | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : x' = z
h1 : Β¬occursFreeIn (free_ x') F
β’ V (free_ x') = d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | contradiction | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : x' = z
h1 : Β¬occursFreeIn (free_ x') F
β’ V (free_ x') = d | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | rfl | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
x' : String
a1 : occursFreeIn (free_ x') F
c1 : Β¬free_ x' = free_ z
β’ V (free_ x') = V (free_ x') | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | cases i | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ i) F
β’ shift D V d (bound_ i) =
if Var.openList 0 [free_ z] (bound_ i) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ i)) | case zero
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ shift D V d (bound_ 0) =
if Var.openList 0 [free_ z] (bound_ 0) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ 0))
case succ
D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
nβ : β
a1 : occursFreeIn (bound_ (nβ + 1)) F
β’ shift D V d (bound_ (nβ + 1)) =
if Var.openList 0 [free_ z] (bound_ (nβ + 1)) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ (nβ + 1))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case zero =>
simp only [shift]
simp only [Var.openList]
simp | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ shift D V d (bound_ 0) =
if Var.openList 0 [free_ z] (bound_ 0) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ 0)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | case succ i =>
simp only [shift]
simp only [Var.openList]
simp | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ shift D V d (bound_ (i + 1)) =
if Var.openList 0 [free_ z] (bound_ (i + 1)) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ (i + 1))) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [shift] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ shift D V d (bound_ 0) =
if Var.openList 0 [free_ z] (bound_ 0) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ 0)) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ d = if Var.openList 0 [free_ z] (bound_ 0) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ 0)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [Var.openList] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ d = if Var.openList 0 [free_ z] (bound_ 0) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ 0)) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ d =
if
(if 0 < 0 then bound_ 0
else if x : 0 - 0 < [free_ z].length then [free_ z][0 - 0] else bound_ (0 - 0 - [free_ z].length + 0)) =
free_ z then
d
else
V
(if 0 < 0 then bound_ 0
else if x : 0 - 0 < [free_ z].length then [free_ z][0 - 0] else bound_ (0 - 0 - [free_ z].length + 0)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
a1 : occursFreeIn (bound_ 0) F
β’ d =
if
(if 0 < 0 then bound_ 0
else if x : 0 - 0 < [free_ z].length then [free_ z][0 - 0] else bound_ (0 - 0 - [free_ z].length + 0)) =
free_ z then
d
else
V
(if 0 < 0 then bound_ 0
else if x : 0 - 0 < [free_ z].length then [free_ z][0 - 0] else bound_ (0 - 0 - [free_ z].length + 0)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [shift] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ shift D V d (bound_ (i + 1)) =
if Var.openList 0 [free_ z] (bound_ (i + 1)) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ (i + 1))) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ V (bound_ i) =
if Var.openList 0 [free_ z] (bound_ (i + 1)) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ (i + 1))) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp only [Var.openList] | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ V (bound_ i) =
if Var.openList 0 [free_ z] (bound_ (i + 1)) = free_ z then d else V (Var.openList 0 [free_ z] (bound_ (i + 1))) | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ V (bound_ i) =
if
(if i + 1 < 0 then bound_ (i + 1)
else
if x : i + 1 - 0 < [free_ z].length then [free_ z][i + 1 - 0]
else bound_ (i + 1 - 0 - [free_ z].length + 0)) =
free_ z then
d
else
V
(if i + 1 < 0 then bound_ (i + 1)
else
if x : i + 1 - 0 < [free_ z].length then [free_ z][i + 1 - 0] else bound_ (i + 1 - 0 - [free_ z].length + 0)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsShift | [1018, 1] | [1053, 11] | simp | D : Type
I : Interpretation D
V : VarAssignment D
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
i : β
a1 : occursFreeIn (bound_ (i + 1)) F
β’ V (bound_ i) =
if
(if i + 1 < 0 then bound_ (i + 1)
else
if x : i + 1 - 0 < [free_ z].length then [free_ z][i + 1 - 0]
else bound_ (i + 1 - 0 - [free_ z].length + 0)) =
free_ z then
d
else
V
(if i + 1 < 0 then bound_ (i + 1)
else
if x : i + 1 - 0 < [free_ z].length then [free_ z][i + 1 - 0] else bound_ (i + 1 - 0 - [free_ z].length + 0)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | simp only [Holds] | D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ Holds D I V (forall_ x F) β β (d : D), Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ (β (d : D), Holds D I (shift D V d) F) β
β (d : D), Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | simp only [HoldsShift D I V F z h1] | D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ (β (d : D), Holds D I (shift D V d) F) β
β (d : D), Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ (β (d : D), Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F) β
β (d : D), Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | apply forall_congr' | D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ (β (d : D), Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F) β
β (d : D), Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ β (a : D),
Holds D I (Function.updateITE V (free_ z) a β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) a) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | intro d | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
β’ β (a : D),
Holds D I (Function.updateITE V (free_ z) a β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) a) (Formula.openList 0 [free_ z] F) | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | obtain s1 := HoldsOpenList D I (Function.updateITE V (free_ z) d) 0 [z] F | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
s1 :
Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 (List.map free_ [z])) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 (List.map free_ [z]) F)
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | simp at s1 | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
s1 :
Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 (List.map free_ [z])) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 (List.map free_ [z]) F)
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
s1 :
Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F)
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsForall | [1056, 1] | [1072, 11] | exact s1 | case h
D : Type
I : Interpretation D
V : VarAssignment D
x : String
F : Formula
z : String
h1 : Β¬occursFreeIn (free_ z) F
d : D
s1 :
Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F)
β’ Holds D I (Function.updateITE V (free_ z) d β Var.openList 0 [free_ z]) F β
Holds D I (Function.updateITE V (free_ z) d) (Formula.openList 0 [free_ z] F) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | funext v | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d β Var.close (j + 1) (free_ z) = shift D (V β Var.close j (free_ z)) d | case h
D : Type
V : VarAssignment D
j : β
z : String
d : D
v : Var
β’ (shift D V d β Var.close (j + 1) (free_ z)) v = shift D (V β Var.close j (free_ z)) d v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp | case h
D : Type
V : VarAssignment D
j : β
z : String
d : D
v : Var
β’ (shift D V d β Var.close (j + 1) (free_ z)) v = shift D (V β Var.close j (free_ z)) d v | case h
D : Type
V : VarAssignment D
j : β
z : String
d : D
v : Var
β’ shift D V d (Var.close (j + 1) (free_ z) v) = shift D (V β Var.close j (free_ z)) d v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | cases v | case h
D : Type
V : VarAssignment D
j : β
z : String
d : D
v : Var
β’ shift D V d (Var.close (j + 1) (free_ z) v) = shift D (V β Var.close j (free_ z)) d v | case h.free_
D : Type
V : VarAssignment D
j : β
z : String
d : D
aβ : String
β’ shift D V d (Var.close (j + 1) (free_ z) (free_ aβ)) = shift D (V β Var.close j (free_ z)) d (free_ aβ)
case h.bound_
D : Type
V : VarAssignment D
j : β
z : String
d : D
aβ : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ aβ)) = shift D (V β Var.close j (free_ z)) d (bound_ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case _ x =>
conv =>
rhs
simp only [shift]
simp
simp only [Var.close]
simp
split_ifs
case _ c1 =>
simp only [shift]
simp
case _ c1 =>
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (Var.close (j + 1) (free_ z) (free_ x)) = shift D (V β Var.close j (free_ z)) d (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case _ i =>
cases i
case zero =>
conv =>
rhs
simp only [shift]
simp only [Var.close]
simp
simp only [shift]
case succ i =>
conv =>
rhs
simp only [shift]
simp
simp only [Var.close]
simp only [Var.close]
split
case _ c1 =>
have s1 : i < j
linarith
simp only [if_pos s1]
simp only [shift]
case _ c1 =>
simp at c1
have s1 : Β¬ i < j
linarith
simp only [if_neg s1]
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ i)) = shift D (V β Var.close j (free_ z)) d (bound_ i) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | conv =>
rhs
simp only [shift]
simp | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (Var.close (j + 1) (free_ z) (free_ x)) = shift D (V β Var.close j (free_ z)) d (free_ x) | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (Var.close (j + 1) (free_ z) (free_ x)) = V (Var.close j (free_ z) (free_ x)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [Var.close] | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (Var.close (j + 1) (free_ z) (free_ x)) = V (Var.close j (free_ z) (free_ x)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (if free_ x = free_ z then bound_ (j + 1) else 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.extracted_1 | [1075, 1] | [1126, 26] | simp | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (if free_ x = free_ z then bound_ (j + 1) else free_ x) =
V (if free_ x = free_ z then bound_ j else free_ x) | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (if x = z then bound_ (j + 1) else free_ x) = V (if x = z then bound_ j else free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | split_ifs | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
β’ shift D V d (if x = z then bound_ (j + 1) else free_ x) = V (if x = z then bound_ j else free_ x) | case pos
D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
hβ : x = z
β’ shift D V d (bound_ (j + 1)) = V (bound_ j)
case neg
D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
hβ : Β¬x = z
β’ shift D V d (free_ x) = V (free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case _ c1 =>
simp only [shift]
simp | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
c1 : x = z
β’ shift D V d (bound_ (j + 1)) = V (bound_ j) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case _ c1 =>
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
c1 : Β¬x = z
β’ shift D V d (free_ x) = V (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
c1 : x = z
β’ shift D V d (bound_ (j + 1)) = V (bound_ j) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
x : String
c1 : Β¬x = z
β’ shift D V d (free_ x) = V (free_ x) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | cases i | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ i)) = shift D (V β Var.close j (free_ z)) d (bound_ i) | case zero
D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ 0)) = shift D (V β Var.close j (free_ z)) d (bound_ 0)
case succ
D : Type
V : VarAssignment D
j : β
z : String
d : D
nβ : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ (nβ + 1))) = shift D (V β Var.close j (free_ z)) d (bound_ (nβ + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case zero =>
conv =>
rhs
simp only [shift]
simp only [Var.close]
simp
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ 0)) = shift D (V β Var.close j (free_ z)) d (bound_ 0) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case succ i =>
conv =>
rhs
simp only [shift]
simp
simp only [Var.close]
simp only [Var.close]
split
case _ c1 =>
have s1 : i < j
linarith
simp only [if_pos s1]
simp only [shift]
case _ c1 =>
simp at c1
have s1 : Β¬ i < j
linarith
simp only [if_neg s1]
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ (i + 1))) = shift D (V β Var.close j (free_ z)) d (bound_ (i + 1)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | conv =>
rhs
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ 0)) = shift D (V β Var.close j (free_ z)) d (bound_ 0) | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ 0)) = d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [Var.close] | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ 0)) = d | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (if 0 < j + 1 then bound_ 0 else bound_ (0 + 1)) = d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (if 0 < j + 1 then bound_ 0 else bound_ (0 + 1)) = d | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (bound_ 0) = d |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
β’ shift D V d (bound_ 0) = d | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | conv =>
rhs
simp only [shift]
simp
simp only [Var.close] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ (i + 1))) = shift D (V β Var.close j (free_ z)) d (bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ (i + 1))) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [Var.close] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (Var.close (j + 1) (free_ z) (bound_ (i + 1))) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (if i + 1 < j + 1 then bound_ (i + 1) else bound_ (i + 1 + 1)) =
V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | split | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
β’ shift D V d (if i + 1 < j + 1 then bound_ (i + 1) else bound_ (i + 1 + 1)) =
V (if i < j then bound_ i else bound_ (i + 1)) | case inl
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
hβ : i + 1 < j + 1
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1))
case inr
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
hβ : Β¬i + 1 < j + 1
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | case _ c1 =>
have s1 : i < j
linarith
simp only [if_pos s1]
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
β’ shift D V d (bound_ (i + 1)) = 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.extracted_1 | [1075, 1] | [1126, 26] | case _ c1 =>
simp at c1
have s1 : Β¬ i < j
linarith
simp only [if_neg s1]
simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : Β¬i + 1 < j + 1
β’ shift D V d (bound_ (i + 1 + 1)) = 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.extracted_1 | [1075, 1] | [1126, 26] | have s1 : i < j | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | case s1
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
β’ i < j
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | linarith | case s1
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
β’ i < j
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [if_pos s1] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : i + 1 < j + 1
s1 : i < j
β’ shift D V d (bound_ (i + 1)) = V (bound_ i) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp at c1 | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : Β¬i + 1 < j + 1
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | have s1 : Β¬ i < j | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | case s1
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
β’ Β¬i < j
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | linarith | case s1
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
β’ Β¬i < j
D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [if_neg s1] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (if i < j then bound_ i else bound_ (i + 1)) | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (bound_ (i + 1)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.extracted_1 | [1075, 1] | [1126, 26] | simp only [shift] | D : Type
V : VarAssignment D
j : β
z : String
d : D
i : β
c1 : j β€ i
s1 : Β¬i < j
β’ shift D V d (bound_ (i + 1 + 1)) = V (bound_ (i + 1)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | induction F generalizing V j | D : Type
I : Interpretation D
V : VarAssignment D
z : String
F : Formula
j : β
h1 : Β¬occursIn (free_ z) F
h2 : Formula.lc_at j F
β’ Holds D I V F β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] F) | case pred_
D : Type
I : Interpretation D
z aβΒΉ : String
aβ : List Var
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (pred_ aβΒΉ aβ)
h2 : Formula.lc_at j (pred_ aβΒΉ aβ)
β’ Holds D I V (pred_ aβΒΉ aβ) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ aβΒΉ aβ))
case not_
D : Type
I : Interpretation D
z : String
aβ : Formula
a_ihβ :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) aβ β
Formula.lc_at j aβ β (Holds D I V aβ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] aβ))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) aβ.not_
h2 : Formula.lc_at j aβ.not_
β’ Holds D I V aβ.not_ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] aβ.not_)
case imp_
D : Type
I : Interpretation D
z : String
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) aβΒΉ β
Formula.lc_at j aβΒΉ β (Holds D I V aβΒΉ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] aβΒΉ))
a_ihβ :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) aβ β
Formula.lc_at j aβ β (Holds D I V aβ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] aβ))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (aβΒΉ.imp_ aβ)
h2 : Formula.lc_at j (aβΒΉ.imp_ aβ)
β’ Holds D I V (aβΒΉ.imp_ aβ) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (aβΒΉ.imp_ aβ))
case forall_
D : Type
I : Interpretation D
z aβΒΉ : String
aβ : Formula
a_ihβ :
β (V : VarAssignment D) (j : β),
Β¬occursIn (free_ z) aβ β
Formula.lc_at j aβ β (Holds D I V aβ β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] aβ))
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (forall_ aβΒΉ aβ)
h2 : Formula.lc_at j (forall_ aβΒΉ aβ)
β’ Holds D I V (forall_ aβΒΉ aβ) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (forall_ aβΒΉ aβ)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | case pred_ X vs =>
simp only [occursIn] at h1
simp only [Formula.lc_at] at h2
simp only [Formula.openList]
simp only [Holds]
congr! 1
simp
simp only [List.map_eq_map_iff]
intro v a1
specialize h2 v a1
simp
cases v
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]
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 : Β¬occursIn (free_ z) (pred_ X vs)
h2 : Formula.lc_at j (pred_ X vs)
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | case not_ phi phi_ih =>
simp only [occursIn] at h1
simp only [Formula.lc_at] at h2
simp only [Holds]
congr! 1
exact phi_ih V j h1 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.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_) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | case forall_ x phi phi_ih =>
simp only [occursIn] at h1
simp only [Formula.lc_at] at h2
simp only [Formula.openList]
simp only [Holds]
apply forall_congr'
intro d
specialize phi_ih (shift D V d) (j + 1) h1 h2
simp only [phi_ih]
congr! 1
apply extracted_1 | 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)) | 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
vs : List Var
V : VarAssignment D
j : β
h1 : Β¬occursIn (free_ z) (pred_ X vs)
h2 : Formula.lc_at j (pred_ X vs)
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) | D : Type
I : Interpretation D
z X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : Formula.lc_at j (pred_ X vs)
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) |
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
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : Formula.lc_at j (pred_ X vs)
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) | 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
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) |
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
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (Formula.openList j [free_ z] (pred_ X vs)) | 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
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (pred_ X (List.map (Var.openList j [free_ z]) vs)) |
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
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
β’ Holds D I V (pred_ X vs) β Holds D I (V β Var.close j (free_ z)) (pred_ X (List.map (Var.openList j [free_ z]) vs)) | 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
β’ I.pred_ X (List.map V vs) β I.pred_ X (List.map (V β Var.close j (free_ z)) (List.map (Var.openList j [free_ z]) vs)) |
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 X : String
vs : List Var
V : VarAssignment D
j : β
h1 : free_ z β vs
h2 : β v β vs, Var.lc_at j v
β’ I.pred_ X (List.map V vs) β I.pred_ X (List.map (V β Var.close j (free_ z)) (List.map (Var.openList j [free_ z]) vs)) | 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
β’ List.map V vs = List.map (V β Var.close j (free_ z)) (List.map (Var.openList j [free_ z]) vs) |
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
h2 : β v β vs, Var.lc_at j v
β’ List.map V vs = List.map (V β Var.close j (free_ z)) (List.map (Var.openList j [free_ z]) vs) | 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
β’ List.map V vs = List.map ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.HoldsClose | [1129, 1] | [1204, 22] | simp only [List.map_eq_map_iff] | 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
β’ List.map V vs = List.map ((V β Var.close j (free_ z)) β Var.openList j [free_ z]) vs | 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 |