Skip to content

Commit 63e66f2

Browse files
committed
add emphasizedTraits to redundancy
1 parent 0b88e9a commit 63e66f2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/viewer/src/components/Traits/Redundancy.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
export let space: Space
77
export let property: Property
88
const { theorems, traits } = context()
9-
$: result = checkIfRedundant(space, property, $theorems, $traits)
9+
let result = checkIfRedundant(space, property, $theorems, $traits)
10+
$: emphasizedProperties = new Set(
11+
$traits
12+
.forSpace(space)
13+
.filter(([_, t]) => t.asserted)
14+
.map(([p, _]) => p),
15+
)
1016
</script>
1117

1218
{#if result.redundant}
@@ -15,5 +21,5 @@
1521
This asserted property can be deduced from the other asserted traits for this
1622
space, due to the following theorems.
1723
</div>
18-
<Table theorems={result.theorems} />
24+
<Table theorems={result.theorems} {emphasizedProperties} />
1925
{/if}

0 commit comments

Comments
 (0)