Update
This commit is contained in:
parent
84a71a9e9d
commit
0c970f9666
16
thue-morse.v
16
thue-morse.v
@ -863,16 +863,14 @@ Proof.
|
|||||||
Qed.
|
Qed.
|
||||||
|
|
||||||
Lemma tm_step_next_range' :
|
Lemma tm_step_next_range' :
|
||||||
forall (n k : nat) (l1 l2 : list bool) (b : bool),
|
forall (n k : nat) (b : bool),
|
||||||
tm_step n = l1 ++ b :: l2
|
nth_error (tm_step n) k = Some b -> nth_error (tm_step (S n)) k = Some b.
|
||||||
-> nth_error (tm_step (n + k)) (length l1) = Some b.
|
|
||||||
Proof.
|
Proof.
|
||||||
intros n k l1 l2 b. intros H.
|
intros n k b. intros H. assert (I := H).
|
||||||
induction k.
|
apply nth_error_split in H. destruct H. destruct H. inversion H.
|
||||||
- rewrite Nat.add_0_r. generalize H. apply list_concat_to_pos.
|
rewrite tm_build. rewrite nth_error_app1. apply I.
|
||||||
- rewrite Nat.add_succ_r.
|
apply list_app_length_lt in H0. rewrite H1 in H0. apply H0.
|
||||||
simpl.
|
Qed.
|
||||||
apply nth_error_split in IHk.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user