Skip to content

Commit

Permalink
Sorting algorithms (#572)
Browse files Browse the repository at this point in the history
In these pull request, I have defined some sorting algorithms. To do so,
I have :
- Defined new concepts in order theory: decidable preorders, decidable
posets, total decidable preorders (I have proved that for every `X
: total-decidable-preorder` and every `x y : X` the type `x \leq y +
\neg (x \= y) \times(y \leq x) ` is inhabited) and total decidable
posets (I have proved that the previous type is a proposition)
- Defined what is a permutation of a standard finite type and what is a
permutation of a vector and of a list
 - Defined the proposition of being sorted for a list and for a vector
- Defined what is means for a function on vectors to be a sort (It is a
permuting vector, and the result is sorted)
 - Defined Quick sort and sort by insertion
 - Proved that sort by insertion is a sort
  • Loading branch information
VictorBlanchi committed May 3, 2023
1 parent a5d33c8 commit ce7410a
Show file tree
Hide file tree
Showing 25 changed files with 2,506 additions and 386 deletions.
2 changes: 2 additions & 0 deletions src/finite-group-theory.lagda.md
Expand Up @@ -16,9 +16,11 @@ open import finite-group-theory.finite-type-groups public
open import finite-group-theory.groups-of-order-2 public
open import finite-group-theory.orbits-permutations public
open import finite-group-theory.permutations public
open import finite-group-theory.permutations-standard-finite-types public
open import finite-group-theory.sign-homomorphism public
open import finite-group-theory.simpson-delooping-sign-homomorphism public
open import finite-group-theory.subgroups-finite-groups public
open import finite-group-theory.tetrahedra-in-3-space public
open import finite-group-theory.transpositions public
open import finite-group-theory.transpositions-standard-finite-types public
```

0 comments on commit ce7410a

Please sign in to comment.