I'm astonished by the lack of critical thinking going on here, from all concerned.
Both Khelif and Lin are clearly male, unless they are women who have been mainlining industrial quantities of testosterone, which is also against the rules as it happens.
Lin has been comparatively discreet, deleting all his social media before leaving for Paris. I haven't seen any personal information posted about him other than that he signed off the IBA ruling, accepting that he had failed the sex test, and didn't appeal it. He accepted that he doesn't have XX chromosomes. For all I know he may have a DSD.
Khelif is entirely different and much more blatant. (He did lodge an appeal against the IBA ruling but withdrew it, perhaps on realising that this would result in the full results of the sex test being made public. He also signed and accepted the ruling.) To those claiming he has a DSD, what evidence is there of that? Only claims that he was brought up as a girl, which don't stand up to any scrutiny. A couple of childhood pictures, neither of which is recognisably him. One school shot which is quite androgynous, and the family shot with the hair ribbons. That's said to be Khelif with "her" father, brother and sister. Um, where's the sister? The other two children look like boys. Also, Khelif is said to be the youngest of the family. The boy toddler is clearly the youngest in the picture. But really, the child in the hair ribbons could be anyone. Sister, cousin, even a friend.
Then there's the claimed "birth certificate", a document clearly dated 2018, just before he started serious boxing in the women's category. None of this is persuading me that Khelif was brought up as a girl.
The most compelling thing for me is his dress and behaviour now. His Instagram page is full of photos of him, and in the ones where he isn't in sports gear he's dressed as a man. Not only no hijab (which isn't always worn in Algeria) but no women's clothes at all. He's also completely uninhibited about showing his bare knees and shoulders. If the civvy clothes ones were of a woman, it would be a woman who was telegraphing clearly that she's a butch lesbian. Same sex relationships are illegal in Algeria.
There are also strong hints of male genitalia, including a penis larger than would be usual in a man with 5ARD. He wears a male style groin protector. Several videos clips of him celebrating after beating a woman with what might be an erection showing under his shorts. (These might be manipulated I suppose, but worth mentioning.) One clip of him apparently rearranging his junk at the end of a bout.
His interactions with his coaches are completely uninhibited. Arms round shoulders, hugging, skin to skin contact. The most recent ones show a coach's face buried in what would be his cleavage if he were a woman, and him being carried on the shoulders of a coach, astride the man's head.
This is not the behaviour of someone who considers themself to be a Moslem woman, or indeed has ever taken on the role of a Moslem woman. He doesn't even seem prepared to put on any pretence of behaving like a woman, even if it might take a little of the heat out of the present situation. He's behaving like a man who has been assured that "female" is purely a matter of paperwork, and he will not be required to demean himself by dressing as a woman or actually pretending to be one. And he's not going to.
His coaches clearly know he's a man, and have no inhibitions about treating him as one. It's hardly unheard of for countries to enter a man in women's events; that's why sex testing was introduced in the first place. Algeria is clearly complicit in what's going on, probably instigated it. I might speculate they were looking for suitable DSD cases to train for women's events, couldn't find any, and induced a mediocre male to do it. Fame, fortune, sponsorship, medals. Just brazen it out, people can say what they like but the IOC only care about the passport.
Even the name. From what I can gather "Imane" is a woman's name, but "Iman", either a unisex or male form, is pronounced the same way. Some Algerian accounts on Twitter using Iman. Don't know about this, though.
So no, I don't buy that he thinks of himself as a woman now (or that anyone else does), or that he has ever believed himself to be female or lived as a Moslem woman. And I'm struggling to think of what new information might emerge that would change my mind.