3 Steps to InChI

Chemistry –
‘Normalize’ Input Structure
  Implement chemical rules

Math –
‘Canonicalize’ (label the atoms)
           Equivalent atoms get the same label

Format –
‘Serialize’ Labeled Structure
            Output as character string (‘name’)