Step * of Lemma RankEx2_ind_wf_simple

[S,T,A:Type]. ∀[v:RankEx2(S;T)]. ∀[LeafT:leaft:T ⟶ A]. ∀[LeafS:leafs:S ⟶ A]. ∀[Prod:prod:(RankEx2(S;T) × S × T)
                                                                                       ⟶ let u,u1 prod 
                                                                                          in let u1,u2 
                                                                                             in A
                                                                                       ⟶ A].
[Union:union:(S × RankEx2(S;T) RankEx2(S;T)) ⟶ case union of inl(u) => let u1,u2 in inr(u1) => A ⟶ A].
[ListProd:listprod:((S × RankEx2(S;T)) List) ⟶ (∀u∈listprod.let u1,u2 in A) ⟶ A].
[UnionList:unionlist:(T (RankEx2(S;T) List)) ⟶ case unionlist of inl(u) => True inr(u1) => (∀u∈u1.A) ⟶ A].
  (RankEx2_ind(v;
               RankEx2_LeafT(leaft) LeafT[leaft];
               RankEx2_LeafS(leafs) LeafS[leafs];
               RankEx2_Prod(prod) rec1.Prod[prod;rec1];
               RankEx2_Union(union) rec2.Union[union;rec2];
               RankEx2_ListProd(listprod) rec3.ListProd[listprod;rec3];
               RankEx2_UnionList(unionlist) rec4.UnionList[unionlist;rec4])  ∈ A)
BY
ProveDatatypeIndWfSimple `RankEx2_ind_wf` }


Latex:


Latex:
\mforall{}[S,T,A:Type].  \mforall{}[v:RankEx2(S;T)].  \mforall{}[LeafT:leaft:T  {}\mrightarrow{}  A].  \mforall{}[LeafS:leafs:S  {}\mrightarrow{}  A].
\mforall{}[Prod:prod:(RankEx2(S;T)  \mtimes{}  S  \mtimes{}  T)  {}\mrightarrow{}  let  u,u1  =  prod  in  let  u1,u2  =  u  in  A  {}\mrightarrow{}  A].
\mforall{}[Union:union:(S  \mtimes{}  RankEx2(S;T)  +  RankEx2(S;T))
                {}\mrightarrow{}  case  union  of  inl(u)  =>  let  u1,u2  =  u  in  A  |  inr(u1)  =>  A
                {}\mrightarrow{}  A].  \mforall{}[ListProd:listprod:((S  \mtimes{}  RankEx2(S;T))  List)
                                                    {}\mrightarrow{}  (\mforall{}u\mmember{}listprod.let  u1,u2  =  u 
                                                                                    in  A)
                                                    {}\mrightarrow{}  A].  \mforall{}[UnionList:unionlist:(T  +  (RankEx2(S;T)  List))
                                                                                          {}\mrightarrow{}  case  unionlist
                                                                                                  of  inl(u)  =>
                                                                                                  True
                                                                                                  |  inr(u1)  =>
                                                                                                  (\mforall{}u\mmember{}u1.A)
                                                                                          {}\mrightarrow{}  A].
    (RankEx2\_ind(v;
                              RankEx2\_LeafT(leaft){}\mRightarrow{}  LeafT[leaft];
                              RankEx2\_LeafS(leafs){}\mRightarrow{}  LeafS[leafs];
                              RankEx2\_Prod(prod){}\mRightarrow{}  rec1.Prod[prod;rec1];
                              RankEx2\_Union(union){}\mRightarrow{}  rec2.Union[union;rec2];
                              RankEx2\_ListProd(listprod){}\mRightarrow{}  rec3.ListProd[listprod;rec3];
                              RankEx2\_UnionList(unionlist){}\mRightarrow{}  rec4.UnionList[unionlist;rec4])    \mmember{}  A)


By


Latex:
ProveDatatypeIndWfSimple  2  `RankEx2\_ind\_wf`




Home Index