DETROIT -- DETROIT (AP) — The city of Detroit for months has disclosed the awful condition of its finances. Now it's up to a judge to determine if the largest public bankruptcy in U.S. history really can go forward.

An unusual trial starts Wednesday, pitting Detroit's emergency manager and his legal team against unions and pension funds that claim the city isn't qualified to scrub its books clean under Chapter 9 bankruptcy.

A city isn't eligible for a bankruptcy makeover unless it shows that key steps were met, especially good-faith talks with creditors earlier this year. It's a critical decision for Judge Steven Rhodes: If Detroit clears the hurdle, the case then would quickly turn to how to solve at least $18 billion in debt and get city government off the ropes.

"It's a crucial point in the case," said lawyer Chuck Tatelbaum, a bankruptcy expert in Fort Lauderdale, Fla. "There will be others, but this is the go or no-go. ... If there was ever a poster child for what Congress decided when they enacted Chapter 9, it's for a city like this."

Jim Spiotto, a bankruptcy expert in Chicago, said it's "virtually impossible" to argue that Detroit is solvent.

"They're not paying their debts," he said. "Look at their blighted areas. Look at their services."

Nonetheless, unions and pension funds are challenging Detroit on the eligibility question. They claim emergency manager Kevyn Orr, who acquired nearly unfettered control over city finances following his appointment by Michigan Gov. Rick Snyder, was not genuinely interested in negotiating when they met with his team in June and July. Orr insists pension funds are short $3.5 billion and health coverage also needs to be overhauled.

Evidence will show that Orr "planned to file bankruptcy long before the purported negotiations had run their course, confirming that the 'negotiations' were no more than a check-the-box exercise on the way to the courthouse," Babette Ceccotti, an attorney for the United Auto Workers, said in a court filing.

Earle Erman, attorney for Detroit's public safety unions, said the city has cut wages and changed health care benefits without across-the-table talks. Lawyer Sharon Levine, who's representing the American Federation of State, County and Municipal Employees, said the city spent months "mapping out its path to Chapter 9," not looking for compromises that could keep Detroit out of bankruptcy.

In response, however, attorneys for the city said a June 14 meeting and subsequent sessions with creditors were well-intended but fruitless. A bankruptcy filing was being prepared, they acknowledged, but "never set in stone."

Spiotto said the judge will have much discretion to determine whether the city has met its "good-faith" burden.

"I don't think courts require perfection," he said. "Good faith is not measured solely by, 'Did they offer what we want?' It's about providing opportunity."

The trial in front of Rhodes is expected to last several days, with testimony from Orr, Police Chief James Craig, financial consultants and, possibly, the governor. It will be an autopsy on what Snyder has called decades of ruinous financial decisions in Detroit combined with an exodus of people — the population has dropped to 700,000 from 1.8 million — and other social and economic factors.

"The city's restructuring must provide a foundation for the city to begin to provide basic, essential services to its residents in a reliable fashion," Orr said in July when he took Detroit into bankruptcy. "Without this, the city's death spiral ... will continue."

Orr's team estimates that 65 percent of Detroit's annual revenue would be eaten up in debt payments by 2017 without an overhaul in bankruptcy court. Miles away from court, countless streets are bleak: By last spring, at least 16,700 structures were inspected and classified as dangerous. Thousands of streetlights are dark.

Private donors are replacing ambulances that limp around with more than 200,000 miles. The fire department has just one mechanic for every 39 fire vehicles. The number of Detroit parks has dropped to about 60 in recent years from more than 300, due to a lack of money.

University of Michigan law professor John Pottow said unions and pension funds are aggressively challenging the city because they lose leverage if the judge finds the Chapter 9 filing was proper. Detroit would take the lead in coming up with a plan to bring the city out of bankruptcy, putting pensions at risk along with billions owed to other creditors.

"It makes denial and rationalization harder for people who want this to go away," Pottow said.

___

Follow Ed White at http://twitter.com/edwhiteap .

