Think of it like compilation. Compilation doesn't tell you if a program is good, bad, or even sound, but it does tell you that what's been written is technically a valid program if it's passed all of the structural checks that are part of the language definition. A proof is a binary outcome in the same way that a program either compiles or it doesn't; it's either true or it's not. The idea (at least as I understand it) is that your axioms become your rules, and you use a checker that enforces that none of those rules have been broken. As long as you do that, and the final statement is correct, then everything up to (and including) that point is a valid "program". What's inside could be spaghetti, but the benchmark for success isn't "the program is bug free", it's "it compiled", which is a vastly easier benchmark.
Put another way, it's essentially a type checker running on the AST.
You have the right idea, but there's a huge (very infinite) domain of "things that can be proven" that aren't what you wanted to prove. So, even if "it compiles" you still need to make sure that you proved the right thing.