Moment.thy
changeset 72 3fa70b12c117
parent 71 04caf0ccb3ae
child 73 b0054fb0d1ce
equal deleted inserted replaced
71:04caf0ccb3ae 72:3fa70b12c117
   144 qed
   144 qed
   145 
   145 
   146 lemma moment_Suc_tl:
   146 lemma moment_Suc_tl:
   147   assumes "Suc i \<le> length s"
   147   assumes "Suc i \<le> length s"
   148   shows "tl (moment (Suc i) s) = moment i s"
   148   shows "tl (moment (Suc i) s) = moment i s"
   149   using assms unfolding moment_def
   149   using assms unfolding moment_def rev_take
   150 sorry
   150 by (simp, metis Suc_diff_le diff_Suc_Suc drop_Suc tl_drop)
   151 
       
   152 
   151 
   153 lemma moment_plus:
   152 lemma moment_plus:
   154   assumes "Suc i \<le> length s"
   153   assumes "Suc i \<le> length s"
   155   shows "(moment (Suc i) s) = (hd (moment (Suc i) s)) # (moment i s)"
   154   shows "(moment (Suc i) s) = (hd (moment (Suc i) s)) # (moment i s)"
   156 proof -
   155 proof -