url
stringclasses
147 values
commit
stringclasses
147 values
file_path
stringlengths
7
101
full_name
stringlengths
1
94
start
stringlengths
6
10
end
stringlengths
6
11
tactic
stringlengths
1
11.2k
state_before
stringlengths
3
2.09M
state_after
stringlengths
6
2.09M
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
simp only [Var.subst]
z : String t : Var x : String ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† ((free_ z).subst t (free_ x)).freeVarSet
z : String t : Var x : String ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† (if free_ z = free_ x then t else free_ x).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
split_ifs
z : String t : Var x : String ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† (if free_ z = free_ x then t else free_ x).freeVarSet
case pos z : String t : Var x : String h✝ : free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† t.freeVarSet case neg z : String t : Var x : String h✝ : Β¬free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† (free_ x).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
case pos c1 => simp only [c1] conv => lhs simp only [Var.freeVarSet] simp
z : String t : Var x : String c1 : free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† t.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
case neg c1 => simp only [Var.freeVarSet] exact Finset.sdiff_subset {free_ x} {free_ z}
z : String t : Var x : String c1 : Β¬free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† (free_ x).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
simp only [c1]
z : String t : Var x : String c1 : free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† t.freeVarSet
z : String t : Var x : String c1 : free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ x} βŠ† t.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
conv => lhs simp only [Var.freeVarSet]
z : String t : Var x : String c1 : free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ x} βŠ† t.freeVarSet
z : String t : Var x : String c1 : free_ z = free_ x ⊒ {free_ x} \ {free_ x} βŠ† t.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
simp
z : String t : Var x : String c1 : free_ z = free_ x ⊒ {free_ x} \ {free_ x} βŠ† t.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
simp only [Var.freeVarSet]
z : String t : Var x : String c1 : Β¬free_ z = free_ x ⊒ (free_ x).freeVarSet \ {free_ z} βŠ† (free_ x).freeVarSet
z : String t : Var x : String c1 : Β¬free_ z = free_ x ⊒ {free_ x} \ {free_ z} βŠ† {free_ x}
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
exact Finset.sdiff_subset {free_ x} {free_ z}
z : String t : Var x : String c1 : Β¬free_ z = free_ x ⊒ {free_ x} \ {free_ z} βŠ† {free_ x}
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.VarSubstFreeVarSet'
[540, 1]
[562, 33]
conv => lhs simp only [Var.freeVarSet]
z : String t : Var i : β„• ⊒ (bound_ i).freeVarSet \ {free_ z} βŠ† ((free_ z).subst t (bound_ i)).freeVarSet
z : String t : Var i : β„• ⊒ βˆ… \ {free_ z} βŠ† ((free_ z).subst t (bound_ i)).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
induction F
z : String t : Var F : Formula ⊒ F.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t F).freeVarSet
case pred_ z : String t : Var a✝¹ : String a✝ : List Var ⊒ (pred_ a✝¹ a✝).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (pred_ a✝¹ a✝)).freeVarSet case not_ z : String t : Var a✝ : Formula a_ih✝ : a✝.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t a✝).freeVarSet ⊒ a✝.not_.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t a✝.not_).freeVarSet case imp_ z : String t : Var a✝¹ a✝ : Formula a_ih✝¹ : a✝¹.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t a✝¹).freeVarSet a_ih✝ : a✝.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t a✝).freeVarSet ⊒ (a✝¹.imp_ a✝).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (a✝¹.imp_ a✝)).freeVarSet case forall_ z : String t : Var a✝¹ : String a✝ : Formula a_ih✝ : a✝.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t a✝).freeVarSet ⊒ (forall_ a✝¹ a✝).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (forall_ a✝¹ a✝)).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
case pred_ X vs => simp only [Formula.subst] simp only [Formula.freeVarSet] induction vs case nil => simp case cons hd tl ih => simp have s1 : (Var.freeVarSet hd βˆͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βˆͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z}) exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z} simp only [s1] exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih
z : String t : Var X : String vs : List Var ⊒ (pred_ X vs).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (pred_ X vs)).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
case not_ phi phi_ih => simp only [Formula.subst] simp only [Formula.freeVarSet] exact phi_ih
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.not_.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi.not_).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
case forall_ x phi phi_ih => simp only [Formula.subst] simp only [Formula.freeVarSet] exact phi_ih
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ (forall_ x phi).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.subst]
z : String t : Var X : String vs : List Var ⊒ (pred_ X vs).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (pred_ X vs)).freeVarSet
z : String t : Var X : String vs : List Var ⊒ (pred_ X vs).freeVarSet \ {free_ z} βŠ† (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.freeVarSet]
z : String t : Var X : String vs : List Var ⊒ (pred_ X vs).freeVarSet \ {free_ z} βŠ† (pred_ X (List.map ((free_ z).subst t) vs)).freeVarSet
z : String t : Var X : String vs : List Var ⊒ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
induction vs
z : String t : Var X : String vs : List Var ⊒ vs.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) vs).toFinset.biUnion Var.freeVarSet
case nil z : String t : Var X : String ⊒ [].toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet case cons z : String t : Var X : String head✝ : Var tail✝ : List Var tail_ih✝ : tail✝.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tail✝).toFinset.biUnion Var.freeVarSet ⊒ (head✝ :: tail✝).toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) (head✝ :: tail✝)).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
case nil => simp
z : String t : Var X : String ⊒ [].toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
case cons hd tl ih => simp have s1 : (Var.freeVarSet hd βˆͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βˆͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z}) exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z} simp only [s1] exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd :: tl).toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) (hd :: tl)).toFinset.biUnion Var.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp
z : String t : Var X : String ⊒ [].toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) []).toFinset.biUnion Var.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd :: tl).toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) (hd :: tl)).toFinset.biUnion Var.freeVarSet
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
have s1 : (Var.freeVarSet hd βˆͺ Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z} = (Var.freeVarSet hd \ {free_ z}) βˆͺ ((Finset.biUnion (List.toFinset tl) Var.freeVarSet) \ {free_ z})
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
case s1 z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
exact Finset.union_sdiff_distrib (Var.freeVarSet hd) (Finset.biUnion (List.toFinset tl) Var.freeVarSet) {free_ z}
case s1 z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [s1]
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
exact Finset.union_subset_union (VarSubstFreeVarSet' z t hd) ih
z : String t : Var X : String hd : Var tl : List Var ih : tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet s1 : (hd.freeVarSet βˆͺ tl.toFinset.biUnion Var.freeVarSet) \ {free_ z} = hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} ⊒ hd.freeVarSet \ {free_ z} βˆͺ tl.toFinset.biUnion Var.freeVarSet \ {free_ z} βŠ† ((free_ z).subst t hd).freeVarSet βˆͺ (List.map ((free_ z).subst t) tl).toFinset.biUnion Var.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.subst]
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.not_.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi.not_).freeVarSet
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.not_.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).not_.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.freeVarSet]
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.not_.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).not_.freeVarSet
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
exact phi_ih
z : String t : Var phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.subst]
z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ (phi.imp_ psi).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (phi.imp_ psi)).freeVarSet
z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ (phi.imp_ psi).freeVarSet \ {free_ z} βŠ† ((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.freeVarSet]
z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ (phi.imp_ psi).freeVarSet \ {free_ z} βŠ† ((Formula.subst (free_ z) t phi).imp_ (Formula.subst (free_ z) t psi)).freeVarSet
z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ (phi.freeVarSet βˆͺ psi.freeVarSet) \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet βˆͺ (Formula.subst (free_ z) t psi).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
apply Finset.diff_union_subset
z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ (phi.freeVarSet βˆͺ psi.freeVarSet) \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet βˆͺ (Formula.subst (free_ z) t psi).freeVarSet
case h1 z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet case h2 z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
apply phi_ih
case h1 z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
apply psi_ih
case h2 z : String t : Var phi psi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet psi_ih : psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet ⊒ psi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t psi).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.subst]
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ (forall_ x phi).freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t (forall_ x phi)).freeVarSet
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ (forall_ x phi).freeVarSet \ {free_ z} βŠ† (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
simp only [Formula.freeVarSet]
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ (forall_ x phi).freeVarSet \ {free_ z} βŠ† (forall_ x (Formula.subst (free_ z) t phi)).freeVarSet
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.FormulaSubstFreeVarSet'
[565, 1]
[600, 17]
exact phi_ih
z : String t : Var x : String phi : Formula phi_ih : phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet ⊒ phi.freeVarSet \ {free_ z} βŠ† (Formula.subst (free_ z) t phi).freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
cases v
v : Var Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) v) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) v)
case free_ Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z a✝ : String ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (free_ a✝)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (free_ a✝)) case bound_ Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z a✝ : β„• ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (bound_ a✝)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ a✝))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
case free_ x => conv => lhs simp only [Var.open] simp only [Var.substFun] simp only [str_fun_to_var_fun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z x : String ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (free_ x)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (free_ x))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z x : String ⊒ free_ (Οƒ x) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (free_ x))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
case bound_ i => conv => lhs simp only [Var.open] split_ifs case pos c1 => simp only [Var.substFun] simp only [Var.open] simp only [if_pos c1] case pos c1 c2 => simp only [Var.substFun] simp only [str_fun_to_var_fun] simp only [Var.open] simp only [if_neg c1] simp only [if_pos c2] simp only [h1] case neg c1 c2 => simp only [Var.substFun] simp only [Var.open] simp only [if_neg c1] simp only [if_neg c2]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (bound_ i)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
conv => lhs simp only [Var.open] simp only [Var.substFun] simp only [str_fun_to_var_fun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z x : String ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (free_ x)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (free_ x))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z x : String ⊒ free_ (Οƒ x) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (free_ x))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
conv => lhs simp only [Var.open]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (Var.open j (free_ z) (bound_ i)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
split_ifs
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
case pos Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• h✝ : i < j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i)) case pos Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• h✝¹ : Β¬i < j h✝ : i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i)) case neg Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• h✝¹ : Β¬i < j h✝ : Β¬i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ (i - 1)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
case pos c1 => simp only [Var.substFun] simp only [Var.open] simp only [if_pos c1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
case pos c1 c2 => simp only [Var.substFun] simp only [str_fun_to_var_fun] simp only [Var.open] simp only [if_neg c1] simp only [if_pos c2] simp only [h1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
case neg c1 c2 => simp only [Var.substFun] simp only [Var.open] simp only [if_neg c1] simp only [if_neg c2]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ (i - 1)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.substFun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ bound_ i = Var.open j (free_ z) (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.open]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ bound_ i = Var.open j (free_ z) (bound_ i)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ bound_ i = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [if_pos c1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : i < j ⊒ bound_ i = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.substFun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (free_ z) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ str_fun_to_var_fun Οƒ (free_ z) = Var.open j (free_ z) (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [str_fun_to_var_fun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ str_fun_to_var_fun Οƒ (free_ z) = Var.open j (free_ z) (bound_ i)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = Var.open j (free_ z) (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.open]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = Var.open j (free_ z) (bound_ i)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [if_neg c1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = if i = j then free_ z else bound_ (i - 1)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [if_pos c2]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = if i = j then free_ z else bound_ (i - 1)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = free_ z
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [h1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : i = j ⊒ free_ (Οƒ z) = free_ z
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.substFun]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ Var.substFun (str_fun_to_var_fun Οƒ) (bound_ (i - 1)) = Var.open j (free_ z) (Var.substFun (str_fun_to_var_fun Οƒ) (bound_ i))
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = Var.open j (free_ z) (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [Var.open]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = Var.open j (free_ z) (bound_ i)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [if_neg c1]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = if i < j then bound_ i else if i = j then free_ z else bound_ (i - 1)
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = if i = j then free_ z else bound_ (i - 1)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.SubOpenVar
[611, 1]
[647, 28]
simp only [if_neg c2]
Οƒ : String β†’ String j : β„• z : String h1 : Οƒ z = z i : β„• c1 : Β¬i < j c2 : Β¬i = j ⊒ bound_ (i - 1) = if i = j then free_ z else bound_ (i - 1)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
funext v
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d = shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)
case h D : Type V : VarAssignment D j : β„• zs : List String d : D v : Var ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d v = (shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)) v
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp
case h D : Type V : VarAssignment D j : β„• zs : List String d : D v : Var ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d v = (shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)) v
case h D : Type V : VarAssignment D j : β„• zs : List String d : D v : Var ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d v = shift D V d (Var.openList (j + 1) (List.map free_ zs) v)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
cases v
case h D : Type V : VarAssignment D j : β„• zs : List String d : D v : Var ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d v = shift D V d (Var.openList (j + 1) (List.map free_ zs) v)
case h.free_ D : Type V : VarAssignment D j : β„• zs : List String d : D a✝ : String ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (free_ a✝) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ a✝)) case h.bound_ D : Type V : VarAssignment D j : β„• zs : List String d : D a✝ : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ a✝) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ a✝))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case _ x => simp only [Var.openList] simp only [shift] simp
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ x))
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ V (Var.openList j (List.map free_ zs) (free_ x)) = V (free_ x)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case _ i => cases i case zero => simp only [shift] simp only [Var.openList] simp case succ i => simp only [shift] simp only [Var.openList] simp split case _ c1 => have s1 : i + 1 < j + 1 linarith simp only [if_pos s1] case _ c1 => have s1 : Β¬ i + 1 < j + 1 linarith simp only [if_neg s1] split case _ c2 => simp case _ c2 => simp
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ i) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ i))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [Var.openList]
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (free_ x))
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (free_ x)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [shift]
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (free_ x) = shift D V d (free_ x)
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ (V ∘ Var.openList j (List.map free_ zs)) (free_ x) = V (free_ x)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ (V ∘ Var.openList j (List.map free_ zs)) (free_ x) = V (free_ x)
D : Type V : VarAssignment D j : β„• zs : List String d : D x : String ⊒ V (Var.openList j (List.map free_ zs) (free_ x)) = V (free_ x)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
cases i
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ i) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ i))
case zero D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ 0) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ 0)) case succ D : Type V : VarAssignment D j : β„• zs : List String d : D n✝ : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ (n✝ + 1)) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ (n✝ + 1)))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case zero => simp only [shift] simp only [Var.openList] simp
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ 0) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ 0))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case succ i => simp only [shift] simp only [Var.openList] simp split case _ c1 => have s1 : i + 1 < j + 1 linarith simp only [if_pos s1] case _ c1 => have s1 : Β¬ i + 1 < j + 1 linarith simp only [if_neg s1] split case _ c2 => simp case _ c2 => simp
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ (i + 1)) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ (i + 1)))
case h_3 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var i✝ : β„• heq✝ : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ i✝.succ ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (bound_ i✝)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [shift]
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ 0) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ 0))
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ d = match Var.openList (j + 1) (List.map free_ zs) (bound_ 0) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [Var.openList]
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ d = match Var.openList (j + 1) (List.map free_ zs) (bound_ 0) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ d = match if 0 < j + 1 then bound_ 0 else if x : 0 - (j + 1) < (List.map free_ zs).length then (List.map free_ zs)[0 - (j + 1)] else bound_ (0 - (j + 1) - (List.map free_ zs).length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp
D : Type V : VarAssignment D j : β„• zs : List String d : D ⊒ d = match if 0 < j + 1 then bound_ 0 else if x : 0 - (j + 1) < (List.map free_ zs).length then (List.map free_ zs)[0 - (j + 1)] else bound_ (0 - (j + 1) - (List.map free_ zs).length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [shift]
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d (bound_ (i + 1)) = shift D V d (Var.openList (j + 1) (List.map free_ zs) (bound_ (i + 1)))
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ (V ∘ Var.openList j (List.map free_ zs)) (bound_ i) = match Var.openList (j + 1) (List.map free_ zs) (bound_ (i + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp only [Var.openList]
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ (V ∘ Var.openList j (List.map free_ zs)) (bound_ i) = match Var.openList (j + 1) (List.map free_ zs) (bound_ (i + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ (V ∘ Var.openList j (List.map free_ zs)) (bound_ i) = match if i + 1 < j + 1 then bound_ (i + 1) else if x : i + 1 - (j + 1) < (List.map free_ zs).length then (List.map free_ zs)[i + 1 - (j + 1)] else bound_ (i + 1 - (j + 1) - (List.map free_ zs).length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
simp
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ (V ∘ Var.openList j (List.map free_ zs)) (bound_ i) = match if i + 1 < j + 1 then bound_ (i + 1) else if x : i + 1 - (j + 1) < (List.map free_ zs).length then (List.map free_ zs)[i + 1 - (j + 1)] else bound_ (i + 1 - (j + 1) - (List.map free_ zs).length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = match if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
split
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = match if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1)) with | free_ x => V (free_ x) | bound_ 0 => d | bound_ i.succ => V (bound_ i)
case h_1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String heq✝ : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (free_ x✝) case h_2 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var heq✝ : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = d case h_3 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var i✝ : β„• heq✝ : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ i✝.succ ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (bound_ i✝)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case _ c1 => have s1 : i + 1 < j + 1 linarith simp only [if_pos s1]
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (free_ x✝)
case s1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ ⊒ i + 1 < j + 1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ s1 : i + 1 < j + 1 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (free_ x✝)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
case _ c1 => have s1 : Β¬ i + 1 < j + 1 linarith simp only [if_neg s1] split case _ c2 => simp case _ c2 => simp
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = d
case s1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 ⊒ Β¬i + 1 < j + 1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 s1 : Β¬i + 1 < j + 1 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = d
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
have s1 : i + 1 < j + 1
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (free_ x✝)
case s1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ ⊒ i + 1 < j + 1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝¹ : Var x✝ : String c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = free_ x✝ s1 : i + 1 < j + 1 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = V (free_ x✝)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.ShiftVarOpenList
[815, 1]
[854, 17]
have s1 : Β¬ i + 1 < j + 1
D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = d
case s1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 ⊒ Β¬i + 1 < j + 1 D : Type V : VarAssignment D j : β„• zs : List String d : D i : β„• x✝ : Var c1 : (if i < j then bound_ (i + 1) else if h : i - j < zs.length then free_ (zs.get ⟨i - j, β‹―βŸ©) else bound_ (i - j - zs.length + (j + 1))) = bound_ 0 s1 : Β¬i + 1 < j + 1 ⊒ V (Var.openList j (List.map free_ zs) (bound_ i)) = d
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
induction F generalizing V j
D : Type I : Interpretation D V : VarAssignment D j : β„• zs : List String F : Formula ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) F ↔ Holds D I V (Formula.openList j (List.map free_ zs) F)
case pred_ D : Type I : Interpretation D zs : List String a✝¹ : String a✝ : List Var V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (pred_ a✝¹ a✝) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (pred_ a✝¹ a✝)) case not_ D : Type I : Interpretation D zs : List String a✝ : Formula a_ih✝ : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) a✝ ↔ Holds D I V (Formula.openList j (List.map free_ zs) a✝) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) a✝.not_ ↔ Holds D I V (Formula.openList j (List.map free_ zs) a✝.not_) case imp_ D : Type I : Interpretation D zs : List String a✝¹ a✝ : Formula a_ih✝¹ : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) a✝¹ ↔ Holds D I V (Formula.openList j (List.map free_ zs) a✝¹) a_ih✝ : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) a✝ ↔ Holds D I V (Formula.openList j (List.map free_ zs) a✝) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (a✝¹.imp_ a✝) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (a✝¹.imp_ a✝)) case forall_ D : Type I : Interpretation D zs : List String a✝¹ : String a✝ : Formula a_ih✝ : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) a✝ ↔ Holds D I V (Formula.openList j (List.map free_ zs) a✝) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (forall_ a✝¹ a✝) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (forall_ a✝¹ a✝))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
case pred_ X vs => simp only [Holds] congr! 1 simp
D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (pred_ X vs) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (pred_ X vs))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
case not_ phi phi_ih => simp only [Holds] congr! 1 apply phi_ih
D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi.not_ ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi.not_)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
case forall_ _ phi phi_ih => simp only [Holds] apply forall_congr' intro d simp only [← phi_ih] congr! apply ShiftVarOpenList
D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (forall_ a✝ phi) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (forall_ a✝ phi))
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp only [Holds]
D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (pred_ X vs) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (pred_ X vs))
D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ I.pred_ X (List.map (V ∘ Var.openList j (List.map free_ zs)) vs) ↔ I.pred_ X (List.map V (List.map (Var.openList j (List.map free_ zs)) vs))
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
congr! 1
D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ I.pred_ X (List.map (V ∘ Var.openList j (List.map free_ zs)) vs) ↔ I.pred_ X (List.map V (List.map (Var.openList j (List.map free_ zs)) vs))
case a.h.e'_4 D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ List.map (V ∘ Var.openList j (List.map free_ zs)) vs = List.map V (List.map (Var.openList j (List.map free_ zs)) vs)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp
case a.h.e'_4 D : Type I : Interpretation D zs : List String X : String vs : List Var V : VarAssignment D j : β„• ⊒ List.map (V ∘ Var.openList j (List.map free_ zs)) vs = List.map V (List.map (Var.openList j (List.map free_ zs)) vs)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp only [Holds]
D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi.not_ ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi.not_)
D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Β¬Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Β¬Holds D I V (Formula.openList j (List.map free_ zs) phi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
congr! 1
D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Β¬Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Β¬Holds D I V (Formula.openList j (List.map free_ zs) phi)
case a.h.e'_1.a D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
apply phi_ih
case a.h.e'_1.a D : Type I : Interpretation D zs : List String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp only [Holds]
D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (phi.imp_ psi) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (phi.imp_ psi))
D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi β†’ Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) β†’ Holds D I V (Formula.openList j (List.map free_ zs) psi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
congr! 1
D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi β†’ Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) β†’ Holds D I V (Formula.openList j (List.map free_ zs) psi)
case a.h.a D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) case a.h'.a D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• a✝ : Holds D I V (Formula.openList j (List.map free_ zs) phi) ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
apply phi_ih
case a.h.a D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
apply psi_ih
case a.h'.a D : Type I : Interpretation D zs : List String phi psi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) psi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi) V : VarAssignment D j : β„• a✝ : Holds D I V (Formula.openList j (List.map free_ zs) phi) ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) psi ↔ Holds D I V (Formula.openList j (List.map free_ zs) psi)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp only [Holds]
D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ Holds D I (V ∘ Var.openList j (List.map free_ zs)) (forall_ a✝ phi) ↔ Holds D I V (Formula.openList j (List.map free_ zs) (forall_ a✝ phi))
D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ (βˆ€ (d : D), Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi) ↔ βˆ€ (d : D), Holds D I (shift D V d) (Formula.openList (j + 1) (List.map free_ zs) phi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
apply forall_congr'
D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ (βˆ€ (d : D), Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi) ↔ βˆ€ (d : D), Holds D I (shift D V d) (Formula.openList (j + 1) (List.map free_ zs) phi)
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ βˆ€ (a : D), Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) a) phi ↔ Holds D I (shift D V a) (Formula.openList (j + 1) (List.map free_ zs) phi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
intro d
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• ⊒ βˆ€ (a : D), Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) a) phi ↔ Holds D I (shift D V a) (Formula.openList (j + 1) (List.map free_ zs) phi)
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi ↔ Holds D I (shift D V d) (Formula.openList (j + 1) (List.map free_ zs) phi)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
simp only [← phi_ih]
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi ↔ Holds D I (shift D V d) (Formula.openList (j + 1) (List.map free_ zs) phi)
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi ↔ Holds D I (shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)) phi
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
congr!
case h D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ Holds D I (shift D (V ∘ Var.openList j (List.map free_ zs)) d) phi ↔ Holds D I (shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)) phi
case h.a.h.e'_3 D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d = shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Paper.lean
LN.HoldsOpenList
[857, 1]
[887, 27]
apply ShiftVarOpenList
case h.a.h.e'_3 D : Type I : Interpretation D zs : List String a✝ : String phi : Formula phi_ih : βˆ€ (V : VarAssignment D) (j : β„•), Holds D I (V ∘ Var.openList j (List.map free_ zs)) phi ↔ Holds D I V (Formula.openList j (List.map free_ zs) phi) V : VarAssignment D j : β„• d : D ⊒ shift D (V ∘ Var.openList j (List.map free_ zs)) d = shift D V d ∘ Var.openList (j + 1) (List.map free_ zs)
no goals