Chris Brown Shows Up to Court with Rihanna

Chris Brown is about to arrive to the L.A. Courthouse ... where a judge is expected to grill the singer over allegations he lied about completing his community service ... and things could get heated.

The D.A. wants the court to find Chris in violation of his probation stemming from the Rihanna beating case -- which required the singer to complete 180 days of community service.

We broke the story ... prosecutors believe Chris participated in a scheme to DUPE the court by getting Virginia officials to say Chris completed service at a day care center that he never actually performed.

2:13 PM PT -- The judge ordered Brown to meet with his probation officer in Los Angeles within 48 hours to speak with the officer about the allegations that he fabricated his community service.

The judge said he needed more time to review all of the evidence presented by the D.A.. He also wants to hear from the P.O., after he speaks with Chris. The next hearing has been scheduled for April 5.

2:11 PM PT -- Rihanna and Chris Brown just walked out of the courtroom together arm in arm. One person at the courthouse tells us Brown looked "dejected" ... and Rihanna was trying to smile and cheer him up.

2:05 PM PT -- Rihanna is now inside the courtroom ... seated in the gallery behind Chris and his legal team.

1:59 PM PT -- CHRIS BROWN arrived to the courthouse WITH RIHANNA by his side -- the woman he was convicted of BEATING in 2009 ... and the reason he's on probation in the first place.

Sources at the courthouse tell us Rihanna blew Chris a kiss and said some supportive words to him before he entered the courtroom.

Brown's mother is also at the court.

1:56 PM PT -- Chris is wearing grey slacks with NO BELT, a white shirt, brown tie and a sport coat.

1:50 PM PT -- Brown just arrived to the courthouse with his lawyer Mark Geragos.