The idea of assuming that the transaction cost is one half of the bid-offer spread comes from several assumptions:
the positions are marked-to-market at mid;
you can actually execute at bid or ask (that your trade isn't large enough to impact the market);
there are no other fees or costs.
For example:
Bid-Ask Spreads: Measuring Trade Execution Costs in Financial Markets by Hendrik Bessembinder and Kumar Venkataraman
Execution costs for a single trade are often measured as half the
spread, described on a percentage basis by equation (1):
Quoted
half-spread = $QS_{it} = 100 * (Ask_{it} – Bid_{it}) / (2*M_{it})$ (1)
where $A_{it}$ and
$B_{it}$ are the posted ask price and bid price for security $i$ at time $t$,
respectively, and $M_{it}$, the quote midpoint or mean of $A_{it}$ and $B_{it}$, is a
proxy for the true underlying security value.
I.e., you can buy some security at price $Ask$ and then mark it at $Mid$ (recognizing only half of the b-o spread in your P&L initially) rather than mark at $Bid$ (the price you would get if you were to unwind), although you could only unwind at $Bid$ (recognizing the other half of the b-o spread in your P&L only when you unwind).
Another example:
Transaction Costs by Ed Tricker, Saurabh Srivastava, Marci Mitchell
At a minimum, the transaction is immediately out of the money by half
the amount of the bid-ask spread and the total cost may increase
further if the order that is placed cannot be satisfied with the
current volume that is associated with the current bid/ask price
quoted.
Whether it is too optimistic depends on the intended audience of your papers. If you're just trying to publish in a peer-reviewed academic journal, it may be good enough, because clearly other authors do it, but if you're trying to convince someone (even yourself) that some strategy would be profitable, then you may want to be even more conservative.
In particular, my personal belief, with which many authorities disagree, is that, since you cannot execute at mid, neither should you mark at mid. In my opinion, the fair value should be what one would receive (or pay) to unwind.