Lectures onType Theory
ch:focusing-proof-search: ch:focusing-proof-search
appendix sectionsolutions

ch:focusing-proof-search: ch:focusing-proof-search

exercise 39.1.

Put Δ=pq,rs. The first schedule is pΔ,pΔ,ppUInitΔpUAndL1rΔ,rΔ,rrUInitΔrUAndL1ΔprUAndRpq(rs)(pr)UImpR(pq)(rs)(pr)UImpR. The second schedule decomposes both left conjunctions before the right one: pΔ,p,rΔ,p,rpUInitrΔ,p,rΔ,p,rrUInitΔ,p,rprUAndRΔ,pprUAndL1ΔprUAndL1pq(rs)(pr)UImpR(pq)(rs)(pr)UImpR. The first U-AndL1 commutes with U-AndR, as does the second; the two left decompositions also commute with each other. After those commuting conversions both trees have the same two initial leaves.

exercise 39.2.

With positive atoms use (p+q+)⇒↑(q+p+). With negative atoms use (pq)⇒↑(qp). Erasure deletes each and , sends both polarities of each atom to its unpolarized atom, sends to , and sends the positive disjunction to . Both formulas therefore erase, component by component, to (pq)(qp).

exercise 39.3.

Read every rule bottom up. The positive inversion rules F-DownL, F-ZeroL, F-OrL, F-OnePosL, F-TensorL, and F-SuspendPos continue inversion or close its branch. The negative rules F-UpR, F-ImpR, F-OneNegR, F-WithR, and F-SuspendNeg do the same. Rules F-ReleaseR and F-FocusL start, respectively, a right and left focus from a stable inversion sequent.

The positive rules F-OrR1, F-OrR2, F-OnePosR, F-TensorR, and F-IdPos continue or close right focus. The negative rules F-ImpL, F-WithL1, F-WithL2, and F-IdNeg continue or close left focus. Rules F-DownR and F-UpL release right and left focus into inversion. The genuine connective choices are F-OrR1 versus F-OrR2, and F-WithL1 versus F-WithL2. Selecting which persistent negative hypothesis to focus on is a further proof-search choice, not a connective-rule alternative.

exercise 39.4.

Write G=(r+s+)⇒↑(p+r+). Bottom-up, the complete forced prefix is ;(p+q+)GFImpR;p+q+GFTensorL;p+,q+GFSuspendPosp+;q+GFSuspendPosp+,q+;GFImpRp+,q+;r+s+(p+r+)FTensorLp+,q+;r+,s+(p+r+)FSuspendPosp+,q+,r+;s+(p+r+)FSuspendPosΓ4;(p+r+), where Γ4=p+,q+,r+,s+. Immediately before applying F-UpR bottom up the sequent is Γ4;⊢↑(p+r+); its premise is Γ4;p+r+. The remaining tree is XΓ4[p+]FIdPosXΓ4[r+]FIdPosΓ4[p+r+]FTensorRΓ4;p+r+FReleaseRΓ4;⊢↑(p+r+)FUpR. Thus all four atoms are suspended before the sole right-focus phase begins.

exercise 39.5.

Suppose the focused last rule is DP:Γ[P]DN:Γ;[N]UΓ;[PN]UFImpL. The two induction hypotheses, after inverting their final auxiliary rules, give EP:ΓP,EN:Γ,NU. Weakening supplies (PN) in both contexts. Apply U-ImpL, contract its repeated principal formula, and then rebuild the auxiliary queue: Γ,(PN)PΓ,(PN),NUΓ,(PN)UUImpLΓ,(PN);UUQNilΓ;(PN)UUQCons. The upper two sequents are precisely the weakened forms of EP and EN. This is part 3 of the de-focalization conclusion.

exercise 39.6.

The principal pair is D:Γ;PNΓ;PNFImpREP:Γ[P]EN:Γ;[N]UΓ;[PN]UFImpL. Cut 1 on the immediate subformula P gives EP:Γ[P]D:Γ;PNΓ;NCut1. Cut 2 on the immediate subformula N then gives Γ;NEN:Γ;[N]UΓ;UCut2. Both calls have smaller cut formula than PN, so the first component of the lexicographic measure decreases; no comparison of derivation heights is needed.

exercise 39.7.

Let D:Γ,PQ;ΩU. Weaken to D in Γ=Γ,PQ,P,Q. In Γ, form XΓ[P]FIdPosXΓ[Q]FIdPosΓ[PQ]FTensorR. Apply SubstPos to this derivation and D, eliminating the compound suspension. The result is Γ,P,Q;ΩU. The induction hypothesis for Q gives Γ,P;Q,ΩU; the induction hypothesis for P gives Γ;P,Q,ΩU. Finally Γ;P,Q,ΩUΓ;PQ,ΩUFTensorL. Both induction calls are on immediate subformulas, and focal substitution is uniform in the compound PQ.

exercise 39.8.

