Prototyping a query compiler using Coq (experience report)