UNPKG
fregejs
Version:
latest (0.4.0)
0.4.0
0.3.0
0.2.3
0.2.1
0.2.0
0.1.0
A propositional logic library written in Typescript
github.com/etec-sa
etec-sa/frege
fregejs
/
src
/
utils
/
isProofItemInferred.ts
8 lines
(5 loc)
•
256 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
ProofItem
,
ProofItemInferred
}
from
'types/syntactic/proof'
;
export
function
isProofItemInferred
(
x: ProofItem
): x is
ProofItemInferred
{
if
(!x?.
type
)
return
false
;
return
[
'Knowledge'
,
'End of Hypothesis'
,
'Conclusion'
].
includes
(x.
type
); }