Section AppliedEntriesMonotonicProof.
Context {orig_base_params : BaseParams}.
Context {one_node_params : OneNodeParams orig_base_params}.
Context {raft_params : RaftParams orig_base_params}.
Context {si : sorted_interface}.
Context {lmi : log_matching_interface}.
Context {uii : unique_indices_interface}.
Context {smsi : state_machine_safety_interface}.
Context {misi : max_index_sanity_interface}.
Context {crci : commit_recorded_committed_interface}.
Context {lci : leader_completeness_interface}.
Context {lacimi : lastApplied_commitIndex_match_interface}.

Lemma findAtIndex_max_thing :
forall net h e i,
raft_intermediate_reachable net ->
In e (log (nwState net h)) ->
eIndex e > i ->
1 <= i ->
exists e',
findAtIndex (log (nwState net h)) i = Some e'.