Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Spies
lambda-rust
Commits
876c6af5
Commit
876c6af5
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
explain why we prove Cell: Copy
parent
8753a224
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/typing/lib/cell.v
+4
-0
4 additions, 0 deletions
theories/typing/lib/cell.v
with
4 additions
and
0 deletions
theories/typing/lib/cell.v
+
4
−
0
View file @
876c6af5
...
...
@@ -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
)
.
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
:
Copy
ty
→
Copy
(
cell
ty
)
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment