Не был бы все предложения, перемещающие мышь назад и вперед, сводят пользователя с ума? Я знаю, что удалил бы любое приложение, которое сделает это, как только я могу изолировать его.
I just saw this blog entry: Money vs. Decimal in SQL Server.
Which basically says that money has a precision issue...
declare @m money
declare @d decimal(9,2)
set @m = 19.34
set @d = 19.34
select (@m/1000)*1000
select (@d/1000)*1000
For the money
type, you will get 19.30 instead of 19.34. I am not sure if there is an application scenario that divides money into 1000 parts for calculation, but this example does expose some limitations.
Конечно, есть и другие вспомогательные средства, где мы можем оставаться в сфере логики:
Что касается средств доказательства теорем, насколько мне известно, возможности некоторых из них расширены, так что они могут использовать интерактивный человеческий помощь. Например, Coq .
Давайте посмотрим на пример.
⊢ α ⊃ β ⊃ α
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [CRα,β,γ]
⊢ (α ⊃ β ⊃ γ) ⊃ (α ⊃ β) ⊃ α⊃ γ
⊢ α ⊃ β ⊢ α
━━━━━━━━━━━━━━━━━━━ [MP]
⊢ β
Let us see a tree diagram representation of the proof:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [CRα, α⊃α, α]
━━━━━━━━━━━━━━━ [VEQα, α⊃α]
⊢ [ α ⊃ ( α ⊃ α ) ⊃ α ] ⊃ ( α ⊃ α ⊃ α ) ⊃ α ⊃ α
⊢ α ⊃ ( α ⊃ α ) ⊃ α
━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [ МП ] ━ ━━━━━━━━━━ [ VEQ α , α ]
⊢ ( α ⊃ α ⊃ α ) ⊃ α ⊃ α
⊢ α ⊃ α ⊃ α
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━ [ МП ]
⊢ α ⊃ α
Let us see an even conciser (algebraic? calculus?) representation of the proof:
(CRα,α⊃α,α VEQα,α ⊃ α) VEQα,α: ⊢ α⊃ α
so, we can represent the proof tree by a single formula:
It is worth of keep record about the concrete instantiation, that' is typeset here with subindexical parameters.
As it will be seen from the series of examples below, we can develop a proof calculus, where axioms are notated as sort of base combinators, and modus ponens is notated as a mere application of its "premise" subproofs:
VEQα,β: ⊢ α ⊃ β ⊃ α
meant as
Verum ex quolibet axiom scheme instantiated with α,β provides a proof for the statement, that α ⊃ β ⊃ α is deducible.
VEQα,α: ⊢ α ⊃ α ⊃ α
Verum ex quolibet axiom scheme instantiated with α,α provides a proof for the statement, that α ⊃ α ⊃ α is deducible.
VEQα, α⊃α: ⊢ α ⊃ (α ⊃ α) ⊃ α
meant as
Verum ex quolibet axiom scheme instantiated with α, α⊃α provides a proof for the statement, that α ⊃ (α ⊃ α) ⊃ α is deducible.
CRα,β,γ: ⊢ (α ⊃ β ⊃ γ) ⊃ (α ⊃ β) ⊃ α⊃ γ
meant as
Chain rule axiom scheme instantiated with α,β,γ provides a proof for the statement, that (α ⊃ β ⊃ γ) ⊃ (α ⊃ β) ⊃ α⊃ γ is deducible.
CRα,α⊃α,α: ⊢ [α ⊃ (α⊃α) ⊃ α] ⊃ (α ⊃ α⊃α) ⊃ α⊃ α
meant as
Chain rule axiom scheme instantiated with α,α⊃α,α provides a proof for the statement, that [α ⊃ (α⊃α) ⊃ α] ⊃ (α ⊃ α⊃α) ⊃ α⊃ α is deducible.
CRα,α⊃α,α VEQα,α ⊃ α: ⊢ (α ⊃ α⊃α) ⊃ α⊃ α
meant as
If we combine CRα,α⊃α,α and VEQα,α ⊃ α together via modus ponens, then we get a proof that proves the following statement: (α ⊃ α⊃α) ⊃ α⊃ α is deducible.
(CRα,α⊃α,α VEQα,α ⊃ α) VEQα,α: ⊢ α⊃ α
If we combine the compund proof (CRα,α⊃α,α) together with VEQα,α ⊃ α (via modus ponens), then we get an even more compund proof. This proves the following statement: α⊃ α is deducible.
Although all this above has indeed provided a proof for the expected theorem, but it seems very unintuitive. It cannot be seen how people can "find out" the proof.
Let us see another field, where similar problems are investigated.
Combinatory logic can be regarded also as an extremely minimalistic functional programming language. Despite of its minimalism, it entirely Turing complete, but evenmore, one can write quite intuitive and complex programs even in this seemingly obfuscated language, in a modular and reusable way, with some practice gained from "normal" functional programming and some algebraic insights, .
Combinatory logic also has typed variants. Syntax is augmented with types, and evenmore, in addition to reduction rules, also typing rules are added.
For base combinators:
Typing rule of application:
It can be seen that the "patterns" are isomorphic in the proof calculus and in this typed combinatory logic.
But what is the gain? Why should we translate problems to combinatory logic? I, personally, find it sometimes useful, because functional programming is a thing which has a large literature and is applied in practical problems. People can get used to it, when forced to use it in erveryday programming tasks ans pracice. And some tricks and hints of functional programming practice can be exploited very well in combinatory logic reductions. And if a "transferred" practice develops in combinatory logic, then it can be harnessed also in finding proofs in Hilbert system.
Система Гильберта обычно не используется в автоматическом доказательстве теорем. Гораздо проще написать компьютерную программу, которая будет делать доказательства с использованием естественной дедукции. Из материала курса CS :
Некоторые часто задаваемые вопросы о системе Гильберта: В: Как узнать, какая аксиома схемы для использования, и которые замены сделать? Поскольку есть бесконечно много возможностей, это невозможно попробовать их все, даже в принцип. A: Алгоритма нет; в по крайней мере, не простой. Скорее, есть быть умным. В чистой математике это не рассматривается как проблема, поскольку больше всего беспокоит наличие доказательства. Однако в приложения для информатики, один заинтересован в автоматизации удержания процесс, так что это фатальный недостаток. В Система Гильберта обычно не используется в автоматическое доказательство теорем. Q: Итак, почему люди заботятся о Гильберте система? A: С modus ponens в качестве единственное дедуктивное правило, он обеспечивает приемлемая модель того, как люди изобретают математические доказательства. Как мы увидим, методы, которые более поддаются компьютерная реализация предоставить доказательства которые менее «похожи на людей».
Найти доказательства в исчислении Гильберта очень сложно.
Вы можете попытаться перевести доказательства из исчисления секвенций или естественного вывода в исчисление Гильберта.