The following example uses Data.Bin from the Bi package:
import Data.Bin
foo : (x, y : Bin) -> Dec (binCompare x y = LT)
foo x y = case binCompare x y of
LT => Yes (C1 ?hole1)
EQ => ...
GT => ...
:t ?hole1
binCompare x y = LT
How can I get a proof that binCompare x y = LT when handling the LT case?