(=>
(and
(codeMapping ISO_4217_A ?A3 ?CURRENCY)
(codeMapping ISO_3166_1_alpha_2 ?A2 ?AREA)
(instance ?AREA GeopoliticalArea)
(equal ?A2
(SubstringFn ?A3 0 2)))
(currencyType ?AREA ?CURRENCY)) |
Media.kif 2836-2842 |
If X in ISO_4217_A denotes Y, Z in ISO_3166_1_alpha_2 denotes W, W is an instance of geopolitical area, and equal Z and the sub-string of X from 0 to 2, then Y is a currency type of W |
(=>
(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 2997-3018 |
If All of the following hold: (1) equal X and the reverse of Y (2) equal Z and the length of Y (3) Z is greater than 1 (4) W is greater than 0 (5) W is less than Z (6) equal V and the ceiling of (Z and 1) and 2 (7) equal U and ((V and W) and V) (8) equal T and the sub-string of Y from W to (1 and W), then equal T and the sub-string of X from U to (1 and U) |
(=>
(and
(fullNameIndexOrder ?NAMESTRING ?THING)
(keyName ?FIRST ?NAMESTRING)
(equal ?START
(StringLengthFn ?FIRST))
(equal ?END
(StringLengthFn ?NAMESTRING))
(equal ?REST
(SubstringFn ?NAMESTRING ?START ?END)))
(stringConcatenation ?FIRST ?REST ?NAMESTRING)) |
Media.kif 3234-3241 |
If the index order name of X is Y, Z is a key in Y, equal W and the length of Z, equal V and the length of Y, and equal U and the sub-string of Y from W to V, then the concatenation of Z and U is Y |
(=>
(and
(nameIndexOrder ?NAMESTRING ?THING)
(keyName ?FIRST ?NAMESTRING)
(equal ?START
(StringLengthFn ?FIRST))
(equal ?END
(StringLengthFn ?NAMESTRING))
(equal ?REST
(SubstringFn ?NAMESTRING ?START ?END)))
(stringConcatenation ?FIRST ?REST ?NAMESTRING)) |
Media.kif 3261-3268 |
If X is the indexable name for Y, Z is a key in X, equal W and the length of Z, equal V and the length of X, and equal U and the sub-string of X from W to V, then the concatenation of Z and U is X |