I read it somewhere that Ravana's great-grandfather was Brahma, is that true? Are there any valid proof that proves this fact? Heard this for the first time. Got to know about this while researching about 'Shiva Tandava Stotram' which was written and sung by Ravana.
Yes, Ravana's great-grandfather is Brahma. Ravana's father is he sage Vishravas, whose father is the sage Pulastya, as described in this chapter of the Srimad Bhagavatam:
Pulastya begot in his wife, Havirbhū, one son of the name Agastya, who in his next birth became Dahrāgni. Besides him, Pulastya begot another very great and saintly son, whose name was Viśravā. Viśravā had two wives. The first wife was Iḍaviḍā, from whom Kuvera, the master of all Yakṣas, was born, and the next wife was named Keśinī, from whom three sons were born — Rāvaṇa, Kumbhakarṇa and Vibhīṣaṇa.
And Pulastya's father is Brahma, as described in another chapter of the Srimad Bhagavatam:
Brahmā, who was empowered by the Supreme Personality of Godhead, thought of generating living entities and begot ten sons for the extension of the generations. Marīci, Atri, Aṅgirā, Pulastya, Pulaha, Kratu, Bhṛgu, Vasiṣṭha, Dakṣa, and the tenth son, Nārada, were thus born. Nārada was born from the deliberation of Brahmā, which is the best part of the body. Vasiṣṭha was born from his breathing, Dakṣa from a thumb, Bhṛgu from his touch, and Kratu from his hand. Pulastya was generated from the ears, Aṅgirā from the mouth, Atri from the eyes, Marīci from the mind and Pulaha from the navel of Brahmā.