ReverseFn |
appearance as argument number 1 |
(documentation ReverseFn EnglishLanguage "The reverse of a string.") | Media.kif 3046-3046 | |
(domain ReverseFn 1 SymbolicString) | Media.kif 3044-3044 | |
(instance ReverseFn UnaryFunction) | Media.kif 3043-3043 | |
(range ReverseFn SymbolicString) | Media.kif 3045-3045 |
appearance as argument number 2 |
(format EnglishLanguage ReverseFn "the reverse of %1") | Media.kif 3048-3048 | |
(termFormat EnglishLanguage ReverseFn "the reverse of") | Media.kif 3047-3047 |
antecedent |
(=> (and (equal ?OUT (ReverseFn ?IN)) (equal ?LEN (StringLengthFn ?IN)) (greaterThan ?LEN 1) (greaterThan ?N 0) (lessThan ?N ?LEN) (equal ?PIVOT (CeilingFn (DivisionFn (SubtractionFn ?LEN 1) 2))) (equal ?NEW (AdditionFn (SubtractionFn ?PIVOT ?N) ?PIVOT)) (equal ?S (SubstringFn ?IN ?N (AdditionFn 1 ?N)))) (equal ?S (SubstringFn ?OUT ?NEW (AdditionFn 1 ?NEW)))) |
Media.kif 3050-3071 |
consequent |
(=> (and (instance ?WORD Palindrome) (spellingInLanguage ?LANGUAGE ?WORD ?SYMBOLICSTRING)) (equal ?SYMBOLICSTRING (ReverseFn ?SYMBOLICSTRING))) |
Media.kif 3078-3083 |