Skip to content
Snippets Groups Projects
Commit 59b248ed authored by Ralf Jung's avatar Ralf Jung
Browse files

adjust variable names and remove redundant scope

parent 8d8a0f0a
No related branches found
No related tags found
No related merge requests found
...@@ -73,8 +73,8 @@ Section seq. ...@@ -73,8 +73,8 @@ Section seq.
by rewrite IH, Nat.add_succ_r. by rewrite IH, Nat.add_succ_r.
Qed. Qed.
Lemma elem_of_seq start sz x : Lemma elem_of_seq j n k :
x seq start sz (start x < start + sz)%nat. k seq j n j k < j + n.
Proof. rewrite elem_of_list_In, in_seq. done. Qed. Proof. rewrite elem_of_list_In, in_seq. done. Qed.
Lemma Forall_seq (P : nat Prop) i n : Lemma Forall_seq (P : nat Prop) i n :
...@@ -156,13 +156,13 @@ Section seqZ. ...@@ -156,13 +156,13 @@ Section seqZ.
intros. simpl. lia. intros. simpl. lia.
Qed. Qed.
Lemma elem_of_seqZ start sz x : Lemma elem_of_seqZ m n k :
x seqZ start sz start x < start + sz. k seqZ m n m k < m + n.
Proof. Proof.
rewrite elem_of_list_lookup. rewrite elem_of_list_lookup.
setoid_rewrite lookup_seqZ. split; intros. setoid_rewrite lookup_seqZ. split; intros.
- destruct H as [i ?]. lia. - destruct H as [??]. lia.
- exists (Z.to_nat (x - start)). lia. - exists (Z.to_nat (k - m)). lia.
Qed. Qed.
Lemma Forall_seqZ (P : Z Prop) m n : Lemma Forall_seqZ (P : Z Prop) m n :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment