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

explain why we prove Cell: Copy

parent 8753a224
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,10 @@ Section cell. ...@@ -49,6 +49,10 @@ Section cell.
Lemma cell_proper' E L ty1 ty2 : eqtype E L ty1 ty2 eqtype E L (cell ty1) (cell ty2). Lemma cell_proper' E L ty1 ty2 : eqtype E L ty1 ty2 eqtype E L (cell ty1) (cell ty2).
Proof. eapply cell_proper. Qed. Proof. eapply cell_proper. Qed.
(* The real [Cell] in Rust is never [Copy], but that is mostly for reasons of
ergonomics -- it is widely agreed that it would be sound for [Cell] to be
[Copy]. [Cell] is also rather unique as an interior mutable [Copy] type, so
proving this is a good benchmark. *)
Global Instance cell_copy ty : Global Instance cell_copy ty :
Copy ty Copy (cell ty). Copy ty Copy (cell ty).
Proof. Proof.
......
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