Well-definedness and observational equivalence for inductive-coinductive programs