Double Negation Translations as Morphisms
Olivier Hermant
CRI, MINES ParisTech
December 12, 2014 Deducteam Seminar, INRIA
- O. Hermant (Mines)
Double Negations December 12, 2014 1 / 31
Double Negation Translations as Morphisms Olivier Hermant CRI, - - PowerPoint PPT Presentation
Double Negation Translations as Morphisms Olivier Hermant CRI, MINES ParisTech December 12, 2014 Deducteam Seminar, INRIA O. Hermant (Mines) Double Negations December 12, 2014 1 / 31 Double-Negation Translations Double-Negation
Double Negations December 12, 2014 1 / 31
◮ a shallow way to encode classical logic into intuitionistic ◮ Zenon’s backend for Dedukti ◮ existing translations: Kolmogorov’s (1925), Gentzen-Gödel’s (1933),
◮ turns more formulæ into themselves; ◮ shifts a classical proof into an intuitionistic proof of the same formula.
Double Negations December 12, 2014 2 / 31
◮ A morphism preserves the operations between two structures:
◮ a translation that is a morphism:
Double Negations December 12, 2014 3 / 31
◮ A morphism preserves the operations between two structures:
◮ a more interesting translation that is a morphism:
Double Negations December 12, 2014 3 / 31
◮ A morphism preserves the operations between two structures:
◮ a more interesting translation that is a morphism:
◮ Design a unified logic, where we can reason both classically and
Double Negations December 12, 2014 3 / 31
◮ None of the previous translations is a morphism. ◮ Dowek has shown one, it is very verbose. ◮ We make it lighter.
1
2
3
4
Double Negations December 12, 2014 4 / 31
◮ The principle of excluded-middle. Should
◮ Yes. This is what is called classical logic. ◮ Wait a minute !
Double Negations December 12, 2014 5 / 31
◮ The principle of excluded-middle. Should
◮ No. This is the constructivist school (Brouwer, Heyting, Kolmogorov). ◮ Intuitionistic logic is one of those branches. It features the BHK
Double Negations December 12, 2014 6 / 31
Double Negations December 12, 2014 7 / 31
Double Negations December 12, 2014 8 / 31
◮ structural rules are not shown (contraction, weakening) ◮ left-rules seem very similar in both cases ◮ so, lhs formulæ can be translated by themselves ◮ this accounts for polarizing the translations ◮ another work [Boudard & H]: ⋆ does not behave well in presence of cuts ⋆ appeals to focusing techniques
Double Negations December 12, 2014 9 / 31
◮ proofs that behave identically in classical/intuitionistic logic:
◮ proof of the excluded-middle:
Double Negations December 12, 2014 10 / 31
◮ proofs that behave identically in classical/intuitionistic logic:
◮ proof of the excluded-middle:
Double Negations December 12, 2014 10 / 31
◮ is not provable. However, its negation is inconsistent.
Double Negations December 12, 2014 11 / 31
◮ is not provable. However, its negation is inconsistent. ◮ this suggests a scheme for a translation between int. and clas. logic:
◮ need: ¬¬ everywhere in ∆ (and Γ) ◮ the proof of the “negation of the excluded middle” requires duplication
Double Negations December 12, 2014 11 / 31
◮ is not provable. However, its negation is inconsistent. ◮ this suggests a scheme for a translation between int. and clas. logic:
◮ given a classical proof Γ ⊢ ∆, store ∆ on the lhs, and translate:
◮ need: ¬¬ everywhere in ∆ (and Γ) ◮ the proof of the “negation of the excluded middle” requires duplication
Double Negations December 12, 2014 11 / 31
◮ ¬A = A; ◮ B = ¬B otherwise.
Double Negations December 12, 2014 12 / 31
Double Negations December 12, 2014 13 / 31
Double Negations December 12, 2014 14 / 31
Double Negations December 12, 2014 14 / 31
Double Negations December 12, 2014 14 / 31
Double Negations December 12, 2014 14 / 31
◮ let:
◮ unfortunately:
◮ this is not a morphism.
Double Negations December 12, 2014 15 / 31
◮ No ! ⋆ in the case of Ko:
⋆ in the case of K :
⋆ exercise: these negations are necessary (hint: consider the
◮ can we be more clever ? ⋆ some intuitionistic right-rules are the same as classical right-rules. For
⋆ Translate them by themselves. Gödel-Gentzen translation.
Double Negations December 12, 2014 16 / 31
Double Negations December 12, 2014 17 / 31
◮ No ! ⋆ in the case of Ko:
⋆ in the case of K :
⋆ exercise: show that those negations are necessary (hint: consider the
◮ can we be more clever ? ⋆ some intuitionistic right-rules are the same as classical right-rules. For
⋆ Gödel-Getzen translation: ⋆ is still not a morphism ! ◮ etc. for all the other known translations (Krivine, Kuroda, Frédéric
Double Negations December 12, 2014 18 / 31
◮ Translation of, say, A ∧ B:
◮ Feature, double-negation:
◮ Analysis, problem appearing in:
◮ Solution: combine them !
Double Negations December 12, 2014 19 / 31
◮ ¬AD = AD (except in the atomic case)
Double Negations December 12, 2014 20 / 31
◮ heavy: for each connective, 6 negations. ((A ∨ B) ⇒ C)D is
◮ most of the time useless, except at the top and at the bottom of the
◮ remember Gödel-Gentzen’s idea. Use De Morgan duals:
◮ let us do the same, and divide by two the number of double negations.
Double Negations December 12, 2014 21 / 31
Double Negations December 12, 2014 22 / 31
◮ this gives rise to a morphism, (.)◦ together with:
◮ and we can prove the theorem:
Double Negations December 12, 2014 22 / 31
◮ last rule ∨R on some A ∨ B ∈ ∆. Remember: (A ∨ B)◦ = ¬A◦ ∧ ¬B◦
⋆ A and B are atomic: A◦ = ¬A and B◦ = ¬B.
⋆ if neither A and B are atomic, then A◦ and B◦ have a trailing ¬, and we
⋆ mixed case: mixed strategy.
Double Negations December 12, 2014 23 / 31
◮ logic with two kinds of connectives: ∨i and ∨c
◮ and we have:
◮ Getting lighter morphisms: ⋆ from ¬cA = ¬¬¬A to ¬cA = ¬A ? ⋆ from A ⇒c B = ¬(¬¬A ∨ ¬B to A ⇒c B = ¬(A ∨ ¬B) ? ⋆ we cannot always maintain the invariant Γ, ∆ ⊢. ⋆ Focusing in LK to the rescue.
Double Negations December 12, 2014 24 / 31
Double Negations December 12, 2014 25 / 31
◮ this gives rise to a morphism, (.)◦ together with:
◮ and we can prove the theorem:
Double Negations December 12, 2014 25 / 31
◮ connects rhs and lhs ◮ dual to the axiom rule:
◮ is admissible/eliminable (Gentzen)
Double Negations December 12, 2014 26 / 31
◮ less negations imposes more discipline. Example:
◮ when Ar introduces negations (∃, ∨, ¬ and atomic cases) ?? can be
◮ otherwise Ar remains of the rhs in the LJ proof.
Double Negations December 12, 2014 27 / 31
◮ less negations imposes more discipline. Example:
◮ when Ar introduces negations (∃, ∨, ¬ and atomic cases) ?? can be
◮ otherwise Ar remains of the rhs in the LJ proof. ◮ the next rule in π1 and π2 must be on A (resp. B). How ?
Double Negations December 12, 2014 27 / 31
◮ less negations imposes more discipline. Example:
◮ when Ar introduces negations (∃, ∨, ¬ and atomic cases) ?? can be
◮ otherwise Ar remains of the rhs in the LJ proof. ◮ the next rule in π1 and π2 must be on A (resp. B). How ? ◮ use Kleene’s inversion lemma ◮ or ... this is exactly what focusing is about !
Double Negations December 12, 2014 27 / 31
◮ Γ and ∆ ◮ A, the (possibly empty) stoup formula
◮ when the stoup is not empty, the next rule must apply on its formula, ◮ under some conditions, it is possible to move/remove a formula
Double Negations December 12, 2014 28 / 31
Double Negations December 12, 2014 29 / 31
◮ in release, A is either atomic or of the form ∃xB, B ∨ C or ¬B; ◮ in focus, the converse holds: A must not be atomic, nor of the form
◮ the synchronous (outside the stoup) right-rules are ∃R, ¬R, ∨R and
Double Negations December 12, 2014 30 / 31
◮ release is translated by the ¬R rule ◮ focus is translated by the ¬L rule
Double Negations December 12, 2014 31 / 31
◮ release is translated by the ¬R rule ◮ focus is translated by the ¬L rule ◮ ∆r removes the trailing negation on ∃n (¬∀¬), ∨r (¬ ∧ ¬), ¬r (¬)
◮ what a surprise: focus is forbidden on them, so rule on the lhs:
◮ see the paper.
Double Negations December 12, 2014 31 / 31