Which discipline studies how a prayer ruling is inferred from its proof?

Sources of Legal Theory and Introduction to Specific and General Expressions