It appears the ChatGPT doesn't know OCaml very well... I just asked him to find the maximum value of an array of array... And he gave me this answer The problem is, the max function in the Array library of OCaml doesn't exist !!