diff --git a/client/src/components/infoview/goals.tsx b/client/src/components/infoview/goals.tsx
index fe39515..5a12531 100644
--- a/client/src/components/infoview/goals.tsx
+++ b/client/src/components/infoview/goals.tsx
@@ -114,6 +114,11 @@ function Hyp({ hyp: h, mvarId }: HypProps) {
}
+interface GoalProps2 {
+ goals: InteractiveGoal[]
+ filter: GoalFilterState
+}
+
interface GoalProps {
goal: InteractiveGoal
filter: GoalFilterState
@@ -121,6 +126,11 @@ interface GoalProps {
commandLine: boolean
}
+interface ProofDisplayProps {
+ proof: string
+}
+
+
/**
* Displays the hypotheses, target type and optional case label of a goal according to the
* provided `filter`. */
@@ -154,10 +164,10 @@ export const Goal = React.memo((props: GoalProps) => {
return
{/* {goal.userName &&
case {goal.userName}
} */}
{filter.reverse && goalLi}
- { objectHyps.length > 0 &&
+ {! commandLine && objectHyps.length > 0 &&
Objekte:
{objectHyps.map((h, i) =>
)}
}
- { assumptionHyps.length > 0 &&
+ {!commandLine && assumptionHyps.length > 0 &&
Annahmen:
{assumptionHyps.map((h, i) =>
)}
}
{commandLine && commandLineMode &&
}
@@ -166,6 +176,79 @@ export const Goal = React.memo((props: GoalProps) => {
})
+export const MainAssumptions = React.memo((props: GoalProps2) => {
+ const { goals, filter } = props
+
+ const goal = goals[0]
+ const filteredList = getFilteredHypotheses(goal.hyps, filter);
+ const hyps = filter.reverse ? filteredList.slice().reverse() : filteredList;
+ const locs = React.useContext(LocationsContext)
+
+ const goalLocs = React.useMemo(() =>
+ locs && goal.mvarId ?
+ { ...locs, subexprTemplate: { mvarId: goal.mvarId, loc: { target: '' }}} :
+ undefined,
+ [locs, goal.mvarId])
+
+ const goalLi =
+
Aktuelles Goal
+ {filter.reverse && goalLi}
+ { objectHyps.length > 0 &&
+
Objekte:
+ {objectHyps.map((h, i) =>
)}
}
+ { assumptionHyps.length > 0 &&
+
+
Annahmen:
+ {assumptionHyps.map((h, i) =>
)}
+
}
+
+})
+
+export const OtherGoals = React.memo((props: GoalProps2) => {
+ const { goals, filter } = props
+ return <>
+ {goals && goals.length > 1 &&
+