Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatolay committed Jan 22, 2024
1 parent a2317a8 commit 6884f74
Showing 1 changed file with 6 additions and 41 deletions.
47 changes: 6 additions & 41 deletions Minimal/Calculus.lean
Original file line number Diff line number Diff line change
Expand Up @@ -192,43 +192,6 @@ inductive IsAttached : { lst : List Attr } β†’ Attr β†’ Term β†’ AttrList lst
β†’ (u : OptionalAttr)
β†’ IsAttached a t l
β†’ IsAttached a t (AttrList.cons b not_in u l)
-- inductive IsAttached : Attr β†’ Term β†’ Term β†’ Type where
-- | zeroth_attached
-- : { lst : List Attr }
-- β†’ (a : Attr)
-- β†’ (not_in : a βˆ‰ lst)
-- β†’ (t : Term)
-- β†’ (l : AttrList lst)
-- β†’ IsAttached a t (obj (AttrList.cons a not_in (attached t) l))
-- | next_attached
-- : { lst : List Attr }
-- β†’ (a : Attr)
-- β†’ (t : Term)
-- β†’ (l : AttrList lst)
-- β†’ (b : Attr)
-- β†’ (a β‰  b)
-- β†’ (not_in : b βˆ‰ lst)
-- β†’ (u : OptionalAttr)
-- β†’ IsAttached a t (obj l)
-- β†’ IsAttached a t (obj (AttrList.cons b not_in u l))

-- def head_belongs
-- { Ξ± : Type }
-- { lst : List Ξ± }
-- (a : Ξ±)
-- : a ∈ a :: lst
-- := List.Mem.head lst

-- def attached_to_attr
-- { a : Attr }
-- { t u : Term }
-- (isAttached : IsAttached a t u)
-- : IsAttr a u
-- := match isAttached with
-- | IsAttached.zeroth_attached _ not_in _ l =>
-- IsAttr.is_attr a (head_belongs a) (AttrList.cons a not_in (attached t) l)
-- | IsAttached.next_attached _ _ l b not_eq not_in u is_att =>
-- IsAttr.is_attr a (List.Mem.tail b _) _

namespace Insert
def insertAttachedStep
Expand Down Expand Up @@ -435,7 +398,7 @@ inductive ParMany : Term β†’ Term β†’ Type where
scoped infix:20 " ⇝ " => Reduce
scoped infix:20 " ⇛ " => PReduce
scoped infix:20 " ⇝* " => RedMany
scoped infix:20 " ⇛* " => RedMany
-- scoped infix:20 " ⇛* " => RedMany

def reg_to_par {t t' : Term} : (t ⇝ t') β†’ (t ⇛ t')
| .congOBJ b l red isAttached =>
Expand Down Expand Up @@ -468,8 +431,8 @@ def clos_trans { t t' t'' : Term } : (t ⇝* t') β†’ (t' ⇝* t'') β†’ (t ⇝* t
-- : (t ⇝* t')
-- β†’ IsAttached b t l
-- β†’ (obj l ⇝* obj (insert l b (attached t')))
-- := Ξ» r a => match r with
-- | RedMany.nil => _
-- := Ξ» r isAttached => match r with
-- | RedMany.nil => _ -- congrArg obj (Eq.symm (Insert.insertAttached isAttached))
-- | RedMany.cons red redMany => _

def congDotClos : { t t' : Term } β†’ { a : Attr } β†’ (t ⇝* t') β†’ ((dot t a) ⇝* (dot t' a))
Expand All @@ -490,7 +453,9 @@ def congAPPα΅£Clos : { t u u' : Term } β†’ { a : Attr } β†’ (u ⇝* u') β†’ ((ap
def par_to_redMany {t t' : Term} : (t ⇛ t') β†’ (t ⇝* t')
| @PReduce.pcongOBJ lst l newAttrs premise => match lst with
| [] => Eq.ndrec (@RedMany.nil (obj l)) (congrArg obj (match l, newAttrs with | AttrList.nil, AttrList.nil => rfl))
| a :: b => _
| a :: as => match premise with
| Premise.consVoid _ _ => _
| Premise.consAttached _ _ _ _ _ => _
| .pcong_ρ n => RedMany.nil
| .pcongDOT t t' a prtt' => congDotClos (par_to_redMany prtt')
| .pcongAPP t t' u u' a prtt' pruu' => clos_trans
Expand Down

0 comments on commit 6884f74

Please sign in to comment.