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}