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/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
case _ a2_left a2_right => subst a2_right simp only [isFree] simp exact a2_left
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.freeVarSet x : String a2_left : free_ x ∈ vs a2_right : v = free_ x ⊒ v ∈ vs ∧ v.isFree
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
subst a2_right
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.freeVarSet x : String a2_left : free_ x ∈ vs a2_right : v = free_ x ⊒ v ∈ vs ∧ v.isFree
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs ∧ (free_ x).isFree
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [isFree]
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs ∧ (free_ x).isFree
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs ∧ True
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs ∧ True
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
exact a2_left
X : String vs : List Var x : String a2_left : free_ x ∈ vs a1 : βˆƒ a ∈ vs, free_ x ∈ a.freeVarSet ⊒ free_ x ∈ vs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [Var.freeVarSet] at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.freeVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ (bound_ i).freeVarSet ⊒ v ∈ vs ∧ v.isFree
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.freeVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ βˆ… ⊒ v ∈ vs ∧ v.isFree
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.freeVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ βˆ… ⊒ v ∈ vs ∧ v.isFree
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [Formula.freeVarSet]
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi.not_ ∧ v.isFree ↔ v ∈ phi.not_.freeVarSet
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi.not_ ∧ v.isFree ↔ v ∈ phi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [occursIn]
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi.not_ ∧ v.isFree ↔ v ∈ phi.freeVarSet
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
exact phi_ih
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [Formula.freeVarSet]
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isFree ↔ v ∈ (phi.imp_ psi).freeVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet βˆͺ psi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [occursIn]
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet βˆͺ psi.freeVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet βˆͺ psi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet βˆͺ psi.freeVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet ∨ v ∈ psi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
tauto
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet psi_ih : occursIn v psi ∧ v.isFree ↔ v ∈ psi.freeVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isFree ↔ v ∈ phi.freeVarSet ∨ v ∈ psi.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [Formula.freeVarSet]
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isFree ↔ v ∈ (forall_ a✝ phi).freeVarSet
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isFree ↔ v ∈ phi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
simp only [occursIn]
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isFree ↔ v ∈ phi.freeVarSet
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet
[211, 1]
[264, 17]
exact phi_ih
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet ⊒ occursIn v phi ∧ v.isFree ↔ v ∈ phi.freeVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
induction F
v : Var F : Formula ⊒ occursIn v F ∧ v.isBound ↔ v ∈ F.boundVarSet
case pred_ v : Var a✝¹ : String a✝ : List Var ⊒ occursIn v (pred_ a✝¹ a✝) ∧ v.isBound ↔ v ∈ (pred_ a✝¹ a✝).boundVarSet case not_ v : Var a✝ : Formula a_ih✝ : occursIn v a✝ ∧ v.isBound ↔ v ∈ a✝.boundVarSet ⊒ occursIn v a✝.not_ ∧ v.isBound ↔ v ∈ a✝.not_.boundVarSet case imp_ v : Var a✝¹ a✝ : Formula a_ih✝¹ : occursIn v a✝¹ ∧ v.isBound ↔ v ∈ a✝¹.boundVarSet a_ih✝ : occursIn v a✝ ∧ v.isBound ↔ v ∈ a✝.boundVarSet ⊒ occursIn v (a✝¹.imp_ a✝) ∧ v.isBound ↔ v ∈ (a✝¹.imp_ a✝).boundVarSet case forall_ v : Var a✝¹ : String a✝ : Formula a_ih✝ : occursIn v a✝ ∧ v.isBound ↔ v ∈ a✝.boundVarSet ⊒ occursIn v (forall_ a✝¹ a✝) ∧ v.isBound ↔ v ∈ (forall_ a✝¹ a✝).boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case not_ phi phi_ih => simp only [Formula.boundVarSet] simp only [occursIn] exact phi_ih
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi.not_ ∧ v.isBound ↔ v ∈ phi.not_.boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case imp_ phi psi phi_ih psi_ih => simp only [Formula.boundVarSet] simp only [occursIn] simp tauto
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isBound ↔ v ∈ (phi.imp_ psi).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case forall_ _ phi phi_ih => simp only [Formula.boundVarSet] simp only [occursIn] exact phi_ih
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isBound ↔ v ∈ (forall_ a✝ phi).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Formula.boundVarSet]
v : Var X : String vs : List Var ⊒ occursIn v (pred_ X vs) ∧ v.isBound ↔ v ∈ (pred_ X vs).boundVarSet
v : Var X : String vs : List Var ⊒ occursIn v (pred_ X vs) ∧ v.isBound ↔ v ∈ vs.toFinset.biUnion Var.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [occursIn]
v : Var X : String vs : List Var ⊒ occursIn v (pred_ X vs) ∧ v.isBound ↔ v ∈ vs.toFinset.biUnion Var.boundVarSet
v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound ↔ v ∈ vs.toFinset.biUnion Var.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp
v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound ↔ v ∈ vs.toFinset.biUnion Var.boundVarSet
v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound ↔ βˆƒ a ∈ vs, v ∈ a.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
constructor
v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound ↔ βˆƒ a ∈ vs, v ∈ a.boundVarSet
case mp v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound β†’ βˆƒ a ∈ vs, v ∈ a.boundVarSet case mpr v : Var X : String vs : List Var ⊒ (βˆƒ a ∈ vs, v ∈ a.boundVarSet) β†’ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
intro a1
case mp v : Var X : String vs : List Var ⊒ v ∈ vs ∧ v.isBound β†’ βˆƒ a ∈ vs, v ∈ a.boundVarSet
case mp v : Var X : String vs : List Var a1 : v ∈ vs ∧ v.isBound ⊒ βˆƒ a ∈ vs, v ∈ a.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
apply Exists.intro v
case mp v : Var X : String vs : List Var a1 : v ∈ vs ∧ v.isBound ⊒ βˆƒ a ∈ vs, v ∈ a.boundVarSet
case mp v : Var X : String vs : List Var a1 : v ∈ vs ∧ v.isBound ⊒ v ∈ vs ∧ v ∈ v.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
cases v
case mp v : Var X : String vs : List Var a1 : v ∈ vs ∧ v.isBound ⊒ v ∈ vs ∧ v ∈ v.boundVarSet
case mp.free_ X : String vs : List Var a✝ : String a1 : free_ a✝ ∈ vs ∧ (free_ a✝).isBound ⊒ free_ a✝ ∈ vs ∧ free_ a✝ ∈ (free_ a✝).boundVarSet case mp.bound_ X : String vs : List Var a✝ : β„• a1 : bound_ a✝ ∈ vs ∧ (bound_ a✝).isBound ⊒ bound_ a✝ ∈ vs ∧ bound_ a✝ ∈ (bound_ a✝).boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ x => simp only [Var.isBound] at a1 cases a1 case _ a1_left a1_right => contradiction
X : String vs : List Var x : String a1 : free_ x ∈ vs ∧ (free_ x).isBound ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ i => simp only [Var.boundVarSet] simp cases a1 case _ a1_left a1_right => exact a1_left
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs ∧ bound_ i ∈ (bound_ i).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Var.isBound] at a1
X : String vs : List Var x : String a1 : free_ x ∈ vs ∧ (free_ x).isBound ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
X : String vs : List Var x : String a1 : free_ x ∈ vs ∧ False ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
cases a1
X : String vs : List Var x : String a1 : free_ x ∈ vs ∧ False ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
case intro X : String vs : List Var x : String left✝ : free_ x ∈ vs right✝ : False ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ a1_left a1_right => contradiction
X : String vs : List Var x : String a1_left : free_ x ∈ vs a1_right : False ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
contradiction
X : String vs : List Var x : String a1_left : free_ x ∈ vs a1_right : False ⊒ free_ x ∈ vs ∧ free_ x ∈ (free_ x).boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Var.boundVarSet]
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs ∧ bound_ i ∈ (bound_ i).boundVarSet
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs ∧ bound_ i ∈ {bound_ i}
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs ∧ bound_ i ∈ {bound_ i}
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
cases a1
X : String vs : List Var i : β„• a1 : bound_ i ∈ vs ∧ (bound_ i).isBound ⊒ bound_ i ∈ vs
case intro X : String vs : List Var i : β„• left✝ : bound_ i ∈ vs right✝ : (bound_ i).isBound ⊒ bound_ i ∈ vs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ a1_left a1_right => exact a1_left
X : String vs : List Var i : β„• a1_left : bound_ i ∈ vs a1_right : (bound_ i).isBound ⊒ bound_ i ∈ vs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
exact a1_left
X : String vs : List Var i : β„• a1_left : bound_ i ∈ vs a1_right : (bound_ i).isBound ⊒ bound_ i ∈ vs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
intro a1
case mpr v : Var X : String vs : List Var ⊒ (βˆƒ a ∈ vs, v ∈ a.boundVarSet) β†’ v ∈ vs ∧ v.isBound
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
apply Exists.elim a1
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet ⊒ v ∈ vs ∧ v.isBound
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet ⊒ βˆ€ (a : Var), a ∈ vs ∧ v ∈ a.boundVarSet β†’ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
intro u a2
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet ⊒ βˆ€ (a : Var), a ∈ vs ∧ v ∈ a.boundVarSet β†’ v ∈ vs ∧ v.isBound
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet u : Var a2 : u ∈ vs ∧ v ∈ u.boundVarSet ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
cases u
case mpr v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet u : Var a2 : u ∈ vs ∧ v ∈ u.boundVarSet ⊒ v ∈ vs ∧ v.isBound
case mpr.free_ v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet a✝ : String a2 : free_ a✝ ∈ vs ∧ v ∈ (free_ a✝).boundVarSet ⊒ v ∈ vs ∧ v.isBound case mpr.bound_ v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet a✝ : β„• a2 : bound_ a✝ ∈ vs ∧ v ∈ (bound_ a✝).boundVarSet ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ x => simp only [Var.boundVarSet] at a2 simp at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet x : String a2 : free_ x ∈ vs ∧ v ∈ (free_ x).boundVarSet ⊒ v ∈ vs ∧ v.isBound
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ i => simp only [Var.boundVarSet] at a2 simp at a2 cases a2 case _ a2_left a2_right => subst a2_right simp only [isBound] simp exact a2_left
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ (bound_ i).boundVarSet ⊒ v ∈ vs ∧ v.isBound
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Var.boundVarSet] at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet x : String a2 : free_ x ∈ vs ∧ v ∈ (free_ x).boundVarSet ⊒ v ∈ vs ∧ v.isBound
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet x : String a2 : free_ x ∈ vs ∧ v ∈ βˆ… ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet x : String a2 : free_ x ∈ vs ∧ v ∈ βˆ… ⊒ v ∈ vs ∧ v.isBound
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Var.boundVarSet] at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ (bound_ i).boundVarSet ⊒ v ∈ vs ∧ v.isBound
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ {bound_ i} ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp at a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v ∈ {bound_ i} ⊒ v ∈ vs ∧ v.isBound
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v = bound_ i ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
cases a2
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2 : bound_ i ∈ vs ∧ v = bound_ i ⊒ v ∈ vs ∧ v.isBound
case intro v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• left✝ : bound_ i ∈ vs right✝ : v = bound_ i ⊒ v ∈ vs ∧ v.isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
case _ a2_left a2_right => subst a2_right simp only [isBound] simp exact a2_left
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2_left : bound_ i ∈ vs a2_right : v = bound_ i ⊒ v ∈ vs ∧ v.isBound
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
subst a2_right
v : Var X : String vs : List Var a1 : βˆƒ a ∈ vs, v ∈ a.boundVarSet i : β„• a2_left : bound_ i ∈ vs a2_right : v = bound_ i ⊒ v ∈ vs ∧ v.isBound
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs ∧ (bound_ i).isBound
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [isBound]
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs ∧ (bound_ i).isBound
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs ∧ True
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs ∧ True
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
exact a2_left
X : String vs : List Var i : β„• a2_left : bound_ i ∈ vs a1 : βˆƒ a ∈ vs, bound_ i ∈ a.boundVarSet ⊒ bound_ i ∈ vs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Formula.boundVarSet]
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi.not_ ∧ v.isBound ↔ v ∈ phi.not_.boundVarSet
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi.not_ ∧ v.isBound ↔ v ∈ phi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [occursIn]
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi.not_ ∧ v.isBound ↔ v ∈ phi.boundVarSet
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
exact phi_ih
v : Var phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Formula.boundVarSet]
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isBound ↔ v ∈ (phi.imp_ psi).boundVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet βˆͺ psi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [occursIn]
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ occursIn v (phi.imp_ psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet βˆͺ psi.boundVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet βˆͺ psi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet βˆͺ psi.boundVarSet
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet ∨ v ∈ psi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
tauto
v : Var phi psi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet psi_ih : occursIn v psi ∧ v.isBound ↔ v ∈ psi.boundVarSet ⊒ (occursIn v phi ∨ occursIn v psi) ∧ v.isBound ↔ v ∈ phi.boundVarSet ∨ v ∈ psi.boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [Formula.boundVarSet]
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isBound ↔ v ∈ (forall_ a✝ phi).boundVarSet
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isBound ↔ v ∈ phi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
simp only [occursIn]
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v (forall_ a✝ phi) ∧ v.isBound ↔ v ∈ phi.boundVarSet
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet
[267, 1]
[320, 17]
exact phi_ih
v : Var a✝ : String phi : Formula phi_ih : occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet ⊒ occursIn v phi ∧ v.isBound ↔ v ∈ phi.boundVarSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet'
[323, 1]
[331, 36]
simp only [freeVarSet']
v : Var F : Formula ⊒ occursIn v F ∧ v.isFree ↔ v ∈ F.freeVarSet'
v : Var F : Formula ⊒ occursIn v F ∧ v.isFree ↔ v ∈ Finset.filter isFree F.varSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet'
[323, 1]
[331, 36]
simp
v : Var F : Formula ⊒ occursIn v F ∧ v.isFree ↔ v ∈ Finset.filter isFree F.varSet
v : Var F : Formula ⊒ v.isFree β†’ (occursIn v F ↔ v ∈ F.varSet)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet'
[323, 1]
[331, 36]
intro _
v : Var F : Formula ⊒ v.isFree β†’ (occursIn v F ↔ v ∈ F.varSet)
v : Var F : Formula a✝ : v.isFree ⊒ occursIn v F ↔ v ∈ F.varSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isFreeIn_iff_mem_freeVarSet'
[323, 1]
[331, 36]
exact occursIn_iff_mem_varSet v F
v : Var F : Formula a✝ : v.isFree ⊒ occursIn v F ↔ v ∈ F.varSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet'
[334, 1]
[342, 36]
simp only [boundVarSet']
v : Var F : Formula ⊒ occursIn v F ∧ v.isBound ↔ v ∈ F.boundVarSet'
v : Var F : Formula ⊒ occursIn v F ∧ v.isBound ↔ v ∈ Finset.filter isBound F.varSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet'
[334, 1]
[342, 36]
simp
v : Var F : Formula ⊒ occursIn v F ∧ v.isBound ↔ v ∈ Finset.filter isBound F.varSet
v : Var F : Formula ⊒ v.isBound β†’ (occursIn v F ↔ v ∈ F.varSet)
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet'
[334, 1]
[342, 36]
intro _
v : Var F : Formula ⊒ v.isBound β†’ (occursIn v F ↔ v ∈ F.varSet)
v : Var F : Formula a✝ : v.isBound ⊒ occursIn v F ↔ v ∈ F.varSet
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.isBoundIn_iff_mem_boundVarSet'
[334, 1]
[342, 36]
exact occursIn_iff_mem_varSet v F
v : Var F : Formula a✝ : v.isBound ⊒ occursIn v F ↔ v ∈ F.varSet
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
cases v
v : Var ⊒ v.isFree ↔ βˆƒ x, v = free_ x
case free_ a✝ : String ⊒ (free_ a✝).isFree ↔ βˆƒ x, free_ a✝ = free_ x case bound_ a✝ : β„• ⊒ (bound_ a✝).isFree ↔ βˆƒ x, bound_ a✝ = free_ x
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
case free_ x => simp only [isFree] simp
x : String ⊒ (free_ x).isFree ↔ βˆƒ x_1, free_ x = free_ x_1
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
case bound_ i => simp only [isFree] simp
i : β„• ⊒ (bound_ i).isFree ↔ βˆƒ x, bound_ i = free_ x
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
simp only [isFree]
x : String ⊒ (free_ x).isFree ↔ βˆƒ x_1, free_ x = free_ x_1
x : String ⊒ True ↔ βˆƒ x_1, free_ x = free_ x_1
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
simp
x : String ⊒ True ↔ βˆƒ x_1, free_ x = free_ x_1
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
simp only [isFree]
i : β„• ⊒ (bound_ i).isFree ↔ βˆƒ x, bound_ i = free_ x
i : β„• ⊒ False ↔ βˆƒ x, False
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/LN/Binders.lean
LN.IsFreeIffExistsString
[346, 1]
[356, 9]
simp
i : β„• ⊒ False ↔ βˆƒ x, False
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
DFA.mem_accepts
[91, 1]
[99, 74]
rfl
Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ D : DFA Ξ± Οƒ input : List Ξ± ⊒ D.accepts input ↔ D.eval_from D.starting_state input ∈ D.accepting_state_list
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
NFA_to_DFA_is_equiv
[105, 1]
[117, 8]
ext cs
Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ ⊒ N.to_DFA.accepts = N.accepts
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.accepts cs ↔ N.accepts cs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
NFA_to_DFA_is_equiv
[105, 1]
[117, 8]
simp only [DFA.mem_accepts]
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.accepts cs ↔ N.accepts cs
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.eval_from N.to_DFA.starting_state cs ∈ N.to_DFA.accepting_state_list ↔ N.accepts cs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
NFA_to_DFA_is_equiv
[105, 1]
[117, 8]
simp only [NFA.mem_accepts]
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.eval_from N.to_DFA.starting_state cs ∈ N.to_DFA.accepting_state_list ↔ N.accepts cs
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.eval_from N.to_DFA.starting_state cs ∈ N.to_DFA.accepting_state_list ↔ βˆƒ s ∈ N.eval_from N.starting_state_list cs, s ∈ N.accepting_state_list
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
NFA_to_DFA_is_equiv
[105, 1]
[117, 8]
simp only [NFA.to_DFA]
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ N.to_DFA.eval_from N.to_DFA.starting_state cs ∈ N.to_DFA.accepting_state_list ↔ βˆƒ s ∈ N.eval_from N.starting_state_list cs, s ∈ N.accepting_state_list
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ { step := N.eval_one, starting_state := N.starting_state_list, accepting_state_list := sorryAx (List (List Οƒ)) }.eval_from N.starting_state_list cs ∈ sorryAx (List (List Οƒ)) ↔ βˆƒ s ∈ N.eval_from N.starting_state_list cs, s ∈ N.accepting_state_list
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/Parsing/DFA.lean
NFA_to_DFA_is_equiv
[105, 1]
[117, 8]
sorry
case h.a Ξ± : Type inst✝¹ : DecidableEq Ξ± Οƒ : Type inst✝ : DecidableEq Οƒ N : NFA Ξ± Οƒ cs : List Ξ± ⊒ { step := N.eval_one, starting_state := N.starting_state_list, accepting_state_list := sorryAx (List (List Οƒ)) }.eval_from N.starting_state_list cs ∈ sorryAx (List (List Οƒ)) ↔ βˆƒ s ∈ N.eval_from N.starting_state_list cs, s ∈ N.accepting_state_list
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationEmpty
[208, 1]
[218, 7]
cases h1
V_N V_T : Type R : V_N β†’ PE V_N V_T n : β„• xs : List V_T o : Option (List V_T) h1 : Interpretation V_N V_T R (empty, xs) (n, o) ⊒ n = 1 ∧ o = some []
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ⊒ 1 = 1 ∧ some [] = some []
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationEmpty
[208, 1]
[218, 7]
simp
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ⊒ 1 = 1 ∧ some [] = some []
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationSteps
[221, 1]
[233, 10]
cases h1
V_N V_T : Type R : V_N β†’ PE V_N V_T e : PE V_N V_T xs : List V_T o : Option (List V_T) n : β„• h1 : Interpretation V_N V_T R (e, xs) (n, o) ⊒ n > 0
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ⊒ 1 > 0 case terminal_success V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ⊒ 1 > 0 case terminal_failure_1 V_N V_T : Type R : V_N β†’ PE V_N V_T a✝¹ b✝ : V_T xs✝ : List V_T a✝ : Β¬a✝¹ = b✝ ⊒ 1 > 0 case terminal_failure_2 V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ⊒ 1 > 0 case nonTerminal V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T o : Option (List V_T) A✝ : V_N n✝ : β„• a✝ : Interpretation V_N V_T R (R A✝, xs) (n✝, o) ⊒ n✝ + 1 > 0 case seq_success V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e2✝, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ⊒ n1✝ + n2✝ + 1 > 0 case seq_failure_1 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e1✝ e2✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, xs) (n✝, none) ⊒ n✝ + 1 > 0 case seq_failure_2 V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs✝ ++ ys✝) (n1✝, some xs✝) a✝ : Interpretation V_N V_T R (e2✝, ys✝) (n2✝, none) ⊒ n1✝ + n2✝ + 1 > 0 case choice_1 V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs✝ ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, xs✝ ++ ys✝) (n✝, some xs✝) ⊒ n✝ + 1 > 0 case choice_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T o : Option (List V_T) e1✝ e2✝ : PE V_N V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs) (n1✝, none) a✝ : Interpretation V_N V_T R (e2✝, xs) (n2✝, o) ⊒ n1✝ + n2✝ + 1 > 0 case star_repetition V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e✝.star, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ⊒ n1✝ + n2✝ + 1 > 0 case star_termination V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ⊒ n✝ + 1 > 0 case notP_1 V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs✝ ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs✝ ++ ys✝) (n✝, some xs✝) ⊒ n✝ + 1 > 0 case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ⊒ n✝ + 1 > 0
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationSteps
[221, 1]
[233, 10]
all_goals omega
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ⊒ 1 > 0 case terminal_success V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ⊒ 1 > 0 case terminal_failure_1 V_N V_T : Type R : V_N β†’ PE V_N V_T a✝¹ b✝ : V_T xs✝ : List V_T a✝ : Β¬a✝¹ = b✝ ⊒ 1 > 0 case terminal_failure_2 V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ⊒ 1 > 0 case nonTerminal V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T o : Option (List V_T) A✝ : V_N n✝ : β„• a✝ : Interpretation V_N V_T R (R A✝, xs) (n✝, o) ⊒ n✝ + 1 > 0 case seq_success V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e2✝, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ⊒ n1✝ + n2✝ + 1 > 0 case seq_failure_1 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e1✝ e2✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, xs) (n✝, none) ⊒ n✝ + 1 > 0 case seq_failure_2 V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs✝ ++ ys✝) (n1✝, some xs✝) a✝ : Interpretation V_N V_T R (e2✝, ys✝) (n2✝, none) ⊒ n1✝ + n2✝ + 1 > 0 case choice_1 V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs✝ ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, xs✝ ++ ys✝) (n✝, some xs✝) ⊒ n✝ + 1 > 0 case choice_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T o : Option (List V_T) e1✝ e2✝ : PE V_N V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs) (n1✝, none) a✝ : Interpretation V_N V_T R (e2✝, xs) (n2✝, o) ⊒ n1✝ + n2✝ + 1 > 0 case star_repetition V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e✝.star, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ⊒ n1✝ + n2✝ + 1 > 0 case star_termination V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ⊒ n✝ + 1 > 0 case notP_1 V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs✝ ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs✝ ++ ys✝) (n✝, some xs✝) ⊒ n✝ + 1 > 0 case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ⊒ n✝ + 1 > 0
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationSteps
[221, 1]
[233, 10]
omega
case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ⊒ n✝ + 1 > 0
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
EmptyStringPrefix
[236, 1]
[241, 27]
exact List.nil_prefix xs
α : Type xs : List α ⊒ [].IsPrefix xs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
CharPrefix
[244, 1]
[250, 40]
exact List.prefix_iff_eq_take.mpr rfl
α : Type x : α xs : List α ⊒ [x].IsPrefix (x :: xs)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
PrefixAppend
[253, 1]
[258, 33]
exact List.prefix_append xs ys
α : Type xs ys : List α ⊒ xs.IsPrefix (xs ++ ys)
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
induction n using Nat.strongInductionOn generalizing e
V_N V_T : Type R : V_N β†’ PE V_N V_T e : PE V_N V_T xs ys : List V_T n : β„• h1 : Interpretation V_N V_T R (e, xs) (n, some ys) ⊒ ys.IsPrefix xs
case ind V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T n✝ : β„• a✝ : βˆ€ m < n✝, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs e : PE V_N V_T h1 : Interpretation V_N V_T R (e, xs) (n✝, some ys) ⊒ ys.IsPrefix xs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
cases h1
V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T n : β„• ih : βˆ€ m < n, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs e : PE V_N V_T h1 : Interpretation V_N V_T R (e, xs) (n, some ys) ⊒ ys.IsPrefix xs
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ih : βˆ€ m < 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs case terminal_success V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ih : βˆ€ m < 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, a✝ :: xs✝) (m, some [a✝]) β†’ [a✝].IsPrefix (a✝ :: xs✝) ⊒ [a✝].IsPrefix (a✝ :: xs✝) case nonTerminal V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T A✝ : V_N n✝ : β„• ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (R A✝, xs) (n✝, some ys) ⊒ ys.IsPrefix xs case seq_success V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e2✝, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs_1✝ ++ xs_2✝ ++ ys✝) (m, some (xs_1✝ ++ xs_2✝)) β†’ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) ⊒ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) case choice_1 V_N V_T : Type R : V_N β†’ PE V_N V_T ys : List V_T e1✝ e2✝ : PE V_N V_T ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, ys ++ ys✝) (n✝, some ys) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, ys ++ ys✝) (m, some ys) β†’ ys.IsPrefix (ys ++ ys✝) ⊒ ys.IsPrefix (ys ++ ys✝) case choice_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T e1✝ e2✝ : PE V_N V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs) (n1✝, none) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (e2✝, xs) (n2✝, some ys) ⊒ ys.IsPrefix xs case star_repetition V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e✝.star, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs_1✝ ++ xs_2✝ ++ ys✝) (m, some (xs_1✝ ++ xs_2✝)) β†’ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) ⊒ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) case star_termination V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
any_goals first | apply EmptyStringPrefix | apply CharPrefix | apply PrefixAppend
case empty V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T ih : βˆ€ m < 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs case terminal_success V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ih : βˆ€ m < 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, a✝ :: xs✝) (m, some [a✝]) β†’ [a✝].IsPrefix (a✝ :: xs✝) ⊒ [a✝].IsPrefix (a✝ :: xs✝) case nonTerminal V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T A✝ : V_N n✝ : β„• ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (R A✝, xs) (n✝, some ys) ⊒ ys.IsPrefix xs case seq_success V_N V_T : Type R : V_N β†’ PE V_N V_T e1✝ e2✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e2✝, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs_1✝ ++ xs_2✝ ++ ys✝) (m, some (xs_1✝ ++ xs_2✝)) β†’ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) ⊒ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) case choice_1 V_N V_T : Type R : V_N β†’ PE V_N V_T ys : List V_T e1✝ e2✝ : PE V_N V_T ys✝ : List V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e1✝, ys ++ ys✝) (n✝, some ys) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, ys ++ ys✝) (m, some ys) β†’ ys.IsPrefix (ys ++ ys✝) ⊒ ys.IsPrefix (ys ++ ys✝) case choice_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T e1✝ e2✝ : PE V_N V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs) (n1✝, none) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (e2✝, xs) (n2✝, some ys) ⊒ ys.IsPrefix xs case star_repetition V_N V_T : Type R : V_N β†’ PE V_N V_T e✝ : PE V_N V_T xs_1✝ xs_2✝ ys✝ : List V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e✝, xs_1✝ ++ xs_2✝ ++ ys✝) (n1✝, some xs_1✝) a✝ : Interpretation V_N V_T R (e✝.star, xs_2✝ ++ ys✝) (n2✝, some xs_2✝) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs_1✝ ++ xs_2✝ ++ ys✝) (m, some (xs_1✝ ++ xs_2✝)) β†’ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) ⊒ (xs_1✝ ++ xs_2✝).IsPrefix (xs_1✝ ++ xs_2✝ ++ ys✝) case star_termination V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs
case nonTerminal V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T A✝ : V_N n✝ : β„• ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (R A✝, xs) (n✝, some ys) ⊒ ys.IsPrefix xs case choice_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs ys : List V_T e1✝ e2✝ : PE V_N V_T n1✝ n2✝ : β„• a✝¹ : Interpretation V_N V_T R (e1✝, xs) (n1✝, none) ih : βˆ€ m < n1✝ + n2✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some ys) β†’ ys.IsPrefix xs a✝ : Interpretation V_N V_T R (e2✝, xs) (n2✝, some ys) ⊒ ys.IsPrefix xs
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
first | apply EmptyStringPrefix | apply CharPrefix | apply PrefixAppend
case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
apply EmptyStringPrefix
case notP_2 V_N V_T : Type R : V_N β†’ PE V_N V_T xs : List V_T e✝ : PE V_N V_T n✝ : β„• a✝ : Interpretation V_N V_T R (e✝, xs) (n✝, none) ih : βˆ€ m < n✝ + 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, xs) (m, some []) β†’ [].IsPrefix xs ⊒ [].IsPrefix xs
no goals
https://github.com/pthomas505/FOL.git
097a4abea51b641d144539b9a0f7516f3b9d818c
FOL/NV/Program/PEG.lean
InterpretationPrefix
[264, 1]
[285, 20]
apply CharPrefix
case terminal_success V_N V_T : Type R : V_N β†’ PE V_N V_T a✝ : V_T xs✝ : List V_T ih : βˆ€ m < 1, βˆ€ (e : PE V_N V_T), Interpretation V_N V_T R (e, a✝ :: xs✝) (m, some [a✝]) β†’ [a✝].IsPrefix (a✝ :: xs✝) ⊒ [a✝].IsPrefix (a✝ :: xs✝)
no goals