Skip to content

Expand Slice std lib more #9

Description

@nagyors

Current slice support is partial (slice_index_range is explicitly disabled with a TODO).

  • push / pop — dynamic length mutation with capacity reasoning
  • swap — in-place element exchange (already verified in Showcase but not stdlib)
  • split_at / split_at_mut — slice partitioning; enables divide-and-conquer proofs
  • contains — membership check (exists for Range, missing for slices)
  • copy_from_slice — bulk copy with length-equality precondition
  • reverse — in-place reversal (linked list reversal exists, not for slices)
  • sort / sort_by — sorting with comparison specs (high-value proof target)
  • fill — bulk initialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions