Persistent queues — independent controls
Lax755887.PersistentQueueControls · concepts/Lax755887/PersistentQueueControls.lean · lax-755887
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
These statements use only the background axioms. They record the actual behavior or the valid local calculation, independently of the unchecked contract.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax755887.PersistentQueue |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Persistent queues — independent controls |
| 6 | type: theorem |
| 7 | --- |
| 8 | These statements use only the background axioms. They record the actual behavior or the valid local calculation, independently of the unchecked contract. |
| 9 | -/ |
| 10 | |
| 11 | namespace Lax755887.PersistentQueueControls |
| 12 | |
| 13 | open Lax755887.PersistentQueue |
| 14 | |
| 15 | axiom dequeue_charge (n : ℕ) : amortized (dequeue n) = 1 |
| 16 | |
| 17 | axiom actual_work (n : ℕ) : |
| 18 | totalWork (List.replicate (n + 1) (dequeue n)) = (n + 1) ^ 2 |
| 19 | |
| 20 | end Lax755887.PersistentQueueControls |
| 21 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments