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.VarSubstFreeVarSet | [474, 1] | [500, 9] | exact c1 | case s1
z : String
t : Var
x : String
c1 : Β¬z = x
β’ Β¬z = x
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
s1 : (free_ x).freeVarSet \ {free_ z} = {free_ x}
β’ (free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
s1 : (free_ x).freeVarSet \ {free_ z} = {free_ x}
β’ (free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp only [s1] | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
s1 : (free_ x).freeVarSet \ {free_ z} = {free_ x}
β’ (free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
s1 : (free_ x).freeVarSet \ {free_ z} = {free_ x}
β’ (free_ x).freeVarSet β t.freeVarSet βͺ {free_ x} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | apply Finset.subset_union_right | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
s1 : (free_ x).freeVarSet \ {free_ z} = {free_ x}
β’ (free_ x).freeVarSet β t.freeVarSet βͺ {free_ x} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp only [Var.subst] | z : String
t : Var
i : β
β’ ((free_ z).subst t (bound_ i)).freeVarSet β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} | z : String
t : Var
i : β
β’ (bound_ i).freeVarSet β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | conv =>
lhs
simp only [Var.freeVarSet] | z : String
t : Var
i : β
β’ (bound_ i).freeVarSet β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} | z : String
t : Var
i : β
β’ β
β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp | z : String
t : Var
i : β
β’ β
β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | induction F | z : String
t : Var
F : Formula
β’ (Formula.subst (free_ z) t F).freeVarSet β t.freeVarSet βͺ F.freeVarSet \ {free_ z} | case pred_
z : String
t : Var
aβΒΉ : String
aβ : List Var
β’ (Formula.subst (free_ z) t (pred_ aβΒΉ aβ)).freeVarSet β t.freeVarSet βͺ (pred_ aβΒΉ aβ).freeVarSet \ {free_ z}
case not_
z : String
t : Var
aβ : Formula
a_ihβ : (Formula.subst (free_ z) t aβ).freeVarSet β t.freeVarSet βͺ aβ.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t aβ.not_).freeVarSet β t.freeVarSet βͺ aβ.not_.freeVarSet \ {free_ z}
case imp_
z : String
t : Var
aβΒΉ aβ : Formula
a_ihβΒΉ : (Formula.subst (free_ z) t aβΒΉ).freeVarSet β t.freeVarSet βͺ aβΒΉ.freeVarSet \ {free_ z}
a_ihβ : (Formula.subst (free_ z) t aβ).freeVarSet β t.freeVarSet βͺ aβ.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t (aβΒΉ.imp_ aβ)).freeVarSet β t.freeVarSet βͺ (aβΒΉ.imp_ aβ).freeVarSet \ {free_ z}
case forall_
z : String
t : Var
aβΒΉ : String
aβ : Formula
a_ihβ : (Formula.subst (free_ z) t aβ).freeVarSet β t.freeVarSet βͺ aβ.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t (forall_ aβΒΉ aβ)).freeVarSet β t.freeVarSet βͺ (forall_ aβΒΉ aβ).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | case not_ phi phi_ih =>
simp only [Formula.subst]
simp only [Formula.freeVarSet]
exact phi_ih | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi.not_).freeVarSet β t.freeVarSet βͺ phi.not_.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | case forall_ x phi phi_ih =>
simp only [Formula.subst]
simp only [Formula.freeVarSet]
exact phi_ih | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet β t.freeVarSet βͺ (forall_ x phi).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.subst] | z : String
t : Var
X : String
vs : List Var
β’ (Formula.subst (free_ z) t (pred_ X vs)).freeVarSet β t.freeVarSet βͺ (pred_ X vs).freeVarSet \ {free_ z} | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet β t.freeVarSet βͺ (pred_ X vs).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet β t.freeVarSet βͺ (pred_ X vs).freeVarSet \ {free_ z} | z : String
t : Var
X : String
vs : List Var
β’ (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet β
t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp | z : String
t : Var
X : String
vs : List Var
β’ (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet β
t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z : String
t : Var
X : String
vs : List Var
β’ β a β vs, ((free_ z).subst t a).freeVarSet β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | intro v a1 | z : String
t : Var
X : String
vs : List Var
β’ β a β vs, ((free_ z).subst t a).freeVarSet β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ ((free_ z).subst t v).freeVarSet β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | trans Var.freeVarSet t βͺ Var.freeVarSet v \ {free_ z} | z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ ((free_ z).subst t v).freeVarSet β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ ((free_ z).subst t v).freeVarSet β t.freeVarSet βͺ v.freeVarSet \ {free_ z}
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ t.freeVarSet βͺ v.freeVarSet \ {free_ z} β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | exact VarSubstFreeVarSet z t v | z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ ((free_ z).subst t v).freeVarSet β t.freeVarSet βͺ v.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | apply Finset.union_subset_union_right | z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ t.freeVarSet βͺ v.freeVarSet \ {free_ z} β t.freeVarSet βͺ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | case h
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ v.freeVarSet \ {free_ z} β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [β List.mem_toFinset] at a1 | case h
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs
β’ v.freeVarSet \ {free_ z} β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | case h
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ v.freeVarSet \ {free_ z} β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | apply Finset.sdiff_subset_sdiff | case h
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ v.freeVarSet \ {free_ z} β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | case h.hst
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ v.freeVarSet β vs.toFinset.biUnion Var.freeVarSet
case h.hvu
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ {free_ z} β {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | apply Finset.subset_biUnion_of_mem Var.freeVarSet a1 | case h.hst
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ v.freeVarSet β vs.toFinset.biUnion Var.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp | case h.hvu
z : String
t : Var
X : String
vs : List Var
v : Var
a1 : v β vs.toFinset
β’ {free_ z} β {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.subst] | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi.not_).freeVarSet β t.freeVarSet βͺ phi.not_.freeVarSet \ {free_ z} | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).not_.freeVarSet β t.freeVarSet βͺ phi.not_.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).not_.freeVarSet β t.freeVarSet βͺ phi.not_.freeVarSet \ {free_ z} | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | exact phi_ih | z : String
t : Var
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.subst] | z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t (phi.imp_ psi)).freeVarSet β t.freeVarSet βͺ (phi.imp_ psi).freeVarSet \ {free_ z} | z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ ((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet β
t.freeVarSet βͺ (phi.imp_ psi).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ ((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet β
t.freeVarSet βͺ (phi.imp_ psi).freeVarSet \ {free_ z} | z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet βͺ (Formula.subst (free_ z) t psi).freeVarSet β
t.freeVarSet βͺ (phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | apply Finset.union_subset_left_right_diff | z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet βͺ (Formula.subst (free_ z) t psi).freeVarSet β
t.freeVarSet βͺ (phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} | case h1
z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
case h2
z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | exact phi_ih | case h1
z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | exact psi_ih | case h2
z : String
t : Var
phi psi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
psi_ih : (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t psi).freeVarSet β t.freeVarSet βͺ psi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.subst] | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet β t.freeVarSet βͺ (forall_ x phi).freeVarSet \ {free_ z} | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet β t.freeVarSet βͺ (forall_ x phi).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet β t.freeVarSet βͺ (forall_ x phi).freeVarSet \ {free_ z} | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet | [503, 1] | [536, 17] | exact phi_ih | z : String
t : Var
x : String
phi : Formula
phi_ih : (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z}
β’ (Formula.subst (free_ z) t phi).freeVarSet β t.freeVarSet βͺ phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | cases v | z : String
t v : Var
β’ v.freeVarSet \ {free_ z} β ((free_ z).subst t v).freeVarSet | case free_
z : String
t : Var
aβ : String
β’ (free_ aβ).freeVarSet \ {free_ z} β ((free_ z).subst t (free_ aβ)).freeVarSet
case bound_
z : String
t : Var
aβ : β
β’ (bound_ aβ).freeVarSet \ {free_ z} β ((free_ z).subst t (bound_ aβ)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | case free_ x =>
simp only [Var.subst]
split_ifs
case pos c1 =>
simp only [c1]
conv =>
lhs
simp only [Var.freeVarSet]
simp
case neg c1 =>
simp only [Var.freeVarSet]
exact Finset.sdiff_subset {free_ x} {free_ z} | z : String
t : Var
x : String
β’ (free_ x).freeVarSet \ {free_ z} β ((free_ z).subst t (free_ x)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | case bound_ i =>
conv =>
lhs
simp only [Var.freeVarSet] | z : String
t : Var
i : β
β’ (bound_ i).freeVarSet \ {free_ z} β ((free_ z).subst t (bound_ i)).freeVarSet | z : String
t : Var
i : β
β’ β
\ {free_ z} β ((free_ z).subst t (bound_ i)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | simp only [Var.subst] | z : String
t : Var
x : String
β’ (free_ x).freeVarSet \ {free_ z} β ((free_ z).subst t (free_ x)).freeVarSet | z : String
t : Var
x : String
β’ (free_ x).freeVarSet \ {free_ z} β (if free_ z = free_ x then t else free_ x).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | split_ifs | z : String
t : Var
x : String
β’ (free_ x).freeVarSet \ {free_ z} β (if free_ z = free_ x then t else free_ x).freeVarSet | case pos
z : String
t : Var
x : String
hβ : free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β t.freeVarSet
case neg
z : String
t : Var
x : String
hβ : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β (free_ x).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | case pos c1 =>
simp only [c1]
conv =>
lhs
simp only [Var.freeVarSet]
simp | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β t.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | case neg c1 =>
simp only [Var.freeVarSet]
exact Finset.sdiff_subset {free_ x} {free_ z} | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β (free_ x).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | simp only [c1] | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β t.freeVarSet | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ x} β t.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | conv =>
lhs
simp only [Var.freeVarSet] | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ x} β t.freeVarSet | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ {free_ x} \ {free_ x} β t.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | simp | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ {free_ x} \ {free_ x} β t.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | simp only [Var.freeVarSet] | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} β (free_ x).freeVarSet | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ {free_ x} \ {free_ z} β {free_ x} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | exact Finset.sdiff_subset {free_ x} {free_ z} | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ {free_ x} \ {free_ z} β {free_ x} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet' | [540, 1] | [562, 33] | conv =>
lhs
simp only [Var.freeVarSet] | z : String
t : Var
i : β
β’ (bound_ i).freeVarSet \ {free_ z} β ((free_ z).subst t (bound_ i)).freeVarSet | z : String
t : Var
i : β
β’ β
\ {free_ z} β ((free_ z).subst t (bound_ i)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | induction F | z : String
t : Var
F : Formula
β’ F.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t F).freeVarSet | case pred_
z : String
t : Var
aβΒΉ : String
aβ : List Var
β’ (pred_ aβΒΉ aβ).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (pred_ aβΒΉ aβ)).freeVarSet
case not_
z : String
t : Var
aβ : Formula
a_ihβ : aβ.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t aβ).freeVarSet
β’ aβ.not_.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t aβ.not_).freeVarSet
case imp_
z : String
t : Var
aβΒΉ aβ : Formula
a_ihβΒΉ : aβΒΉ.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t aβΒΉ).freeVarSet
a_ihβ : aβ.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t aβ).freeVarSet
β’ (aβΒΉ.imp_ aβ).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (aβΒΉ.imp_ aβ)).freeVarSet
case forall_
z : String
t : Var
aβΒΉ : String
aβ : Formula
a_ihβ : aβ.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t aβ).freeVarSet
β’ (forall_ aβΒΉ aβ).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (forall_ aβΒΉ aβ)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | case pred_ X vs =>
simp only [Formula.subst]
simp only [Formula.freeVarSet]
induction vs
case nil =>
simp
case cons hd tl ih =>
simp
have s1 : (Var.freeVarSet hd βͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z})
exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z}
simp only [s1]
exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X vs).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (pred_ X vs)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | case not_ phi phi_ih =>
simp only [Formula.subst]
simp only [Formula.freeVarSet]
exact phi_ih | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.not_.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi.not_).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | case forall_ x phi phi_ih =>
simp only [Formula.subst]
simp only [Formula.freeVarSet]
exact phi_ih | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ (forall_ x phi).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.subst] | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X vs).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (pred_ X vs)).freeVarSet | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X vs).freeVarSet \ {free_ z} β (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
X : String
vs : List Var
β’ (pred_ X vs).freeVarSet \ {free_ z} β (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet | z : String
t : Var
X : String
vs : List Var
β’ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | induction vs | z : String
t : Var
X : String
vs : List Var
β’ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet | case nil
z : String
t : Var
X : String
β’ [].toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet
case cons
z : String
t : Var
X : String
headβ : Var
tailβ : List Var
tail_ihβ :
tailβ.toFinset.biUnion Var.freeVarSet \ {free_ z} β
(List.map ((free_ z).subst t) tailβ).toFinset.biUnion Var.freeVarSet
β’ (headβ :: tailβ).toFinset.biUnion Var.freeVarSet \ {free_ z} β
(List.map ((free_ z).subst t) (headβ :: tailβ)).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | case nil =>
simp | z : String
t : Var
X : String
β’ [].toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | case cons hd tl ih =>
simp
have s1 : (Var.freeVarSet hd βͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z})
exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z}
simp only [s1]
exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd :: tl).toFinset.biUnion Var.freeVarSet \ {free_ z} β
(List.map ((free_ z).subst t) (hd :: tl)).toFinset.biUnion Var.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp | z : String
t : Var
X : String
β’ [].toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd :: tl).toFinset.biUnion Var.freeVarSet \ {free_ z} β
(List.map ((free_ z).subst t) (hd :: tl)).toFinset.biUnion Var.freeVarSet | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | have s1 : (Var.freeVarSet hd βͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z}) | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet | case s1
z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z} | case s1
z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [s1] | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ (hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih | z : String
t : Var
X : String
hd : Var
tl : List Var
ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
s1 :
(hd.freeVarSet βͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} =
hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z}
β’ hd.freeVarSet \ {free_ z} βͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} β
((free_ z).subst t hd).freeVarSet βͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.subst] | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.not_.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi.not_).freeVarSet | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.not_.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).not_.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.not_.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).not_.freeVarSet | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | exact phi_ih | z : String
t : Var
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.subst] | z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ (phi.imp_ psi).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (phi.imp_ psi)).freeVarSet | z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ (phi.imp_ psi).freeVarSet \ {free_ z} β
((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ (phi.imp_ psi).freeVarSet \ {free_ z} β
((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet | z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ (phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} β
(Formula.subst (free_ z) t phi).freeVarSet βͺ (Formula.subst (free_ z) t psi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | apply Finset.diff_union_subset | z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ (phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} β
(Formula.subst (free_ z) t phi).freeVarSet βͺ (Formula.subst (free_ z) t psi).freeVarSet | case h1
z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
case h2
z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | apply phi_ih | case h1
z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | apply psi_ih | case h2
z : String
t : Var
phi psi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
psi_ih : psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet
β’ psi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t psi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.subst] | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ (forall_ x phi).freeVarSet \ {free_ z} β (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ (forall_ x phi).freeVarSet \ {free_ z} β (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | simp only [Formula.freeVarSet] | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ (forall_ x phi).freeVarSet \ {free_ z} β (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaSubstFreeVarSet' | [565, 1] | [600, 17] | exact phi_ih | z : String
t : Var
x : String
phi : Formula
phi_ih : phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet
β’ phi.freeVarSet \ {free_ z} β (Formula.subst (free_ z) t phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | cases v | v : Var
Ο : String β String
j : β
z : String
h1 : Ο z = z
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) v) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) v) | case free_
Ο : String β String
j : β
z : String
h1 : Ο z = z
aβ : String
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (free_ aβ)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (free_ aβ))
case bound_
Ο : String β String
j : β
z : String
h1 : Ο z = z
aβ : β
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (bound_ aβ)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ aβ)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | case free_ x =>
conv =>
lhs
simp only [Var.open]
simp only [Var.substFun]
simp only [str_fun_to_var_fun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
x : String
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (free_ x)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (free_ x)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
x : String
β’ free_ (Ο x) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (free_ x)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | case bound_ i =>
conv =>
lhs
simp only [Var.open]
split_ifs
case pos c1 =>
simp only [Var.substFun]
simp only [Var.open]
simp only [if_pos c1]
case pos c1 c2 =>
simp only [Var.substFun]
simp only [str_fun_to_var_fun]
simp only [Var.open]
simp only [if_neg c1]
simp only [if_pos c2]
simp only [h1]
case neg c1 c2 =>
simp only [Var.substFun]
simp only [Var.open]
simp only [if_neg c1]
simp only [if_neg c2] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (bound_ i)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | conv =>
lhs
simp only [Var.open]
simp only [Var.substFun]
simp only [str_fun_to_var_fun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
x : String
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (free_ x)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (free_ x)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
x : String
β’ free_ (Ο x) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (free_ x)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | conv =>
lhs
simp only [Var.open] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
β’ Var.substFun (str_fun_to_var_fun Ο) (Var.open j (free_ z) (bound_ i)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
β’ Var.substFun (str_fun_to_var_fun Ο) (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | split_ifs | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
β’ Var.substFun (str_fun_to_var_fun Ο) (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | case pos
Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
hβ : i < j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i))
case pos
Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
hβΒΉ : Β¬i < j
hβ : i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i))
case neg
Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
hβΒΉ : Β¬i < j
hβ : Β¬i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ (i - 1)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | case pos c1 =>
simp only [Var.substFun]
simp only [Var.open]
simp only [if_pos c1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | case pos c1 c2 =>
simp only [Var.substFun]
simp only [str_fun_to_var_fun]
simp only [Var.open]
simp only [if_neg c1]
simp only [if_pos c2]
simp only [h1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | case neg c1 c2 =>
simp only [Var.substFun]
simp only [Var.open]
simp only [if_neg c1]
simp only [if_neg c2] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ (i - 1)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.substFun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ bound_ i = Var.open j (free_ z) (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.open] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ bound_ i = Var.open j (free_ z) (bound_ i) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ bound_ i = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [if_pos c1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : i < j
β’ bound_ i = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.substFun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ str_fun_to_var_fun Ο (free_ z) = Var.open j (free_ z) (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [str_fun_to_var_fun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ str_fun_to_var_fun Ο (free_ z) = Var.open j (free_ z) (bound_ i) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = Var.open j (free_ z) (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.open] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = Var.open j (free_ z) (bound_ i) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [if_neg c1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = if i = j then free_ z else bound_ (i - 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [if_pos c2] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = if i = j then free_ z else bound_ (i - 1) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = free_ z |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [h1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : i = j
β’ free_ (Ο z) = free_ z | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.substFun] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ Var.substFun (str_fun_to_var_fun Ο) (bound_ (i - 1)) =
Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Ο) (bound_ i)) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = Var.open j (free_ z) (bound_ i) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [Var.open] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = Var.open j (free_ z) (bound_ i) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [if_neg c1] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1) | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = if i = j then free_ z else bound_ (i - 1) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.SubOpenVar | [611, 1] | [647, 28] | simp only [if_neg c2] | Ο : String β String
j : β
z : String
h1 : Ο z = z
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ bound_ (i - 1) = if i = j then free_ z else bound_ (i - 1) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | funext v | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
β’ shift D (V β Var.openList j (List.map free_ zs)) d = shift D V d β Var.openList (j + 1) (List.map free_ zs) | case h
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
v : Var
β’ shift D (V β Var.openList j (List.map free_ zs)) d v = (shift D V d β Var.openList (j + 1) (List.map free_ zs)) v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | simp | case h
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
v : Var
β’ shift D (V β Var.openList j (List.map free_ zs)) d v = (shift D V d β Var.openList (j + 1) (List.map free_ zs)) v | case h
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
v : Var
β’ shift D (V β Var.openList j (List.map free_ zs)) d v = shift D V d (Var.openList (j + 1) (List.map free_ zs) v) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | cases v | case h
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
v : Var
β’ shift D (V β Var.openList j (List.map free_ zs)) d v = shift D V d (Var.openList (j + 1) (List.map free_ zs) v) | case h.free_
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
aβ : String
β’ shift D (V β Var.openList j (List.map free_ zs)) d (free_ aβ) =
shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ aβ))
case h.bound_
D : Type
V : VarAssignment D
j : β
zs : List String
d : D
aβ : β
β’ shift D (V β Var.openList j (List.map free_ zs)) d (bound_ aβ) =
shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ aβ)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | case _ x =>
simp only [Var.openList]
simp only [shift]
simp | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ shift D (V β Var.openList j (List.map free_ zs)) d (free_ x) =
shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ x)) | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ V (Var.openList j (List.map free_ zs) (free_ x)) = V (free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | 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
split
case _ c1 =>
have s1 : i + 1 < j + 1
linarith
simp only [if_pos s1]
case _ c1 =>
have s1 : Β¬ i + 1 < j + 1
linarith
simp only [if_neg s1]
split
case _ c2 =>
simp
case _ c2 =>
simp | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
i : β
β’ shift D (V β Var.openList j (List.map free_ zs)) d (bound_ i) =
shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ i)) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | simp only [Var.openList] | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ shift D (V β Var.openList j (List.map free_ zs)) d (free_ x) =
shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ x)) | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ shift D (V β Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | simp only [shift] | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ shift D (V β Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (free_ x) | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ (V β Var.openList j (List.map free_ zs)) (free_ x) = V (free_ x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.ShiftVarOpenList | [815, 1] | [854, 17] | simp | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ (V β Var.openList j (List.map free_ zs)) (free_ x) = V (free_ x) | D : Type
V : VarAssignment D
j : β
zs : List String
d : D
x : String
β’ V (Var.openList j (List.map free_ zs) (free_ x)) = V (free_ x) |
Subsets and Splits