Two adjacent top-level assumptions causes breakage

Bug #156940 reported by Dan Watkins
2
Affects Status Importance Assigned to Milestone
the Natural Deduction LaTeX Package
Fix Released
High
Dan Watkins

Bug Description

When assumptions end and start right next to one another and are not within another assumption, they typeset in an incredibly ugly way. The code below causes such breakage.

\begin{proof}
 \state{$p\vee q$}{premise}
 \assumption{2}{
  \state{$p$}{assumption}
  \state{$q\vee p$}{$\vee i_2$ 2}
 }
 \assumption{2}{
  \state{$q$}{assumption}
  \state{$q\vee p$}{$\vee i_1$ 4}
 }
 \state{$q\vee p$}{$\vee e$ 1, 2-3, 4-5}
\end{proof}

Dan Watkins (oddbloke)
Changed in naturaldeduction:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dan Watkins (oddbloke) wrote :

Bumped this to critical as it affects _all_ disjunction elimination.

Changed in naturaldeduction:
importance: Medium → Critical
Revision history for this message
Dan Watkins (oddbloke) wrote :

Bumped this back down to High as it only affects top-level assumption. Below is some code which is not broken.

\begin{center}
 \begin{proof}
  \state{$\neg p\vee q$}{premise}
  \assumption{7}{
   \state{$p$}{assumption}
   \assumption{3}{
    \state{$\neg p$}{assumption}
    \state{$\bot$}{$\neg e$ 2, 3}
    \state{$q$}{$\bot e$ 4}
   }
   \assumption{2}{
    \state{$q$}{assumption}
    \state{$q$}{copy 6}
   }
   \state{$q$}{$\vee e$ 1, 3-5, 6-7}
  }
  \state{$p\rightarrow q$}{$\rightarrow i$ 2-8}
 \end{proof}
\end{center}

description: updated
Changed in naturaldeduction:
importance: Critical → High
Dan Watkins (oddbloke)
Changed in naturaldeduction:
milestone: none → 1.0
Revision history for this message
Dan Watkins (oddbloke) wrote :

Fixed in trunk, revision 3.

Changed in naturaldeduction:
assignee: nobody → daniel-thewatkins
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.