Skip to content

feat(Algorithms/Lean/MergeSort): relate mergeSort to List.mergeSort#605

Open
exekis wants to merge 1 commit into
leanprover:mainfrom
exekis:feat/mergesort-mathlib-bridge
Open

feat(Algorithms/Lean/MergeSort): relate mergeSort to List.mergeSort#605
exekis wants to merge 1 commit into
leanprover:mainfrom
exekis:feat/mergesort-mathlib-bridge

Conversation

@exekis
Copy link
Copy Markdown

@exekis exekis commented May 28, 2026

This adds a theorem showing that CSLib's timed mergeSort returns the same list as Mathlib's List.mergeSort for the linear order comparator.

The theorem gives downstream users a bridge from the timed algorithm to existing List.mergeSort facts, while keeping the PR deliberately narrower than the open stability issue.

Validation:

  • lake build Cslib.Algorithms.Lean.MergeSort.MergeSort
  • lake build --wfail --iofail
  • lake exe mk_all --check --module
  • lake test
  • lake lint
  • lake exe lint-style

@exekis exekis force-pushed the feat/mergesort-mathlib-bridge branch from 4fd14a6 to 2e8a7b5 Compare May 28, 2026 16:57
@exekis exekis marked this pull request as ready for review May 28, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant