Natural deduction calculus