Propositions 2–3: Quantifier interchange and constant families
OpenLaarakkerOttenVanDenBerg2026.V2.propositions_2_and_3For every contextual core theory, small dependent products commute up to internal half-adjoint equivalence with universal size quantification, and small dependent sums commute with existential size quantification. In every parametric theory, existential and universal quantification of a size-independent small type each give an internally equivalent type. Empty small domains and arbitrary contextual small families are included.
import Definitions.Def_LaarakkerOttenVanDenBerg2026_TheoryRevision2
namespace LaarakkerOttenVanDenBerg2026.V2
universe u v w t
open Theory
/-- The two definable interchange equivalences need only the core theory;
the fixed-small-type equivalences hold in the parametric theory. -/
theorem propositions_2_and_3 {C : CwF.{u,v,w,t}} :
(∀ T : CoreTheory C, T.DefinableQuantifierEquivalences) ∧
(∀ T : ParametricTheory C, T.toCoreTheory.ConstantQuantifierEquivalences) := by
sorry
end LaarakkerOttenVanDenBerg2026.V2Read-back
What the Lean code literally says, in plain math · Codex / GPT-6 (independent fresh-context read-back)
At arbitrary universe levels , let be a category with families whose contexts, substitutions, contextual types, and contextual terms lie respectively in those universes, with a terminal empty context, context extension, and the stated identity, composition, substitution, and comprehension equations. A core package on supplies contextual dependent products and sums with their introduction, elimination/projection, and computation rules; nondependent arrows compatible with the corresponding dependent products; internal identity types with reflexivity and based identity elimination and its computation rule; a Tarski universe with decoding, closed under small dependent products, sums, and identities; small empty, unit, and Boolean types with their constructors and dependent eliminators; and the indicated substitution equations for all these operations and witnesses. It also supplies a large type of sizes with zero, successor, a small relation , witnesses of , , reflexivity and transitivity, and internal equality of any two witnesses of the same comparison. Write for the decoded type , without assuming any additional external order properties. The core includes a contextual size recursor for every possibly large family and step , with an internal pointwise unfolding witness and substitution laws for the recursor and that witness. It includes primitive small size quantifiers and : has contextual abstraction/application and both computation equations, while has pairing and dependent elimination into small motives with its computation equation, together with their stated substitution laws. Finally the identity-elimination-defined map from equality of dependent functions to pointwise equality has a substitution-stable internal half-adjoint-equivalence witness. All products, sums, arrows, and identities in what follows are these internal types; small types are decoded contextual universe codes, not arbitrary metatheoretic sets, and contextual terms are not identified with all external functions. For an internal arrow , a half-adjoint-equivalence witness consists internally of , , , and , with derived by identity elimination. An equivalence between two types additionally includes its forward arrow. Write ; this contracts the whole type , including any witness components. Existence of a contextual term of one of these types is an external nonemptiness assertion, not an identification of internal identities with external equality. A parametric package means such a core package together with substitution-stable internal half-adjoint-equivalence witnesses for four prescribed maps, at every context and every indicated small family: , sending a common bound and bounded witnesses to their unbounded witnesses; , sending to the family ; , forgetting the outer size and comparison witness; and , restricting a family. Here in the first two schemas may depend on the ambient context but not on the newly introduced size, and may depend on both and that size. For every , the header asserts a conjunction with independently quantified packages: for every core package , every context , small code in , and small family in , there are internal type-equivalence terms and , with the independent and context binders interchanged by the prescribed substitution; and, separately, for every parametric package , every context , and every small code in it, there are internal type-equivalence terms and , where under the quantifier is exactly its weakening to . Each equivalence includes an existentially supplied forward arrow, inverse, both homotopies, and half-adjoint coherence; the conclusion does not prescribe a canonical forward arrow. The first pair requires only the core package, whereas the second is conditional on the additional four parametricity axioms. Size independence in the second pair does not prohibit dependence on . Empty small types and empty fibers are permitted, no monotonicity or finiteness of is assumed, and no consistency or nondegeneracy hypothesis is imposed on or its packages. This is a readback of the asserted header; its proof body is a placeholder, so no proof is certified here.