Lin-Manuel Miranda may have announced that he’s leaving the Broadway show “Hamilton” on July 9. But Alexander Hamilton himself, as local museums and libraries are eager to remind people, is hardly leaving New York City.

Just in time for the Fourth of July, four institutions — the New-York Historical Society, the New York Public Library, the Museum of the City of New York and Columbia University — have dug deep into their archives and storage rooms to show off what they’ve got related to the country’s new favorite founder.

The resulting exhibitions feature, among other things, two copies of the sex-scandal-revealing Reynolds pamphlet, two first editions of the Federalist Papers, three copies of Washington’s farewell address (which Hamilton partly wrote) and two locks of Hamilton’s hair. If there is a duel to establish whose stash is the best, no one is admitting it.

“There’s enough Hamilton to go around,” said Thomas Lannon, the assistant director of manuscripts, archives and rare books at the New York Public Library, whose “Alexander Hamilton: Striver, Statesman, Scoundrel” runs through the end of the year. “Mostly, we’re amazed we have this stuff and want people to see it.”