invalidate vs legislate

invalidate

verb
  • To make invalid. Especially applied to contract law. 

  • To make or declare (an argument, statement, or theory) unsound or erroneous; disprove. 

  • To render invalid; discredit. 

legislate

verb
  • To pass laws (including the amending or repeal of existing laws). 

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