The philosophy and logic of chemical engineering