Loading Slideshow...
  • The Caesars Windsor Casino stands in contrast to an abandoned warehouse in Detroit. (Photo by Bonnie Jo Mount/The Washington Post via Getty Images)

  • A tree stump sits among the ruins of the Packard Automotive Plant, a 35 acre site where luxury cars were manufactured until the 1950s on May 2, 2013 in Detroit. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • Graffiti covers an abandoned building February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • In a photo shot on Tuesday, Feb. 14, 2012, a dog looks out from behind a wall in an abandoned home in Detroit. (AP Photo/Carlos Osorio)

  • Abandoned houses are painted orange as part of Object Orange: Detroit, Disneyland, Demolition, are located off of the Davison Freeway service drive in Highland Park, Michigan on Thursday, May 18, 2006. (Photo by Jeff Kowalsky/Bloomberg via Getty Images)

  • Residents that live in Detroit's east end came out of their homes to watch the third abandoned building fire of the day at the corner of Frederick and Chene. (Photo by Lucas Oleniuk/Toronto Star via Getty Images)

  • In a July 31, 2012 photo, a boat is dumped in a field in east Detroit. Abandoned lots, alleys and neglected parks in Detroit used to be a favorite destination for discarded tires and trash. But over the past few months they have become dumping grounds for the dead. At least seven bodies have been found in some of the most desolated haunts in a half-empty city. (AP Photo/Carlos Osorio)

  • A City of Detroit fire station that was recently closed is seen February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • Part of the Brewster-Douglass housing project site is shown in Detroit, Friday, March 18, 2011. (AP Photo/Paul Sancya)

  • The abandoned Detroit Public Schools book depository

  • Detail of unused books left to rot at the abandoned Detroit Public Schools book depository.

  • The view from the inside of the abandoned Fisher Body Plant in Detroit.

  • Graffiti covers a crumbling building February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • The General Motors (GM) world headquarters is seen February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • Detroit firefighters arrived on the scene of an abandoned dwelling fire at 2645/51 Frederick Street in Detroit's east end. (Photo by Lucas Oleniuk/Toronto Star via Getty Images)

  • A sign advertising building rates is seen on an abandoned building on February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • An abandoned boat filled with trash sits on Conant Street in Detroit, Michigan, on Sunday, April 9, 2006. Detroit eliminated bulk trash pick up three months ago due to budget cuts. (Photo by Jeff Kowalsky/Bloomberg via Getty Images)

  • A man walks past an abandoned house that is painted orange as part of Object Orange: Detroit, Disneyland, Demolition, located off of the Davison Freeway service drive in Highland Park, Michigan on Thursday, May 18, 2006. (Photo by Jeff Kowalsky/Bloomberg via Getty Images)

  • Barbed wire blocks the entrance of the abandoned Michigan Central Station on May 2, 2013 in Detroit, Michigan. The station was opened in 1913, closed in 1988, and has fallen into disrepair since. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • Steam rises from a manhole at dawn among abandoned buildings and factories along East Warren Avenue on May 2, 2013 in Detroit, Michigan. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • A man walks past the abandoned East Grand Boulevard Methodist Chruch on May 2, 2013 in Detroit, Michigan. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • Two abandoned apartment buildings burn on Waverly Street in the declining Detroit enclave of Highland Park. Last year the Detroit Fire Department received 27,000 calls. (Photo by Lucas Oleniuk/Toronto Star via Getty Images)

  • Michigan Central Stationis Detroit's most famous ruin, with the train station last open in 1988. Designed by the same architects as New York's Grand Central Station.

  • An interior shot of the massive Michigan Central Station.

  • A worker measures the former Detroit Fire Department Ladder No. 10 firehouse on Mt. Elliott in Detroit, Wednesday, May 8, 2013. Detroit plans to sell seven unused firehouses and a renovated but long-vacant police facility that once housed horses as part of an effort to raise money and encourage redevelopment. (AP Photo/Paul Sancya)

  • A July 31, 2012 photo shows a memorial to two killed teens whose decomposing bodies were found July 27 in a field in east Detroit. Abandoned lots, alleys and neglected parks in Detroit used to be a favorite destination for discarded tires and trash. But over the past few months they have become dumping grounds for the dead. At least seven bodies have been found in some of the most desolated haunts in a half-empty city. (AP Photo/Carlos Osorio)

  • This Oct. 24, 2012 file photo shows a graffiti-marked abandoned home north of downtown Detroit, in background. (AP Photo/Carlos Osorio, File)

  • Graffiti covers an abandoned building at the former Belle Isle Safari Zoo February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • In this Dec. 11, 2008 file photo, pedestrians walk by the abandoned Packard plant in Detroit. (AP Photo/Carlos Osorio, File)

  • Members of the Detroit Fire Department exit after putting out a fire in an abandoned house in Detroit on Thursday, Feb. 21, 2013. Photographer: Jeff Kowalsky/Bloomberg via Getty Images

  • Shuttered Packard motor car company plant in Detroit.

  • In this Oct. 24, 2012, photo, a broken streetlight lies on a sidewalk east of downtown Detroit. (AP Photo/Carlos Osorio)

  • The abandoned Harbor Light Center, in Detroit, Michigan on July 21, 2012. (Photo By Raymond Boyd/Michael Ochs Archives/Getty Images)

  • The abandoned Hotel Eddystone, in Detroit, Michigan on July 21, 2012. (Photo By Raymond Boyd/Michael Ochs Archives/Getty Images)

  • An abandoned home is seen on February 24, 2013 in Detroit, Michigan. (Photo by J.D. Pooley/Getty Images)

  • The abandoned First Unitarian Church, in Detroit, Michigan on July 21, 2012. (Photo By Raymond Boyd/Michael Ochs Archives/Getty Images)

  • The abandoned Detroit Public Schools book depository.

  • The back of an abandoned building facing, in Detroit, Michigan on July 21, 2012. (Photo By Raymond Boyd/Michael Ochs Archives/Getty Images)

  • Abandoned Detroit Central Depot shot from street.

  • This Oct. 24, 2012, photo shows a broken streetlight base on a sidewalk east of downtown Detroit. When the World Series was broadcast that week, television viewers saw vibrant crowds and skyline shots of the city. Yet beyond the hot dogs and home runs, Detroit is struggling to cross home plate. (AP Photo/Carlos Osorio)

  • The General Motors world headquarters building is shown near an abandoned building March 30, 2009 in Detroit. (Photo by Bill Pugliano/Getty Images)

  • Exterior of abandoned house in Detroit, a familiar sight in many neighborhoods.

  • Detroit Abandoned Buildings

    The back of the abandoned Michigan Central Station on May 1, 2013 in Detroit. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • An abandoned home in Detroit.

  • An abandoned building in Detroit.

  • In a July 31, 2012 photo, a trashed strewn street is seen in east Detroit. Abandoned lots, alleys and neglected parks in Detroit used to be a favorite destination for discarded tires and trash. But over the past few months they have become dumping grounds for the dead. At least seven bodies have been found in some of the most desolated haunts in a half-empty city. (AP Photo/Carlos Osorio)

  • Graffiti decorates the ruins of the Packard Automotive Plant, a 35 acre site where luxury cars were manufactured until the 1950s on May 2, 2013 in Detroit, Michigan. Sitting on the East side of Detroit, the former automotive plant is now a site for scavengers, urban explorers and graffiti artists. (Photo by Ann Hermes/The Christian Science Monitor via Getty Images)

  • The abandoned Fisher Body Plant.

  • The Fisher Body Plant in Detroit, which is abandoned.

  • Part of the Brewster-Douglass housing project site is shown in Detroit, Friday, March 18, 2011. (AP Photo/Paul Sancya)

  • Aerial photograph of the Michigan Central Station's Beaux-Arts facade in Detroit, Michigan.