Section 3: The explicit closed type refutes both UIP formulations
ProvedHofmannStreicher1994.uip_underivableThe expression is a well-formed type in the empty context. No expression is derivably a term of in context . Nor is any expression derivably a term of in context .
All three clauses concern the specified annotated object theory, including the selected 1994 interface. There is no model, interpretation, soundness, or non-UIP premise. The source's model, interpretation and soundness argument remain part of the work required to prove this unconditional statement.
import Definitions.Def_HofmannStreicher1994_Syntax
namespace HofmannStreicher1994
theorem uip_underivable :
TypeWf [] counterexampleType ∧
(¬ ∃ t, TermWf (diagonalContext counterexampleType) t
(diagonalConclusion counterexampleType)) ∧
(¬ ∃ t, TermWf (uipContext counterexampleType) t
(uipConclusion counterexampleType)) := by sorry
end HofmannStreicher1994Read-back
What the Lean code literally says, in plain math · GPT-6 (Codex independent blind auditor)
Blind read-back of HofmannStreicher1994.uip_underivable. Fix the raw type expression , where is the syntax's primitive universe type and is its decoding expression. The declaration has no parameters, hypotheses, or typeclass assumptions. It asserts the conjunction of the following three propositions: is a derivably well-formed type in the empty context; there exists no raw expression for which the typing judgment is derivable; and there exists no raw expression for which is derivable. The two existential quantifiers range independently over all elements of the raw-expression inductive type, including expressions that are not well scoped or well typed; their respective typing premises would have to be derivable. Each negated existential equivalently says that every raw expression fails the indicated typing judgment. The context variables displayed here are object-language variables, not additional universal quantifiers in the theorem. In particular, is fixed; the declaration does not quantify over types. The diagonal context contains both and , and its conclusion mentions but not . All these judgments refer to the following particular syntactic inference system, with no semantic interpretation included in their definitions. Raw expressions are finite trees formed from variables indexed by natural numbers, dependent function and dependent pair type expressions, identity type expressions, , , decoding expressions, annotated lambdas and applications, annotated pairs and dependent pair eliminators, annotated reflexivity expressions and identity eliminators, zero, successor, and a dependent natural-number eliminator. Types and terms use this same raw-expression type. Contexts are finite lists of raw expressions, stored with the most recent variable first; a declaration's stored type is expressed in the preceding, older context. Index denotes the most recent variable. A variable at index , whose stored type is , has type with each free index increased to . Thus, in the diagonal context the final indices denote , respectively; in the second context the final indices denote . The index in the codomain of denotes its bound universe variable. Renaming and simultaneous substitution are capture avoiding: under one binder renaming fixes index and maps to the successor of the old image of , while substitution fixes index and weakens the old substitution image at before placing it at index ; these operations are iterated under multiple binders. Weakening increases every free index by one. The codomain of a dependent function or pair type and the body of a lambda each bind one variable. The codomain annotation of an application or pair also binds one variable. A pair eliminator's motive binds the eliminated pair, and its branch binds the first component followed by the second component, so the second component has index and the first index . An identity eliminator's motive binds , then , then , with indices respectively, and its reflexive branch binds just . A natural-number eliminator's motive binds ; its successor branch binds followed by an induction-hypothesis variable of the motive at , with indices respectively. One-variable instantiation replaces index by the supplied expression and lowers every higher free index by one; two-variable instantiation replaces indices by the supplied expressions in that order and lowers higher free indices by two; three-variable instantiation replaces indices in that order and lowers higher free indices by three. The context, type, term, type-equality, term-equality, substitution, substitution-equality, and context-equality judgments are the simultaneously inductively generated relations given by the following rules, with all metavariables in the rules universally quantified over raw expressions, contexts, natural indices, or total substitutions of the indicated kinds. The empty context is well formed, and adjoining a type well formed in a well-formed context gives a well-formed context. Dependent function and pair types are well formed when their domain is a type and their codomain is a type in the context extended by that domain. An identity type is well formed when its carrier is a type and its two endpoints have that carrier type. and are types in any well-formed context; is a type whenever . A variable has the shifted stored type described above, provided the whole context is well formed and the corresponding list entry exists. A lambda has dependent function type when its annotated domain and codomain are types and its body has the codomain type under the domain binder. An annotated application has the instantiated codomain type when its domain and codomain are types, its function has that dependent function type, and its argument has the domain type. An annotated pair has dependent pair type when the domain and codomain are types, its first component has the domain type, and its second component has the codomain instantiated at the first. A pair eliminator has the motive instantiated at the scrutinee when the domain and codomain are types, the motive is a type under a variable of that dependent pair type, the branch under variables has motive , and the scrutinee has the dependent pair type. Here the branch motive is literally obtained by replacing the motive's index with the annotated pair of indices , shifting the free domain and codomain parameters past these two branch binders, and replacing each original outer index with . Reflexivity has type when is a type and . An identity eliminator has type when is a type, is a type in the context , its branch under has type , its endpoints have type , and its identity argument has type . The branch motive replaces original indices respectively by reflexivity at the remaining index- variable, that variable, and that variable, and sends each original outer index to . Zero has type in any well-formed context, and successor preserves this type. A natural-number eliminator has type when is a type under , the zero branch has type , the successor branch under has type , and the scrutinee has type ; the successor branch's expected type replaces the motive's index with successor of index and sends each original outer index to . A term's type can be replaced by a derivably equal type. Type equality is generated by reflexivity for well-formed types, symmetry, transitivity, congruence for dependent function and pair types, congruence for identity types, and congruence for decoding, together with the structural rules described below. For dependent function and pair congruence, domains are compared in the ambient context and codomains are compared in the context extended by the left-hand domain. For identity-type congruence, the carriers are compared as types and the endpoints are compared as terms of the left-hand carrier. Decoding congruence uses term equality at . Term equality is generated by reflexivity for well-typed terms, symmetry, transitivity, conversion along type equality, congruence for lambda, application, pair, pair elimination, reflexivity, identity elimination, successor, and natural-number elimination, and the following computation equations: application of a lambda equals its instantiated body; a function equals its eta expansion , with the constructor oriented from the expansion to the function; pair elimination on an explicit pair equals the branch instantiated with its two components; identity elimination on reflexivity equals its reflexive branch instantiated at the endpoint; natural-number elimination on zero equals its zero branch; and natural-number elimination on a successor equals its successor branch instantiated with the predecessor and the recursive result. Each computation rule requires the corresponding domain, codomain or motive formation and branch and argument typing premises of the elimination or lambda rule. Congruence premises compare domain annotations as types, and compare dependent codomain annotations under the left-hand domain; application compares functions at the left-hand dependent function type and arguments at the left-hand domain, and returns equality at the left-hand codomain instantiated with the left-hand argument; pair congruence compares first components at the left-hand domain and second components at the left-hand instantiated codomain, and returns equality at the left-hand dependent pair type. Lambda congruence additionally requires one common codomain to be well formed under the left-hand domain and compares bodies there at that codomain, returning equality at that dependent function type. Pair-eliminator congruence compares motives under a variable of the left-hand dependent pair type, branches under the two left-hand component declarations at the left-hand pair branch motive, and scrutinees at the left-hand dependent pair type, returning equality at the left-hand motive instantiated with the left-hand scrutinee. Reflexivity congruence compares carriers as types and endpoints at the left-hand carrier, returning equality in the identity type on the left-hand endpoint twice. Identity-eliminator congruence compares motives under the three-variable identity context of the left-hand carrier, branches under the left-hand carrier at the left-hand reflexive motive, endpoints at that carrier, and identity arguments at the identity type on the left-hand endpoints, returning equality at the left-hand motive instantiated with the left-hand endpoints and identity argument. Natural-number-eliminator congruence compares motives under , zero branches at the left-hand motive at zero, successor branches under for the left-hand motive and at its successor branch type, and scrutinees at , returning equality at the left-hand motive evaluated on the left-hand scrutinee. Successor congruence compares its arguments at and returns equality at . There are no further computation rules among the constructors: in particular, no pair eta rule, identity reflection rule, or rule identifying arbitrary identity proofs is supplied. A well-formed substitution from source context to target context is a total map with both contexts well formed such that, for every natural number and every raw expression , whenever the th stored entry of is , the target context derives at the result of substituting into after increasing its free indices by . Two substitutions are equal when both are well formed and, for every such existing source entry, their images are derivably term equal at that same type computed using the first substitution. Images at indices outside the source context are unconstrained by these conditions, including all indices when the source context is empty. Type formation, term typing, type equality, and term equality are closed under well-formed substitution. Equal substitutions applied to a well-formed type give equal types; equal substitutions applied to a well-typed term give equal terms at the type transformed by the first substitution. Context equality is generated by equality of the two empty contexts and by extending related contexts with whenever and are derivably equal types in ; there are no additional context-equality constructors. Type formation, term typing, type equality, and term equality can all be transferred from a context to a related context, keeping their raw expressions unchanged. These are all the primitive judgment rules. In particular, although and decoding occur in , this syntax supplies no primitive terms coding , dependent functions, dependent pairs, identity types, or itself as elements of , and the theorem does not assert an inhabitant of or of , a semantic countermodel, or an equivalence between its two non-derivability assertions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.