Skip to content

Insertion sort and its properties. A bug in MergeSort.agda is fixed. #2723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3607a89
add insertion sort and its properties. fixes a bug in MergeSort.agda
onestruggler May 30, 2025
1fe5083
minor editing to conform style requirement
onestruggler May 30, 2025
4d09168
minor editing: added one empty line
onestruggler May 30, 2025
4a02eb3
deleted a tab space in an empty line
onestruggler May 30, 2025
c28ca9e
remove unnecessary implicit argument as requested
onestruggler May 31, 2025
e256297
Update src/Data/List/Sort/InsertionSort.agda
onestruggler May 31, 2025
b352836
Update src/Data/List/Sort/InsertionSort.agda
onestruggler May 31, 2025
af20074
Update src/Data/List/Sort/InsertionSort.agda
onestruggler May 31, 2025
d9c401d
Update src/Data/List/Sort/InsertionSort.agda
onestruggler May 31, 2025
477b9ed
refactored 'insert-swap' as suggested and other suggested changes
onestruggler May 31, 2025
123e1d0
minor editing. getting loose on the 72 character wide requirement
onestruggler May 31, 2025
cef93fc
remove two unnecessary linebreaks
onestruggler May 31, 2025
97483fe
remove unnecessary linebreaks and parenthese
onestruggler May 31, 2025
2a7923e
aesthetic editing: proper variable renaming and with clause alignment
onestruggler May 31, 2025
11c4c74
rename 1 2 3 to be subscripted
onestruggler May 31, 2025
319e1c6
move properties to the file Properties.agda
onestruggler May 31, 2025
bd90301
minor editing
onestruggler May 31, 2025
37e848e
fix-whitespaces
onestruggler Jun 1, 2025
8af98e7
add CHANGELOG entry
onestruggler Jun 2, 2025
bdf30ce
fixes typos in CHANGLOG
onestruggler Jun 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Minor improvements
* Moved the concept `Irrelevant` of irrelevance (h-proposition) from `Relation.Nullary`
to its own dedicated module `Relation.Nullary.Irrelevant`.

* Permutaions in `Data.List.Sort.MergenSort` and `Data.List.Sort.Base` are now setoid based rather than propositional equality based only.

Deprecated modules
------------------

Expand Down Expand Up @@ -163,6 +165,10 @@ New modules

* `Data.List.Relation.Binary.Suffix.Propositional.Properties` showing the equivalence to right divisibility induced by the list monoid.

* `Data.List.Sort.InsertionSort.{agda|Base|Properties}` defines insertion sort and proves properties of insertion sort such as Sorted and Permutation properties.

* `Data.List.Sort.MergenSort.{agda|Base|Properties}` is a refactor of the previous `Data.List.Sort.MergenSort`.

* `Data.Sign.Show` to show a sign

Additions to existing modules
Expand Down