Coq implementation of 4-gram graph