Alam Khan was indeed an uncle of Ibrahim Lodi and a pretender to the throne of Delhi, hence why option 1 is correct. Ibrahim Lodi was the last of the Lodi dynasty, rulers of the Delhi Sultanate. Being a pretender, Alam Khan held an aspiration for power and thus invited Babar to invade India, as a means to potentially overthrow Ibrahim Lodi and seize power.
Option 2 proposes that Alam Khan was a cousin of Ibrahim Lodi who was expelled and badly treated. This is incorrect as Alam Khan was his uncle, not his cousin.
Option 3 suggests that Alam Khan was the father of Dilawar Khan who faced inhumane treatment from Ibrahim Lodi. However, historical records do not substantiate that Alam Khan was Dilawar Khan`s father.
Option 4 implies that Alam Khan was an official in Punjab who was discontented with Ibrahim Lodi`s treatment of his tribe. This does not align with the historical evidence which indicates that Alam Khan was a close relative of Ibrahim Lodi, rather than a high-ranking official in Punjab.