Skip to content

Prove allocator axioms (dlmalloc, Vec::new, dealloc) #158

Description

@Isabelle9999

Three axioms in the merge-sort proof #157 follow the standard convention of axiomatizing unverified C library code (same pattern as Iris-MSWasm's wp_segalloc, CompCert's malloc spec):

  • dlmalloc_alloc_spec — malloc wrapper
  • func2_vec_init — Vec::new (calls malloc internally)
  • func4_dealloc — free/dealloc

These are currently in codelib/CodeLib/SepLogic/AllocSpec.lean.

Eventually these should be replaced with theorems that verify
the actual dlmalloc implementation. This requires stepping through
the compiled C allocator code .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions