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.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} |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.