The Lumenary · First-year graduate
Categorical logic
Name: ______________________
Date: ______________________
You will learn to
- Interpret the simply typed λ-calculus with products in a cartesian closed category, prove that βη-equal terms have equal interpretations, and show that is cartesian closed while is not
- Express and as the left and right adjoints of substitution (pulling back predicates), and derive quantifier laws from the fact that adjoints preserve limits or colimits
- Define Heyting algebras and prove that intuitionistic propositional logic is sound and complete for them
- Use the open sets of to show that is not intuitionistically derivable, while is
- State the Curry–Howard–Lambek correspondence and place it in the wider landscape (hyperdoctrines, dependent types, toposes)
- 1.
In the Heyting algebra of open subsets of , let . What are and ?
- A. and
- B. and
- C. and
- D. is undefined because is not closed
- 2.
Which of these categories are cartesian closed? (Choose all that apply.)
- A.
- B.The chain as a poset category
- C.
- D. as a poset category
- E.
- 3.
In the three-element Heyting algebra , for how many elements does hold?
- 4.
Since , the universal quantifier is a right adjoint, and right adjoints preserve limits (in a poset: meets). Which logical law is an instance of exactly this fact?
- A.
- B.
- C.
- D.
- 5.
In the proof that intuitionistic logic is sound for Heyting algebras, one rule needs the distributive law . Which rule, and why does the distributive law hold in every Heyting algebra?
- A.-elimination; because is a left adjoint (of ) and so preserves joins
- B.-introduction; because every lattice is distributive
- C.-introduction; because joins are least upper bounds
- D.-elimination; because
- 6.
With
forallAlong f S = {y | ∀ x, f x = y → x ∈ S}, which Lean statement says that ∀ is right adjoint to pulling back alongf : X → Y(forS : Set X,T : Set Y)?- A.
f ⁻¹' T ⊆ S ↔ T ⊆ forallAlong f S - B.
f '' S ⊆ T ↔ S ⊆ f ⁻¹' T - C.
forallAlong f S ⊆ T ↔ S ⊆ f ⁻¹' T - D.
T ⊆ forallAlong f S ↔ f '' S ⊆ T
- A.
- 7.
How many closed βη-normal terms of type are there, for a base type ?
- 8.
A student claims: "Intuitionistic logic proves ; that is what rejecting excluded middle means." Which response is correct?
- A.The claim is false. In the two-element Boolean algebra evaluates to , so by soundness it is not derivable. In fact is derivable.
- B.The claim is true, because is not derivable
- C.The claim is true in , since there for
- D.The question is meaningless, because intuitionistic logic has no negation
- 9.
A finite topology is given as a set
opensof frozensets. Writeneg(opens, u), returning the pseudo-complement of the open setu(the union of all open sets disjoint fromu), andis_boolean(opens, space), returningTrueexactly whenu | neg(opens, u) == spacefor every openu.Computational — Practice