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.FormulaOpenListFreeVarSet | [306, 1] | [338, 17] | simp only [Formula.freeVarSet] | zs : List String
x : String
phi : Formula
phi_ih :
β (j : β), (Formula.openList j (List.map free_ zs) phi).freeVarSet β phi.freeVarSet βͺ (List.map free_ zs).toFinset
j : β
β’ (forall_ x (Formula.openList (j + 1) (List.map free_ zs) phi)).freeVarSet β
(forall_ x phi).freeVarSet βͺ (List.map free_ zs).toFinset | zs : List String
x : String
phi : Formula
phi_ih :
β (j : β), (Formula.openList j (List.map free_ zs) phi).freeVarSet β phi.freeVarSet βͺ (List.map free_ zs).toFinset
j : β
β’ (Formula.openList (j + 1) (List.map free_ zs) phi).freeVarSet β phi.freeVarSet βͺ (List.map free_ zs).toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenListFreeVarSet | [306, 1] | [338, 17] | apply phi_ih | zs : List String
x : String
phi : Formula
phi_ih :
β (j : β), (Formula.openList j (List.map free_ zs) phi).freeVarSet β phi.freeVarSet βͺ (List.map free_ zs).toFinset
j : β
β’ (Formula.openList (j + 1) (List.map free_ zs) phi).freeVarSet β phi.freeVarSet βͺ (List.map free_ zs).toFinset | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | cases v | j : β
z : String
v : Var
β’ v.freeVarSet β (Var.open j (free_ z) v).freeVarSet | case free_
j : β
z aβ : String
β’ (free_ aβ).freeVarSet β (Var.open j (free_ z) (free_ aβ)).freeVarSet
case bound_
j : β
z : String
aβ : β
β’ (bound_ aβ).freeVarSet β (Var.open j (free_ z) (bound_ aβ)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | case free_ x =>
simp only [Var.open]
simp only [Var.freeVarSet]
simp | j : β
z x : String
β’ (free_ x).freeVarSet β (Var.open j (free_ z) (free_ x)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | case bound_ i =>
simp only [Var.open]
split_ifs
case _ c1 =>
simp only [Var.freeVarSet]
simp
case _ c1 c2 =>
simp only [Var.freeVarSet]
simp
case _ c1 c2 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
β’ (bound_ i).freeVarSet β (Var.open j (free_ z) (bound_ i)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.open] | j : β
z x : String
β’ (free_ x).freeVarSet β (Var.open j (free_ z) (free_ x)).freeVarSet | j : β
z x : String
β’ (free_ x).freeVarSet β (free_ x).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.freeVarSet] | j : β
z x : String
β’ (free_ x).freeVarSet β (free_ x).freeVarSet | j : β
z x : String
β’ {free_ x} β {free_ x} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp | j : β
z x : String
β’ {free_ x} β {free_ x} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.open] | j : β
z : String
i : β
β’ (bound_ i).freeVarSet β (Var.open j (free_ z) (bound_ i)).freeVarSet | j : β
z : String
i : β
β’ (bound_ i).freeVarSet β (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | split_ifs | j : β
z : String
i : β
β’ (bound_ i).freeVarSet β (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)).freeVarSet | case pos
j : β
z : String
i : β
hβ : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet
case pos
j : β
z : String
i : β
hβΒΉ : Β¬i < j
hβ : i = j
β’ (bound_ i).freeVarSet β (free_ z).freeVarSet
case neg
j : β
z : String
i : β
hβΒΉ : Β¬i < j
hβ : Β¬i = j
β’ (bound_ i).freeVarSet β (bound_ (i - 1)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | case _ c1 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
c1 : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | case _ c1 c2 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
c1 : Β¬i < j
c2 : i = j
β’ (bound_ i).freeVarSet β (free_ z).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | case _ c1 c2 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ (bound_ i).freeVarSet β (bound_ (i - 1)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.freeVarSet] | j : β
z : String
i : β
c1 : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet | j : β
z : String
i : β
c1 : i < j
β’ β
β β
|
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp | j : β
z : String
i : β
c1 : i < j
β’ β
β β
| no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.freeVarSet] | j : β
z : String
i : β
c1 : Β¬i < j
c2 : i = j
β’ (bound_ i).freeVarSet β (free_ z).freeVarSet | j : β
z : String
i : β
c1 : Β¬i < j
c2 : i = j
β’ β
β {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp | j : β
z : String
i : β
c1 : Β¬i < j
c2 : i = j
β’ β
β {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp only [Var.freeVarSet] | j : β
z : String
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ (bound_ i).freeVarSet β (bound_ (i - 1)).freeVarSet | j : β
z : String
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ β
β β
|
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarOpenFreeVarSet' | [344, 1] | [366, 11] | simp | j : β
z : String
i : β
c1 : Β¬i < j
c2 : Β¬i = j
β’ β
β β
| no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | induction F generalizing j | j : β
z : String
F : Formula
β’ F.freeVarSet β (Formula.open j (free_ z) F).freeVarSet | case pred_
z aβΒΉ : String
aβ : List Var
j : β
β’ (pred_ aβΒΉ aβ).freeVarSet β (Formula.open j (free_ z) (pred_ aβΒΉ aβ)).freeVarSet
case not_
z : String
aβ : Formula
a_ihβ : β (j : β), aβ.freeVarSet β (Formula.open j (free_ z) aβ).freeVarSet
j : β
β’ aβ.not_.freeVarSet β (Formula.open j (free_ z) aβ.not_).freeVarSet
case imp_
z : String
aβΒΉ aβ : Formula
a_ihβΒΉ : β (j : β), aβΒΉ.freeVarSet β (Formula.open j (free_ z) aβΒΉ).freeVarSet
a_ihβ : β (j : β), aβ.freeVarSet β (Formula.open j (free_ z) aβ).freeVarSet
j : β
β’ (aβΒΉ.imp_ aβ).freeVarSet β (Formula.open j (free_ z) (aβΒΉ.imp_ aβ)).freeVarSet
case forall_
z aβΒΉ : String
aβ : Formula
a_ihβ : β (j : β), aβ.freeVarSet β (Formula.open j (free_ z) aβ).freeVarSet
j : β
β’ (forall_ aβΒΉ aβ).freeVarSet β (Formula.open j (free_ z) (forall_ aβΒΉ aβ)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | case not_ phi phi_ih =>
simp only [Formula.open]
simp only [Formula.freeVarSet]
apply phi_ih | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.not_.freeVarSet β (Formula.open j (free_ z) phi.not_).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | case forall_ x phi phi_ih =>
simp only [Formula.open]
simp only [Formula.freeVarSet]
apply phi_ih | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ (forall_ x phi).freeVarSet β (Formula.open j (free_ z) (forall_ x phi)).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.open] | z X : String
vs : List Var
j : β
β’ (pred_ X vs).freeVarSet β (Formula.open j (free_ z) (pred_ X vs)).freeVarSet | z X : String
vs : List Var
j : β
β’ (pred_ X vs).freeVarSet β (pred_ X (List.map (Var.open j (free_ z)) vs)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.freeVarSet] | z X : String
vs : List Var
j : β
β’ (pred_ X vs).freeVarSet β (pred_ X (List.map (Var.open j (free_ z)) vs)).freeVarSet | z X : String
vs : List Var
j : β
β’ vs.toFinset.biUnion Var.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp | z X : String
vs : List Var
j : β
β’ vs.toFinset.biUnion Var.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet | z X : String
vs : List Var
j : β
β’ β x β vs, x.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | intro v a1 | z X : String
vs : List Var
j : β
β’ β x β vs, x.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | trans Var.freeVarSet (Var.open j (free_ z) v) | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β (Var.open j (free_ z) v).freeVarSet
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.open j (free_ z) v).freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply VarOpenFreeVarSet' | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β (Var.open j (free_ z) v).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply Finset.subset_biUnion_of_mem Var.freeVarSet | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.open j (free_ z) v).freeVarSet β (List.map (Var.open j (free_ z)) vs).toFinset.biUnion Var.freeVarSet | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ Var.open j (free_ z) v β (List.map (Var.open j (free_ z)) vs).toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply List.mem_toFinset.mpr | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ Var.open j (free_ z) v β (List.map (Var.open j (free_ z)) vs).toFinset | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ Var.open j (free_ z) v β List.map (Var.open j (free_ z)) vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | exact List.mem_map_of_mem (Var.open j (free_ z)) a1 | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ Var.open j (free_ z) v β List.map (Var.open j (free_ z)) vs | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.open] | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.not_.freeVarSet β (Formula.open j (free_ z) phi.not_).freeVarSet | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.not_.freeVarSet β (Formula.open j (free_ z) phi).not_.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.freeVarSet] | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.not_.freeVarSet β (Formula.open j (free_ z) phi).not_.freeVarSet | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply phi_ih | z : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.open] | z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ (phi.imp_ psi).freeVarSet β (Formula.open j (free_ z) (phi.imp_ psi)).freeVarSet | z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ (phi.imp_ psi).freeVarSet β ((Formula.open j (free_ z) phi).imp_ (Formula.open j (free_ z) psi)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.freeVarSet] | z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ (phi.imp_ psi).freeVarSet β ((Formula.open j (free_ z) phi).imp_ (Formula.open j (free_ z) psi)).freeVarSet | z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ phi.freeVarSet βͺ psi.freeVarSet β
(Formula.open j (free_ z) phi).freeVarSet βͺ (Formula.open j (free_ z) psi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply Finset.union_subset_left_right | z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ phi.freeVarSet βͺ psi.freeVarSet β
(Formula.open j (free_ z) phi).freeVarSet βͺ (Formula.open j (free_ z) psi).freeVarSet | case h1
z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
case h2
z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | exact phi_ih j | case h1
z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | exact psi_ih j | case h2
z : String
phi psi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
psi_ih : β (j : β), psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet
j : β
β’ psi.freeVarSet β (Formula.open j (free_ z) psi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.open] | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ (forall_ x phi).freeVarSet β (Formula.open j (free_ z) (forall_ x phi)).freeVarSet | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ (forall_ x phi).freeVarSet β (forall_ x (Formula.open (j + 1) (free_ z) phi)).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | simp only [Formula.freeVarSet] | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ (forall_ x phi).freeVarSet β (forall_ x (Formula.open (j + 1) (free_ z) phi)).freeVarSet | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open (j + 1) (free_ z) phi).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaOpenFreeVarSet' | [369, 1] | [400, 17] | apply phi_ih | z x : String
phi : Formula
phi_ih : β (j : β), phi.freeVarSet β (Formula.open j (free_ z) phi).freeVarSet
j : β
β’ phi.freeVarSet β (Formula.open (j + 1) (free_ z) phi).freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | cases v | j : β
z : String
v : Var
β’ (Var.close j (free_ z) v).freeVarSet β v.freeVarSet \ {free_ z} | case free_
j : β
z aβ : String
β’ (Var.close j (free_ z) (free_ aβ)).freeVarSet β (free_ aβ).freeVarSet \ {free_ z}
case bound_
j : β
z : String
aβ : β
β’ (Var.close j (free_ z) (bound_ aβ)).freeVarSet β (bound_ aβ).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case free_ x =>
simp only [Var.close]
split_ifs
case _ c1 =>
simp only [Var.freeVarSet]
simp
case _ c1 =>
simp only [Var.freeVarSet]
simp
simp at c1
exact c1 | j : β
z x : String
β’ (Var.close j (free_ z) (free_ x)).freeVarSet β (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case bound_ i =>
simp only [Var.close]
split_ifs
case _ c1 =>
simp only [Var.freeVarSet]
simp
case _ c1 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
β’ (Var.close j (free_ z) (bound_ i)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.close] | j : β
z x : String
β’ (Var.close j (free_ z) (free_ x)).freeVarSet β (free_ x).freeVarSet \ {free_ z} | j : β
z x : String
β’ (if free_ x = free_ z then bound_ j else free_ x).freeVarSet β (free_ x).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | split_ifs | j : β
z x : String
β’ (if free_ x = free_ z then bound_ j else free_ x).freeVarSet β (free_ x).freeVarSet \ {free_ z} | case pos
j : β
z x : String
hβ : free_ x = free_ z
β’ (bound_ j).freeVarSet β (free_ x).freeVarSet \ {free_ z}
case neg
j : β
z x : String
hβ : Β¬free_ x = free_ z
β’ (free_ x).freeVarSet β (free_ x).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case _ c1 =>
simp only [Var.freeVarSet]
simp | j : β
z x : String
c1 : free_ x = free_ z
β’ (bound_ j).freeVarSet β (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case _ c1 =>
simp only [Var.freeVarSet]
simp
simp at c1
exact c1 | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ (free_ x).freeVarSet β (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.freeVarSet] | j : β
z x : String
c1 : free_ x = free_ z
β’ (bound_ j).freeVarSet β (free_ x).freeVarSet \ {free_ z} | j : β
z x : String
c1 : free_ x = free_ z
β’ β
β {free_ x} \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp | j : β
z x : String
c1 : free_ x = free_ z
β’ β
β {free_ x} \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.freeVarSet] | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ (free_ x).freeVarSet β (free_ x).freeVarSet \ {free_ z} | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ {free_ x} β {free_ x} \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ {free_ x} β {free_ x} \ {free_ z} | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ Β¬x = z |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp at c1 | j : β
z x : String
c1 : Β¬free_ x = free_ z
β’ Β¬x = z | j : β
z x : String
c1 : Β¬x = z
β’ Β¬x = z |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | exact c1 | j : β
z x : String
c1 : Β¬x = z
β’ Β¬x = z | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.close] | j : β
z : String
i : β
β’ (Var.close j (free_ z) (bound_ i)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | j : β
z : String
i : β
β’ (if i < j then bound_ i else bound_ (i + 1)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | split_ifs | j : β
z : String
i : β
β’ (if i < j then bound_ i else bound_ (i + 1)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | case pos
j : β
z : String
i : β
hβ : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet \ {free_ z}
case neg
j : β
z : String
i : β
hβ : Β¬i < j
β’ (bound_ (i + 1)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case _ c1 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
c1 : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | case _ c1 =>
simp only [Var.freeVarSet]
simp | j : β
z : String
i : β
c1 : Β¬i < j
β’ (bound_ (i + 1)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.freeVarSet] | j : β
z : String
i : β
c1 : i < j
β’ (bound_ i).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | j : β
z : String
i : β
c1 : i < j
β’ β
β β
\ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp | j : β
z : String
i : β
c1 : i < j
β’ β
β β
\ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp only [Var.freeVarSet] | j : β
z : String
i : β
c1 : Β¬i < j
β’ (bound_ (i + 1)).freeVarSet β (bound_ i).freeVarSet \ {free_ z} | j : β
z : String
i : β
c1 : Β¬i < j
β’ β
β β
\ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarCloseFreeVarSet | [406, 1] | [432, 11] | simp | j : β
z : String
i : β
c1 : Β¬i < j
β’ β
β β
\ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | induction F generalizing j | j : β
z : String
F : Formula
β’ (Formula.close j (free_ z) F).freeVarSet β F.freeVarSet \ {free_ z} | case pred_
z aβΒΉ : String
aβ : List Var
j : β
β’ (Formula.close j (free_ z) (pred_ aβΒΉ aβ)).freeVarSet β (pred_ aβΒΉ aβ).freeVarSet \ {free_ z}
case not_
z : String
aβ : Formula
a_ihβ : β (j : β), (Formula.close j (free_ z) aβ).freeVarSet β aβ.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) aβ.not_).freeVarSet β aβ.not_.freeVarSet \ {free_ z}
case imp_
z : String
aβΒΉ aβ : Formula
a_ihβΒΉ : β (j : β), (Formula.close j (free_ z) aβΒΉ).freeVarSet β aβΒΉ.freeVarSet \ {free_ z}
a_ihβ : β (j : β), (Formula.close j (free_ z) aβ).freeVarSet β aβ.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) (aβΒΉ.imp_ aβ)).freeVarSet β (aβΒΉ.imp_ aβ).freeVarSet \ {free_ z}
case forall_
z aβΒΉ : String
aβ : Formula
a_ihβ : β (j : β), (Formula.close j (free_ z) aβ).freeVarSet β aβ.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) (forall_ aβΒΉ aβ)).freeVarSet β (forall_ aβΒΉ aβ).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | case not_ phi phi_ih =>
simp only [Formula.close]
simp only [Formula.freeVarSet]
apply phi_ih | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi.not_).freeVarSet β phi.not_.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | case forall_ x phi phi_ih =>
simp only [Formula.close]
simp only [Formula.freeVarSet]
apply phi_ih | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) (forall_ x phi)).freeVarSet β (forall_ x phi).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.close] | z X : String
vs : List Var
j : β
β’ (Formula.close j (free_ z) (pred_ X vs)).freeVarSet β (pred_ X vs).freeVarSet \ {free_ z} | z X : String
vs : List Var
j : β
β’ (pred_ X (List.map (Var.close j (free_ z)) vs)).freeVarSet β (pred_ X vs).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.freeVarSet] | z X : String
vs : List Var
j : β
β’ (pred_ X (List.map (Var.close j (free_ z)) vs)).freeVarSet β (pred_ X vs).freeVarSet \ {free_ z} | z X : String
vs : List Var
j : β
β’ (List.map (Var.close j (free_ z)) vs).toFinset.biUnion Var.freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp | z X : String
vs : List Var
j : β
β’ (List.map (Var.close j (free_ z)) vs).toFinset.biUnion Var.freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z X : String
vs : List Var
j : β
β’ β a β vs, (Var.close j (free_ z) a).freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | intro v a1 | z X : String
vs : List Var
j : β
β’ β a β vs, (Var.close j (free_ z) a).freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.close j (free_ z) v).freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | trans Var.freeVarSet v \ {free_ z} | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.close j (free_ z) v).freeVarSet β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.close j (free_ z) v).freeVarSet β v.freeVarSet \ {free_ z}
z X : String
vs : List Var
j : β
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.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | exact VarCloseFreeVarSet j z v | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ (Var.close j (free_ z) v).freeVarSet β v.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | apply Finset.sdiff_subset_sdiff | z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet \ {free_ z} β vs.toFinset.biUnion Var.freeVarSet \ {free_ z} | case hst
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β vs.toFinset.biUnion Var.freeVarSet
case hvu
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ {free_ z} β {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | apply Finset.subset_biUnion_of_mem | case hst
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v.freeVarSet β vs.toFinset.biUnion Var.freeVarSet | case hst.xs
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v β vs.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp | case hst.xs
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v β vs.toFinset | case hst.xs
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v β vs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | exact a1 | case hst.xs
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ v β vs | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp | case hvu
z X : String
vs : List Var
j : β
v : Var
a1 : v β vs
β’ {free_ z} β {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.close] | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi.not_).freeVarSet β phi.not_.freeVarSet \ {free_ z} | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).not_.freeVarSet β phi.not_.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.freeVarSet] | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).not_.freeVarSet β phi.not_.freeVarSet \ {free_ z} | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | apply phi_ih | z : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.close] | z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) (phi.imp_ psi)).freeVarSet β (phi.imp_ psi).freeVarSet \ {free_ z} | z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ ((Formula.close j (free_ z) phi).imp_ (Formula.close j (free_ z) psi)).freeVarSet β
(phi.imp_ psi).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.freeVarSet] | z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ ((Formula.close j (free_ z) phi).imp_ (Formula.close j (free_ z) psi)).freeVarSet β
(phi.imp_ psi).freeVarSet \ {free_ z} | z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet βͺ (Formula.close j (free_ z) psi).freeVarSet β
(phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | apply Finset.union_subset_diff | z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet βͺ (Formula.close j (free_ z) psi).freeVarSet β
(phi.freeVarSet βͺ psi.freeVarSet) \ {free_ z} | case h1
z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
case h2
z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | exact phi_ih j | case h1
z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | exact psi_ih j | case h2
z : String
phi psi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
psi_ih : β (j : β), (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) psi).freeVarSet β psi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.close] | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close j (free_ z) (forall_ x phi)).freeVarSet β (forall_ x phi).freeVarSet \ {free_ z} | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (forall_ x (Formula.close (1 + j) (free_ z) phi)).freeVarSet β (forall_ x phi).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | simp only [Formula.freeVarSet] | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (forall_ x (Formula.close (1 + j) (free_ z) phi)).freeVarSet β (forall_ x phi).freeVarSet \ {free_ z} | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close (1 + j) (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.FormulaCloseFreeVarSet | [435, 1] | [468, 17] | apply phi_ih | z x : String
phi : Formula
phi_ih : β (j : β), (Formula.close j (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z}
j : β
β’ (Formula.close (1 + j) (free_ z) phi).freeVarSet β phi.freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | cases v | z : String
t v : Var
β’ ((free_ z).subst t v).freeVarSet β t.freeVarSet βͺ v.freeVarSet \ {free_ z} | case free_
z : String
t : Var
aβ : String
β’ ((free_ z).subst t (free_ aβ)).freeVarSet β t.freeVarSet βͺ (free_ aβ).freeVarSet \ {free_ z}
case bound_
z : String
t : Var
aβ : β
β’ ((free_ z).subst t (bound_ aβ)).freeVarSet β t.freeVarSet βͺ (bound_ aβ).freeVarSet \ {free_ z} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | case free_ x =>
simp only [Var.subst]
split_ifs
case pos c1 =>
apply Finset.subset_union_left
case neg c1 =>
have s1 : Var.freeVarSet (free_ x) \ {free_ z} = {free_ x}
simp only [Var.freeVarSet]
simp
simp at c1
exact c1
simp only [s1]
apply Finset.subset_union_right | z : String
t : Var
x : String
β’ ((free_ z).subst t (free_ x)).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | case bound_ i =>
simp only [Var.subst]
conv =>
lhs
simp only [Var.freeVarSet]
simp | z : String
t : Var
i : β
β’ ((free_ z).subst t (bound_ i)).freeVarSet β t.freeVarSet βͺ (bound_ i).freeVarSet \ {free_ z} | 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
x : String
β’ ((free_ z).subst t (free_ x)).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | z : String
t : Var
x : String
β’ (if free_ z = free_ x then t else 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] | split_ifs | z : String
t : Var
x : String
β’ (if free_ z = free_ x then t else free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | case pos
z : String
t : Var
x : String
hβ : free_ z = free_ x
β’ t.freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z}
case neg
z : String
t : Var
x : String
hβ : Β¬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] | case pos c1 =>
apply Finset.subset_union_left | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ t.freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | case neg c1 =>
have s1 : Var.freeVarSet (free_ x) \ {free_ z} = {free_ x}
simp only [Var.freeVarSet]
simp
simp at c1
exact c1
simp only [s1]
apply Finset.subset_union_right | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | apply Finset.subset_union_left | z : String
t : Var
x : String
c1 : free_ z = free_ x
β’ t.freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | have s1 : Var.freeVarSet (free_ x) \ {free_ z} = {free_ x} | z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet β t.freeVarSet βͺ (free_ x).freeVarSet \ {free_ z} | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} = {free_ 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} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp only [Var.freeVarSet] | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ (free_ x).freeVarSet \ {free_ z} = {free_ 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} | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ {free_ x} \ {free_ z} = {free_ 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} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ x
β’ {free_ x} \ {free_ z} = {free_ 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} | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ 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} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/LN/Paper.lean | LN.VarSubstFreeVarSet | [474, 1] | [500, 9] | simp at c1 | case s1
z : String
t : Var
x : String
c1 : Β¬free_ z = free_ 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} | 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} |