lengyijun / MergeSort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MergeSort

Agda : 2.6.2.1

agda-stdlib-1.7.1

coq 8.15.1

4 way to prove correctness 1 way to prove permutation

Definition of merge and proof of correctness

Based on different definition of merge, we have multiply way to prove sorted property.

MergeSort.agda : single definition, single correctness

single-mutual.agda : single definition, mutual correctness

mutual-mutual.agda : mutual definition, mutual correctness

AgdaCoq
use `with` to
define merge
define merge
mutually
Fixpointfunction
nested
recursion
??oktodo
mutual
recursion
single-mutualmutual-mutual-todo
length + lengthlength-decreasemutual-length-decreaseoktodo
other tacticwith--functional induction

Proof of permutation

Only one way avaiable.

Proof of time complexity

TODO

About


Languages

Language:Coq 75.8%Language:Agda 23.4%Language:C 0.4%Language:Vue 0.3%Language:Makefile 0.1%