A woman who was deceived into an intimate relationship by an undercover police officer has gone to court to try to compel the state to prosecute him.

The environmental activist is one of a number of women deceived into intimate relationships by undercover officers. The Crown Prosecution Service has so far decided not to prosecute any of them.

The activist, known as Monica as she has been granted anonymity, is the first woman to take legal action in an attempt to overturn the CPS’s stance. She had what she called an “intense” six-month relationship with Jim Boyling, the undercover officer who had concealed his true identity from her. Boyling created a fake persona to infiltrate environmental and animal rights groups for five years.

Monica said: “If I had known that Boyling was a serving Metropolitan police officer – paid to deceive, control and manipulate the environmental direct action group of which I was part – I could never have consented to sexual intimacy with such an individual.”

In the high court in London, her QC, Phillippa Kaufmann, said this was a “truly exceptional” case. “This was not a case in which Boyling lied about a few personal attributes such as his wealth or connections. His deception was one sponsored by the state that went to every aspect of his identity apart from his body.

“Both his past and present was entirely fabricated, carefully crafted to ensure that his true identity would not be revealed to those in the groups and movements he infiltrated.”

Kaufmann said the CPS decision not to prosecute Boyling for sexual offences or misconduct in public office should be overturned and reconsidered by Max Hill, the director of public prosecutions. “The critical question is whether, because of the deception practised upon her, she did in fact consent to have sexual intercourse with Jim Boyling,” she said.

Gareth Patterson, QC for the DPP, said the decision not to prosecute was correct. Boyling’s “deception as to name and occupation does not of itself prove that [Monica] did not consent. The deception by [Boyling] was not carried out in order to obtain sexual intercourse, but rather was a mandated requirement of his employment as an undercover officer … acting in the public interest.”

On Wednesday, on the second day of the hearing, the lord chief justice, Lord Burnett, and Mr Justice Jay said they would give their ruling at a later date.

Monica met Boyling in 1997 while she was part of the Reclaim the Streets environmental group. Kaufmann said: “She believed that, like her, he was an environmental activist who shared her political views and aspirations. He told her, and she believed, that he was called Jim Sutton and that the flat he invited her to stay at was his genuine home.

“Both expressed strong feelings for each other,” she added. When Monica ended the relationship, “Boyling expressed real upset at the relationship coming to an end and a desire for the sexual relationship to continue”, Kaufmann added.

During his deployment, the undercover officer went on to have intimate relationships with two other activists.

Monica discovered that he had been a police spy in 2011 when he was unmasked. He was found guilty of gross misconduct and dismissed from the force in May.