The chemical examination of cerebrospinal fluid mainly examines proteins, chlorides, glucose, and pH to provide a basis for the diagnosis of diseases.