Skip to content

Commit d042ac7

Browse files
committed
lattice/conceptBelow
1 parent bc0441b commit d042ac7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# lattice
22

3-
`lattice/conceptBelow`
43
`lattice/conceptAbove`
54

65
`LatticeLayout`

src/lattice/conceptBelow.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { assertSameContext } from "../concept/assertSameContext.js"
22
import type { Concept } from "../concept/Concept.js"
3+
import { setIsSubsetOf } from "../utils/Set.js"
34

45
export function conceptBelow(x: Concept, y: Concept): boolean {
56
assertSameContext([x, y], { who: "conceptBelow" })
6-
return false
7+
8+
return setIsSubsetOf(x.extent, y.extent)
79
}

0 commit comments

Comments
 (0)