# SKICombinators UT¶

parse result includes term returned and new index

=: (%, %) -> Boolean

return true if equal (deep search) that is: all terms at all levels in tree must be equal to return true all terms must be exactly equal, not just equivalent, that is SKK=I will return false even though ‘SKK’ and ‘I’ have the same effect

~=: (%, %) -> Boolean

from BasicType

atom?: % -> Boolean

returns true if this is an atom, that is a leaf node otherwise return false if this is a compound term

coerce: % -> OutputForm
freeVariable?: (%, UT) -> Boolean

the variable indicated by 's' is free if it does not appear in node 'n' or any of its subnodes.

getChildren: % -> List %

returns child nodes if this is a compound term otherwise returns []

getVariable: % -> UT

returns the variable, if this is not a variable then return I

hash: % -> SingleInteger

from SetCategory

hashUpdate!: (HashState, %) -> HashState

from SetCategory

I: () -> %

Constructs a I combinator

isI?: % -> Boolean

returns true if this is an I combinator node

isK?: % -> Boolean

returns true if this is a K combinator node

isS?: % -> Boolean

returns true if this is a S combinator node

K: () -> %

Constructs a K combinator

latex: % -> String

from SetCategory

parseSki: String -> %

Constructs combinators from a string

parseTerm: (String, NonNegativeInteger) -> Record(rft: %, pout: NonNegativeInteger)

parseTerm is used by parseSki. It would rarely be called externally but it is here to allow it to call parseSki that is to allow circular calls

redux: % -> %

weak reduction - apply this combinator to rearrange its subnodes then apply recursively to its subnodes.

S: () -> %

Constructs a S combinator

ski: (%, %) -> %

Constructs a node combinator over combinators

ski: UT -> %

Constructs variable combinator

toString: % -> String

output

variable?: % -> Boolean

returns true if this is an variable

BasicType

SetCategory
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.20722872018814087, "perplexity": 13525.592978720295}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-27/segments/1656103556871.29/warc/CC-MAIN-20220628142305-20220628172305-00187.warc.gz"}