WikiLeaks founder Julian Assange has offered to prove that Russia didn’t leak the e-mails of the Democratic National Committee last year. But he wants a deal — a pardon — for spilling the beans.

There is absolutely no reason that President Trump shouldn’t take him up on the offer.

WikiLeaks published hundreds of thousands of DNC e-mails, as well as ones from the computer of campaign head John Podesta and others. If the Russians didn’t hack the DNC computers and release the e-mails, then someone else did.

And the best candidate for the role of leaker is someone inside the DNC — perhaps a supporter of Bernie Sanders who felt his candidate wasn’t getting a fair shake.

This would change history and render moot any investigation of the Trump administration, except where it pertains to the much less serious allegation of obstruction of justice. I say lesser allegation, because it would involve obstruction of justice for a crime (the Russian hacking) that didn’t happen.

Here’s my best educated guess on the whole thing: A very good source of mine says the Russians stole Democratic presidential candidate Hillary Clinton’s e-mails, but never released them, while someone inside the DNC was responsible for making the e-mails of Podesta and other Democrats public.

What’s the bigger effect of all this? Well, all else being equal — and it never is in the Trump administration — this would remove a cloud over the president and strengthen his hand in tax reform, ObamaCare repeal and lots of other things.

The financial markets would like that.

Trump should take Assange up on his offer.