For a positive conclusion, let the two induction hypotheses be DP:Γ;P and DQ:Γ;Q. Put H=↑P. Under H,P,Q, two F-IdPos rules, F-TensorR, and F-ReleaseR build the stable tensor. Positive expansion at P, F-UpL, and F-FocusL remove P. Expansion at Q gives an inversion premise. Cut 4 with the weakened DQ removes it; F-UpR on DP and cut 3 remove H. The conclusion is Γ;PQ. The phase-changing rules are F-ReleaseR, F-UpL, F-FocusL, and F-UpR.

For the negative polarization, the induction hypotheses are DN:Γ;⊢↓N,DM:Γ;⊢↓M. Rules F-IdNeg, F-FocusL, and F-DownL derive Γ;NN. Cut 4 with DN therefore gives Γ;N, and negative identity expansion E6(N) gives Γ;N. Repeating those named steps for DM gives Γ;M. Apply F-WithR, then Γ;N&MΓ[(N&M)]FDownRΓ;⊢↓(N&M)FReleaseR. Here F-DownR releases the right focus top down and F-ReleaseR starts it bottom up.

exercise 39.9.

In the p+-branch, the candidates can first enter in this order: 1p+[p+]2p+[q+p+]3p+;q+p+4p+;⊢↑(q+p+)5;p+⊢↑(q+p+). The rule codes are F-IdPos, F-OrR2, F-ReleaseR, F-UpR, and F-SuspendPos. In the q+-branch replace p+ by q+ and use F-OrR1; the remaining four rule kinds are unchanged. Once both fifth-stage candidates are present, F-OrL adds the disjunctive-queue conclusion and F-ImpR adds the original sequent.

A depth-first procedure may select the same persistent implication again after a downshift returns to the same stable goal. Formula size has then not decreased. Saturation has only one table entry for that candidate. Repeating the selection creates no new entry, so a finite table cannot follow the cycle forever.

exercise 39.10.

The intuitionistic derivation is Xp+[p+]FIdPosXp+[p+]FIdPosp+[p+p+]FTensorR. The same persistent context is present in both premises. A linear tensor rule would require a disjoint split Δ1Δ2={p+}. Exactly one side can contain the unique resource. The other side would have to derive p+ in right focus from the empty resource context, but the only atomic right-focus rule is identity and its membership premise fails. Inversion on the proposed linear tensor rule therefore proves underivability.

exercise 39.11.

For queued conjunction, induction on Ψ moves its head past A,B, uses the induction hypothesis, exchanges it back, and rebuilds UQ-Cons. At Ψ=, weaken by AB, apply U-AndL2 and U-AndL1, and use UQ-Nil. The disjunction proof performs the same induction in both premises and uses U-OrL at the empty queue. The falsehood proof has no premises and uses U-BotL at the empty queue.

The simultaneous de-focalization induction then has the following complete rule-family map. Positive right focus erases to the matching ordinary right rule; F-DownR erases its shift and F-IdPos becomes U-Init. Positive inversion uses the three queued lemmas for zero, disjunction, and tensor; downshift only moves a formula and positive unit uses weakening. Negative inversion maps implication, with, and unit to U-ImpR, U-AndR, and U-TopR; upshift erases. Positive suspension is one UQ-Cons; negative suspension erases identically. F-ReleaseR preserves the right-focus induction hypothesis. F-FocusL inverts UQ-Cons and UQ-Nil, contracts the selected hypothesis, and restores UQ-Nil. F-UpL erases its shift; F-ImpL is the displayed construction in exercise 39.5; the two with projections use the matching ordinary conjunction-left rule. Finally, at F-IdNeg, suspension-normality forces N=p. The erased branch is pΓ,pΓ,ppUInitΓ,p;pUQNilΓ;ppUQCons. These entries account for every primitive focused rule and prove all three clauses simultaneously.

exercise 39.12.

For positive disjunction, start with D:Γ,PQ;ΩU. In the first branch weaken by P, use F-IdPos and F-OrR1 to build [PQ], and apply SubstPos to D. Expand the smaller P. The second branch uses F-OrR2 and expands the smaller Q. Rule F-OrL joins the results. Positive unit builds [1+] by F-OnePosR, substitutes it for the compound suspension, and applies F-OnePosL; it has no induction hypothesis.

For N, weaken by the persistent N. Focus on that hypothesis, apply F-IdNeg, and expand the smaller N; F-DownR supplies [N]. Positive focal substitution removes N, and F-DownL moves N back from the queue. For P, build the left focus [P], apply F-UpL, expand the smaller P, use negative focal substitution on P, and finish with F-UpR.

Negative unit is F-OneNegR; the suspended premise is unused by weakening. For N&M, use F-WithL1 followed by F-IdNeg to obtain N from a focus on the compound, and similarly use F-WithL2 for M. Substitute the suspended compound into each projection, expand the smaller N and M, and join them by F-WithR. Thus every induction hypothesis is on an immediate subformula; atoms are exactly F-SuspendPos and F-SuspendNeg.

Search the book

Type to search the local edition.