definition-interpretation (python sample)๏ƒ

Tags: definition-interpretation python sample

This page shows how to infer new statements in a theory-derivation by applying the definition-interpretation inference-rule.

Usage๏ƒ

Call the infer_statement method from the inference-rule inclusion class listed in the i (unabridged inference_rules ) property of the theory-derivation :

u = pu.create_universe()
t = u.t()
...
# some theory derivation code
...
t.i.definition_interpretation.infer_statement(...)

Sample code๏ƒ

Code output๏ƒ

๐–ซ๐–พ๐— โŒœ๐’ฐโ‚‚โ‚€โŒ ๐–ป๐–พ ๐–บ ๐‘ข๐‘›๐‘–๐‘ฃ๐‘’๐‘Ÿ๐‘ ๐‘’-๐‘œ๐‘“-๐‘‘๐‘–๐‘ ๐‘๐‘œ๐‘ข๐‘Ÿ๐‘ ๐‘’.

๐–ซ๐–พ๐— โŒœ๐’ฏโ‚โŒ ๐–ป๐–พ ๐–บ ๐‘กโ„Ž๐‘’๐‘œ๐‘Ÿ๐‘ฆ-๐‘‘๐‘’๐‘Ÿ๐‘–๐‘ฃ๐‘Ž๐‘ก๐‘–๐‘œ๐‘› ๐—‚๐—‡ ๐’ฐโ‚‚โ‚€.

๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ถ๐˜๐—ถ๐—ผ๐—ป (๐’ฏโ‚.๐ทโ‚): ๐–ซ๐–พ๐— ๐‘‘๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘› ๐’Ÿโ‚ โŒœ๐˜‹๐˜ถ๐˜ฎ๐˜ฎ๐˜บ ๐˜ฅ๐˜ฆ๐˜ง๐˜ช๐˜ฏ๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ง๐˜ฐ๐˜ณ ๐˜ฅ๐˜ฆ๐˜ฎ๐˜ฐ๐˜ฏ๐˜ด๐˜ต๐˜ณ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ฑ๐˜ถ๐˜ณ๐˜ฑ๐˜ฐ๐˜ด๐˜ฆ๐˜ดโŒ ๐–ป๐–พ ๐—‚๐—‡๐–ผ๐—…๐—Ž๐–ฝ๐–พ๐–ฝ (๐—‰๐—ˆ๐—Œ๐—๐—Ž๐—…๐–บ๐—๐–พ๐–ฝ) ๐—‚๐—‡ ๐’ฏโ‚.

๐—œ๐—ป๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—ฟ๐˜‚๐—น๐—ฒ (๐‘‘๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›-๐‘–๐‘›๐‘ก๐‘’๐‘Ÿ๐‘๐‘Ÿ๐‘’๐‘ก๐‘Ž๐‘ก๐‘–๐‘œ๐‘›): ๐–ซ๐–พ๐— ๐‘–๐‘›๐‘“๐‘’๐‘Ÿ๐‘’๐‘›๐‘๐‘’-๐‘Ÿ๐‘ข๐‘™๐‘’ ๐‘‘๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›-๐‘–๐‘›๐‘ก๐‘’๐‘Ÿ๐‘๐‘Ÿ๐‘’๐‘ก๐‘Ž๐‘ก๐‘–๐‘œ๐‘› ๐–ฝ๐–พ๐–ฟ๐—‚๐—‡๐–พ๐–ฝ ๐–บ๐—Œ โŒœ(๐““, ๐ฑ, ๐ฒ โŠข (๐ฑ = ๐ฒ))โŒ ๐–ป๐–พ ๐—‚๐—‡๐–ผ๐—…๐—Ž๐–ฝ๐–พ๐–ฝ ๐–บ๐—‡๐–ฝ ๐–ผ๐—ˆ๐—‡๐—Œ๐—‚๐–ฝ๐–พ๐—‹๐–พ๐–ฝ ๐—๐–บ๐—…๐—‚๐–ฝ ๐—‚๐—‡ ๐’ฏโ‚.

๐—ฃ๐—ฟ๐—ผ๐—ฝ๐—ผ๐˜€๐—ถ๐˜๐—ถ๐—ผ๐—ป (๐’ฏโ‚.๐‘ƒโ‚) - The proposition of interest: (๐‘Ÿโ‚(๐‘œโ‚, ๐‘œโ‚‚) = ๐‘Ÿโ‚‚(๐‘œโ‚ƒ)). ๐—ฃ๐—ฟ๐—ผ๐—ผ๐—ณ: โŒœ๐˜‹๐˜ถ๐˜ฎ๐˜ฎ๐˜บ ๐˜ฅ๐˜ฆ๐˜ง๐˜ช๐˜ฏ๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ง๐˜ฐ๐˜ณ ๐˜ฅ๐˜ฆ๐˜ฎ๐˜ฐ๐˜ฏ๐˜ด๐˜ต๐˜ณ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ฑ๐˜ถ๐˜ณ๐˜ฑ๐˜ฐ๐˜ด๐˜ฆ๐˜ดโŒ ๐—‚๐—Œ ๐—‰๐—ˆ๐—Œ๐—๐—Ž๐—…๐–บ๐—๐–พ๐–ฝ ๐–ป๐—’ ๐—ฑ๐—ฒ๐—ณ. (๐ทโ‚). ๐‘Ÿโ‚(๐‘œโ‚, ๐‘œโ‚‚) ๐—‚๐—Œ ๐–บ๐—‡ ๐—‚๐—‡๐—๐–พ๐—‹๐—‰๐—‹๐–พ๐—๐–บ๐—๐—‚๐—ˆ๐—‡ ๐—ˆ๐–ฟ ๐—๐—๐–บ๐— ๐–ฝ๐–พ๐–ฟ๐—‚๐—‡๐—‚๐—๐—‚๐—ˆ๐—‡. ๐–ณ๐—๐–พ๐—‹๐–พ๐–ฟ๐—ˆ๐—‹๐–พ, ๐–ป๐—’ ๐—๐—๐–พ ๐‘‘๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›-๐‘–๐‘›๐‘ก๐‘’๐‘Ÿ๐‘๐‘Ÿ๐‘’๐‘ก๐‘Ž๐‘ก๐‘–๐‘œ๐‘› ๐—‚๐—‡๐–ฟ๐–พ๐—‹๐–พ๐—‡๐–ผ๐–พ ๐—‹๐—Ž๐—…๐–พ: (๐““, ๐ฑ, ๐ฒ โŠข (๐ฑ = ๐ฒ)), ๐—‚๐— ๐–ฟ๐—ˆ๐—…๐—…๐—ˆ๐—๐—Œ ๐—๐—๐–บ๐— (๐‘Ÿโ‚(๐‘œโ‚, ๐‘œโ‚‚) = ๐‘Ÿโ‚‚(๐‘œโ‚ƒ)). โˆŽ