Section CommonTheorems.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Proof using.
unfold uniqueIndices.
eauto using NoDup_map_elim.
Qed.

Lemma sorted_cons :
forall xs a,
sorted xs ->
(forall a', In a' xs -> eIndex a > eIndex a' /\ eTerm a >= eTerm a') ->
sorted (a :: xs).