hard and fast vs invariant

hard and fast

invariant

adj
  • Neither covariant nor contravariant. 

  • not varying; constant 

  • Unaffected by a specified operation (especially by a transformation) 

noun
  • An invariant quantity, function etc. 

How often have the words hard and fast and invariant occurred in a corpus of books? (source: Google Ngram Viewer )