Update
This commit is contained in:
parent
7c0b8de103
commit
b0e15fc10a
16
thue-morse.v
16
thue-morse.v
@ -830,7 +830,21 @@ Proof.
|
||||
reflexivity.
|
||||
Qed.
|
||||
|
||||
Lemma tm_step_repunit : forall (n : nat),
|
||||
|
||||
Lemma tm_step_single_bit_index : forall (n : nat),
|
||||
nth_error (tm_step (S n)) (2^n) = Some true.
|
||||
Proof.
|
||||
intros n.
|
||||
induction n.
|
||||
- simpl. reflexivity.
|
||||
- rewrite tm_build.
|
||||
rewrite nth_error_app2. rewrite tm_size_power2. rewrite Nat.sub_diag.
|
||||
replace (true) with (negb false). apply map_nth_error.
|
||||
rewrite tm_step_head_1. simpl. reflexivity.
|
||||
reflexivity. rewrite tm_size_power2. easy.
|
||||
Qed.
|
||||
|
||||
Lemma tm_step_repunit_index : forall (n : nat),
|
||||
nth_error (tm_step n) (2^n - 1) = Some (odd n).
|
||||
Proof.
|
||||
intros n.
|
||||
|
Loading…
Reference in New Issue
Block a user