diff options
author | jadep <jade.philipoom@gmail.com> | 2016-06-14 15:21:35 -0400 |
---|---|---|
committer | jadep <jade.philipoom@gmail.com> | 2016-06-14 15:21:35 -0400 |
commit | 44a9f78bb082dbc5275f7d4ae07501dc7cba8a07 (patch) | |
tree | c6290bd96185d97a7727e239606c68cf0f08951f /src/BaseSystemProofs.v | |
parent | 7def727b8acdf6e65df0fca13802970f8c416832 (diff) |
Finished admits for canonicalization proofs.
Diffstat (limited to 'src/BaseSystemProofs.v')
-rw-r--r-- | src/BaseSystemProofs.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/BaseSystemProofs.v b/src/BaseSystemProofs.v index ab56cb711..a2ebb7b41 100644 --- a/src/BaseSystemProofs.v +++ b/src/BaseSystemProofs.v @@ -130,6 +130,18 @@ Section BaseSystemProofs. Qed. Hint Rewrite zeros_app0. + Lemma nth_default_zeros : forall n i, nth_default 0 (BaseSystem.zeros n) i = 0. + Proof. + induction n; intros; [ cbv [BaseSystem.zeros]; apply nth_default_nil | ]. + rewrite <-zeros_app0, nth_default_app. + rewrite length_zeros. + destruct (lt_dec i n); auto. + destruct (eq_nat_dec i n); subst. + + rewrite Nat.sub_diag; apply nth_default_cons. + + apply nth_default_out_of_bounds. + cbv [length]; omega. + Qed. + Lemma rev_zeros : forall n, rev (zeros n) = zeros n. Proof. induction n; boring. |