Theorem 1: A closed type with non-derivable uniqueness of identity proofs
ProvedHofmannStreicher1994.theorem_1There exists a type well formed in the empty context such that no expression is derivably a term of
in the context . This is the existential formulation printed as Theorem 1, retaining its unused binder, for the explicitly selected annotated object theory. It has no assumptions of a model, soundness, or semantic UIP failure. Section 3 supplies the witness .
import Definitions.Def_HofmannStreicher1994_Syntax
namespace HofmannStreicher1994
theorem theorem_1 :
∃ A, TypeWf [] A ∧
¬ ∃ t, TermWf (diagonalContext A) t (diagonalConclusion A) := by sorry
end HofmannStreicher1994Read-back
What the Lean code literally says, in plain math · GPT-6 (Codex independent blind auditor)
There exists a raw expression that is derivably a type in the empty context and for which there is no raw expression derivably having type in the context . Both and are context variables; is available when deriving the judgment but does not occur in its conclusion. Here “derivably” refers exactly to the simultaneously inductively generated syntactic judgments described below, so the negative assertion quantifies over every raw term expression, not over elements of a previously supplied semantic interpretation. There are no parameters, typeclass assumptions, or additional hypotheses of the theorem. The existential quantifier ranges over raw expressions with an empty-context type-formation derivation; it neither specifies a particular witness nor requires a closed inhabitant of . The language is a single inductive set of raw expressions containing variables for every natural-number index , dependent products , dependent sums , identity types , the natural-number type , a universe type , decoding , annotated abstraction , annotated application , annotated pairing , dependent sum elimination , reflexivity , identity elimination , zero , successor , and natural-number elimination ; there are no other expression constructors. All constructor arguments range over this same set of raw expressions, with well-formedness imposed by judgments rather than by the raw syntax. A context is a finite list of raw expressions, with its newest entry first; an entry is written in the older context following it. The index denotes the newest variable. Write for the capture-avoiding renaming that increases each free variable index by . Renaming and substitution preserve bound index when crossing a binder and shift the renamed indices or substituted expressions for the older variables. The second argument of products, sums, applications, and pairs binds one variable; an abstraction body binds one; in sum elimination and each bind one variable and binds two; in identity elimination binds three and binds one; in natural-number elimination binds one and binds two. These are precisely the scopes respected by renaming and substitution. Write for simultaneous substitution of for index and for index ; write for substitution of for index , for index , and for index ; and write for substitution of for indices , respectively, and for index . In these notations the theorem's context is exactly the newest-first list , and its conclusion expression is exactly ; in the completed context have indices , respectively. To specify the derivability relation, write , , , and for type formation, term formation, judgmental type equality, and judgmental term equality. All the following rule schemes range over arbitrary raw expressions, contexts, natural-number indices, and total substitution functions of the indicated kinds, subject to exactly their stated premises. The empty context is well formed, and is well formed from well-formedness of and . From and one may form both and in . With those same two formation premises, a derivation gives ; derivations and give ; and derivations and give . Sum elimination additionally takes , , and , and concludes , where substitutes for index of and for index . Here fixes index and sends each index to , with the same binder-preserving recursive action. From and terms one may form ; from and one obtains . For identity elimination put , the context . The premises are , , , , , and ; the conclusion is . The expression substitutes , , and for indices of , respectively, and for index , thus identifying the two endpoints and the identity proof with reflexivity. For every well-formed , both and are types and ; a term gives . Natural-number elimination has premises , , , and , and concludes . Here substitutes for index of and for index ; in the step context the natural-number variable is and the induction hypothesis of its -type is . The universe interface has just the type-formation rule for already given and the rule that implies , together with equality congruence for decoding below. There are no primitive universe codes, no code constructors for products, sums, identity types, or natural numbers, no computation rule for decoding such codes, no hierarchy of universe levels, and no primitive rule asserting that is a term of type . The variable rule requires well-formedness of and a successful lookup and gives ; an index outside the finite context has no such rule. Term conversion allows and to give . Type equality has reflexivity for each formed type, symmetry, transitivity, and congruence for products, sums, identity types, and decoding: product and sum congruence compare in and in ; identity-type congruence compares as types and and as terms of the unprimed type ; decoding congruence takes to . Term equality has reflexivity for each typed term, symmetry, transitivity, and conversion along type equality. It has constructor congruence for abstraction, application, pairing, sum elimination, reflexivity, identity elimination, successor, and natural-number elimination. In these congruence rules every varying type annotation or motive is related by type equality and every varying term argument or branch by term equality; all these comparisons and the resulting equality are made at the unprimed types and contexts from the corresponding typing rule. More explicitly, abstraction compares in and at in , also requiring to be a type there, and concludes an equality of with at ; application and pairing compare , , and their two term arguments at the unprimed types in their typing rules; sum elimination compares in , in , in , at in , and at in ; reflexivity compares and at ; identity elimination compares in , in , at in , the two pairs of endpoints at , and at ; successor compares its arguments at ; and natural-number elimination compares in , at , at in , and at . Each resulting equality has the result type of the unprimed constructor: respectively , , , , , , , or . The computation equalities are , , , , , and . Each of these equations requires exactly the type-formation and term-formation premises for the displayed constructor and arguments stated above; in the product eta equation these are formation of and and typing of . There are no additional primitive computation or eta equalities, and no rule converting an inhabitant of an identity type into judgmental equality. Finally the judgments include explicit substitution and context-equality rules. A total function is a well-formed substitution from source context into target context when both contexts are well formed and, for every with , ; its values at indices outside are unrestricted. Two such substitutions are equal when, for every such lookup, . Every type-formation, term-formation, type-equality, and term-equality judgment is preserved by a well-formed substitution applied to all its expression arguments. In addition, equal substitutions applied to a formed type give equal types, and applied to give . Context equality is generated by equality of the two empty contexts and the rule taking equality of and to equality of . Each of the four expression judgments may be transported from to an equal context without changing its expression arguments. All these judgments are the least simultaneous inductive closure under the stated rules. The theorem says that within precisely this system at least one empty-context type admits no derivation of the indicated equality-to-reflexivity type in the stated three-variable context; it does not assert the nonexistence of terms at that type for every , nor does its conclusion equate the two proof variables and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.