While this submission is a draft, it cannot be used by other submissions.

Persistent queues — unchecked contract

Lax755887.PersistentQueueContract · concepts/Lax755887/PersistentQueueContract.lean · lax-755887

open

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Theorem

    Repeated calls may reuse one queue and spend its potential more than once. The telescoping contract deliberately omits compatibility of adjacent potentials.

    This is an intentionally false contract, retained as an open proof obligation.

    Concept map
    2 concepts
    100%
    Open claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    No proof in the archive yet — this claim is open.

    Lean source view on GitHub

    1import Lax755887.PersistentQueue
    2
    3/-!
    4---
    5title: Persistent queues — unchecked contract
    6type: theorem
    7---
    8Repeated calls may reuse one queue and spend its potential more than once. The telescoping contract deliberately omits compatibility of adjacent potentials.
    9
    10This is an intentionally false contract, retained as an open proof obligation.
    11-/
    12
    13namespace Lax755887.PersistentQueueContract
    14
    15open Lax755887.PersistentQueue
    16
    17axiom telescoping (first : Charge) (rest : List Charge) :
    18 (totalWork (first :: rest) : ℤ) ≤
    19 ((first :: rest).map amortized).sum + first.before
    20
    21end Lax755887.PersistentQueueContract
    22
    Builds on
    Used by

    none

    From Mathlib

    none

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…