2

I want to write this,

equation

$\begin{tabular}{11}
A &is true \\ 
B &is true \\ 
\hline A \wedge B  &is true 
\end{tabular}$

How do add the "^I" after \hline?

4 Answers4

8

You can use the ebproof package that offers much more.

\documentclass{article}
\usepackage{amsmath}
\usepackage{ebproof}

\begin{document}

[ \begin{prooftree} \hypo{A \text{ true}} \hypo{B \text{ true}} \infer{2}[$\land I$]{A \land B \text{ true}} \end{prooftree} ]

\end{document}

The argument {2} refers to the fact that you have two \hypo to typeset above the line.

enter image description here

egreg
  • 1,121,712
6

We can use \over primitive for fractions:

$$ {\ \hbox{A true}\quad\hbox{B true}\ \over\hbox{A $\wedge$ B}}\wedge \rm I $$
wipet
  • 74,238
6

Here's a LaTeX-based solution that employs a \frac expression.

enter image description here

\documentclass{article} % or some other suitable document class
\usepackage{amsmath}    % for '\text' macro
\begin{document}
\[
\frac{\text{$A$ true} \quad \text{$B$ true}}{%
      \text{$A\wedge B$ true}}
\wedge I
\]
\end{document}
Mico
  • 506,678
2
\documentclass{article}
\usepackage{nicematrix}

\begin{document}

    \begin{table}
        \centering
        \NiceMatrixOptions{cell-space-limits = 3pt}

        \begin{NiceTabular}{ccc}

            A true                         & B true  &\Block{2-1}{$\wedge$ I}\\ \Hline
            \Block{1-2}{A $\wedge$ B true} &                                 \\
        \end{NiceTabular}

    \end{table}

\end{document}

enter image description here

js bibra
  • 21,280