You can add new theorems to a Lean project, and even "upstream" them to Mathlib. It may be an old theorem that is in a book or a complete new theorem that you just proved.