Step
*
1
1
2
of Lemma
descending-append
1. [A] : Type
2. [<] : A ⟶ A ⟶ ℙ
3. L1 : A List
4. L2 : A List
5. ∀i:ℕ(||L1|| + ||L2||) - 1. <[L1 @ L2[i + 1];L1 @ L2[i]]
6. ∀i:ℕ||L1|| - 1. <[L1[i + 1];L1[i]]
7. i : ℕ||L2|| - 1
⊢ <[L2[i + 1];L2[i]]
BY
{ ((InstHyp [⌜i + ||L1||⌝] (-3)⋅ THENA Auto')
   THEN RWO  "select_append_back" (-1)
   THEN Auto'
   THEN Try ((RWO  "select_append_back" 0 THEN Auto'))) }
Latex:
Latex:
1.  [A]  :  Type
2.  [<]  :  A  {}\mrightarrow{}  A  {}\mrightarrow{}  \mBbbP{}
3.  L1  :  A  List
4.  L2  :  A  List
5.  \mforall{}i:\mBbbN{}(||L1||  +  ||L2||)  -  1.  <[L1  @  L2[i  +  1];L1  @  L2[i]]
6.  \mforall{}i:\mBbbN{}||L1||  -  1.  <[L1[i  +  1];L1[i]]
7.  i  :  \mBbbN{}||L2||  -  1
\mvdash{}  <[L2[i  +  1];L2[i]]
By
Latex:
((InstHyp  [\mkleeneopen{}i  +  ||L1||\mkleeneclose{}]  (-3)\mcdot{}  THENA  Auto')
  THEN  RWO    "select\_append\_back"  (-1)
  THEN  Auto'
  THEN  Try  ((RWO    "select\_append\_back"  0  THEN  Auto')))
Home
Index