fixed LineNumber and cleaned up proof/inference