manual merge last 2 peicopy commits: temporal conditional inference & temporal induction inference