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 .
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 wrapperfunc2_vec_init— Vec::new (calls malloc internally)func4_dealloc— free/deallocThese 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 .