Charvaka, originally known as Lokāyata and Bṛhaspatya, is the ancient school of Indian materialism. Charvaka holds direct perception, empiricism, and conditional inference as proper sources of knowledge, embraces philosophical skepticism and rejects Vedas, Vedic ritualism, and supernaturalism.
Since none of the means of knowing were found to be worthy to establish the invariable connection between middle term and predicate, Charvakas concluded that the inference could not be used to ascertain metaphysical truths. Thus, to Charvakas, the step which the mind takes from the knowledge of something to infer the knowledge of something else could be accounted for by its being based on a former perception or by its being in error. Cases where inference was justified by the result were seen only to be mere coincidences.