The technology is there, both for a hand-held device which can read a barcode (or a magstripe) and also for a high speed data transfer to a server which (a) logs that the ticket has been used and (b) sends a message back saying yea or nay.
Unfortunately I don't think it works whilst going through tunnels, which on some routes may be a slight problem.