diff options
author | Son Ho | 2023-10-13 00:40:37 +0200 |
---|---|---|
committer | Son Ho | 2023-10-13 00:40:37 +0200 |
commit | 0f0e4be7dc746e2676db33f850bbeddf239eaec8 (patch) | |
tree | ea8ab9462d73f493bafeed5b914cb05514eddaa2 /backends/coq | |
parent | af78286d801b26bf7a70b8815619591d48245cb8 (diff) |
Add sup
Diffstat (limited to 'backends/coq')
-rw-r--r-- | backends/coq/Primitives.v | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/coq/Primitives.v b/backends/coq/Primitives.v index 8d6c9c8d..b92eb967 100644 --- a/backends/coq/Primitives.v +++ b/backends/coq/Primitives.v @@ -433,6 +433,9 @@ Qed. (* TODO: finish the definitions *) Axiom mk_array : forall (T : Type) (n : usize) (l : list T), array T n. +(* For initialization *) +Axiom array_repeat : forall {T : Type} (n : usize) (x : T), array T n. + Axiom array_index_shared : forall (T : Type) (n : usize) (x : array T n) (i : usize), result T. Axiom array_index_mut_fwd : forall (T : Type) (n : usize) (x : array T n) (i : usize), result T. Axiom array_index_mut_back : forall (T : Type) (n : usize) (x : array T n) (i : usize) (nx : T), result (array T n). |