Step * 1 of Lemma co-value-height_wf


1. Type
2. co-value-height T ⟶ partial(ℕ)
3. a1 atomic-values()
⊢ if a1 is pair then let a,b a1 
                       in (co-value-height a) (co-value-height b) otherwise if a1 is inl then 1
                                                                                  (co-value-height outl(a1))
                                                                                  else if a1 is inr then 1
                                                                                       (co-value-height outr(a1))
                                                                                       else 0 ∈ partial(ℕ)
BY
((D -1 THEN -2) THEN CanonicalAuto) }

1
1. Type
2. co-value-height T ⟶ partial(ℕ)
3. a1 Base
4. (a1)↓
5. ↑is-atomic(a1)
6. a1 ~ <fst(a1), snd(a1)>
⊢ (co-value-height (fst(a1))) (co-value-height (snd(a1))) ∈ partial(ℕ)

2
1. Type
2. co-value-height T ⟶ partial(ℕ)
3. a1 Base
4. (a1)↓
5. ↑is-atomic(a1)
6. ∀[u,v:Top].  (if a1 is pair then otherwise v)
⊢ if a1 is inl then (co-value-height outl(a1))
  else if a1 is inr then (co-value-height outr(a1))
       else 0 ∈ partial(ℕ)


Latex:


Latex:

1.  T  :  Type
2.  co-value-height  :  T  {}\mrightarrow{}  partial(\mBbbN{})
3.  a1  :  atomic-values()
\mvdash{}  if  a1  is  a  pair  then  let  a,b  =  a1 
                                              in  1  +  (co-value-height  a)  +  (co-value-height  b)
    otherwise  if  a1  is  inl  then  1  +  (co-value-height  outl(a1))
                        else  if  a1  is  inr  then  1  +  (co-value-height  outr(a1))
                                  else  0  \mmember{}  partial(\mBbbN{})


By


Latex:
((D  -1  THEN  D  -2)  THEN  CanonicalAuto)




Home Index