Sketch of J arrays and function rank in Agda