March 16, 2016 | 12:13am

Bill de Blasio must be living in an alternate reality

By Michael Goodwin

William Miller
Mayor Bill de Blasio

As usual, Mayor Putz doesn’t just get it wrong. He gets it completely backward.

Even as evidence mounts that his policies are leading to a decline in New York’s quality of life, City Hall is still chasing unicorns and promising that rainbows will appear any day now. The reality gap is captured by colliding facts: The mayor is making an expensive push for vastly expanded social programs while city cops are singing the blues about his attitude toward them and law enforcement.

Most troubling is The Post report that NYPD officers hate their jobs and the mayor in nearly equal measure. An overwhelming 96 percent of the 6,000 cops who responded to their union’s poll have unfavorable opinions of de Blasio, with 88 percent holding “very unfavorable” opinions of him.

Nearly all 6,000 believe de Blasio has created an environment where criminals feel emboldened and the officers themselves feel less safe. And, in a stunning validation of the “Ferguson effect” that is leading to soaring crime in many American cities, 97 percent of the NYPD cops taking part in the survey say they are less likely to take enforcement action now, fearing lawsuits or complaints.

Predictably, the mayor did what he always does with criticism: shoot the messenger. He accused the union of complaining too much, saying it “should be focused on what’s productive.”

In other words, say only nice things about me!

The findings throw cold water on City Hall’s claim that the mayor put his rocky start with cops in the rearview mirror. While it’s true he’s toned down the anti-police rhetoric, the survey shows there remains a deeply corrosive impact.

The finding that most cops feel reluctant to enforce the law is shocking only to those who are clueless about police work. Added layers of second-guessers from the federal courts and the City Council have understandably added to cops’ hesitancy. If it hadn’t, they wouldn’t be human. (Skeptics who doubt the online poll because only 25 percent of uniformed officers participated should remember that de Blasio was elected in 2013 with the support of only 18 percent of eligible voters.)