Lean’s Dependent Type Theory
- 97Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
97 questions
- 1Lean is an open-source interactive_____prover.
Hint
It is used to check formal proofs.
Answer
theorem prover
- 2Lean was developed by Leonardo de Moura at_____Research.
Hint
This organization is a major technology company.
Answer
Microsoft
- 3Lean is primarily based on_____type theory.
Hint
In this kind of type theory, types may depend on terms.
Answer
dependent
- 4Lean is a_____system rather than an intuitionistic system.
Hint
This system accepts principles such as the law of excluded middle.
Answer
classical
- 5Lean is not based on_____type theory.
Hint
This theory is commonly abbreviated HoTT.
Answer
homotopy
- 6Lean is very similar to the axiom system known as_____.
Hint
This abbreviation is associated with Coq's foundational calculus.
Answer
CIC
- 7The mathlib library develops pure mathematics as well as tools for programming and_____.
Hint
This involves writing programs that manipulate or generate programs.
Answer
metaprogramming
- 8The untyped lambda calculus was developed by_____Church.
Hint
He is also associated with the Church-Rosser theorem.
Answer
Alonzo
- 9The lambda calculus is a simple model of_____.
Hint
It describes how expressions are evaluated.
Answer
computation
- 10The computational power of the lambda calculus is equivalent to that of_____machines.
Hint
These machines are a standard model of computation.
Answer
Turing
- 11In the grammar of the untyped lambda calculus, an expression can be a variable, an application, or a_____.
Hint
This construct binds a variable inside a term.
Answer
lambda
- 12An application in the lambda calculus is represented by the adjacency of two_____.
Hint
One expression is applied to another.
Answer
expressions
- 13A lambda expression binds the value of a variable inside a_____.
Hint
The bound variable occurs within this syntactic object.
Answer
term
- 14The reduction rules described for the lambda calculus are_____because reductions may be performed in different locations.
Hint
There can be multiple possible reduction paths.
Answer
nondeterministic
- 15The principal reduction rule for applying a lambda is called_____reduction.
Hint
It substitutes an argument into the body of a function.
Answer
beta
- 16Different reduction paths in the lambda calculus can be joined because reduction is_____.
Hint
Two terms reached from a common starting term can reduce to a common term.
Answer
confluent
- 17The theorem stating that divergent reduction paths can be joined is the_____theorem.
Hint
Its name combines the surname of the lambda calculus's creator with another surname.
Answer
Church-Rosser
- 18Call-by-value and call-by-name are restrictions determined by how_____is performed.
Hint
They specify evaluation strategies.
Answer
reductions
- 19In simple type theory, lambda-bound variables are annotated with a_____.
Hint
The annotation constrains which arguments may be supplied.
Answer
type
- 20The basic types in the simple system consist of function types and a base type of_____.
Hint
This base type ensures that the theory contains at least one type.
Answer
individuals
- 21The typing rule that retrieves a variable's type from the context is the_____rule.
Hint
It looks for a declaration of the variable in Gamma.
Answer
variable
- 22To type an application, the function's domain must match the_____of its argument.
Hint
The argument must have the function's expected input type.
Answer
type
- 23If a function has domain alpha and codomain beta, applying it to an argument of type alpha produces a result of type_____.
Hint
This is the function's output type.
Answer
beta
- 24A lambda has function type alpha to beta when its body has type beta in a context extended with the variable having type_____.
Hint
This is the declared input type of the lambda.
Answer
alpha
- 25Unlike the untyped lambda calculus, simple type theory has the property of_____normalization.
Hint
This means every well-typed term eventually reaches a normal form.
Answer
strong
- 26The_____combinator can be written in the untyped lambda calculus but has no valid typing in simple type theory.
Hint
It is associated with general recursion and infinite unfolding.
Answer
Y
- 27Dependent function types are also called dependent_____types.
Hint
The notation commonly uses the Greek letter associated with a product-like binder.
Answer
Pi
- 28In a dependent function type, the codomain is allowed to refer to the bound variable_____.
Hint
This is the variable introduced by the forall binder.
Answer
x
- 29Application of a dependent function requires substituting the argument for the bound variable in the_____.
Hint
This is the result type that may depend on the input.
Answer
codomain
- 30A type of types is introduced so that the system can quantify over variables that are themselves_____.
Hint
This supports polymorphic constructions such as the identity function.
Answer
types
- 31The type of types in the basic presentation is denoted by_____.
Hint
It is a universe symbol rather than an ordinary base type.
Answer
U
- 32The ability to combine terms and types into one collection allows computation at the_____level.
Hint
This computation can determine or construct types.
Answer
type
- 33The rule asserting that type has type type leads to a version of_____'s paradox.
Hint
This paradox concerns self-reference involving sets or types.
Answer
Russell
- 34The inconsistency from a self-containing universe is avoided by introducing a hierarchy of_____.
Hint
Each level is placed in a higher level rather than containing itself.
Answer
universes
- 35In the universe hierarchy, the universe at level n is a type at level_____.
Hint
A universe is classified one level above itself.
Answer
n+1
- 36When forming a Pi type from two universes, the ordinary universe-level operation is_____.
Hint
The larger of the two levels determines the result.
Answer
max
- 37The correspondence in which propositions behave like types and proofs behave like terms is the_____correspondence.
Hint
It connects logic with type theory.
Answer
Curry-Howard
- 38Under the Curry-Howard correspondence, a false proposition corresponds to an_____type.
Hint
Such a type has no inhabitants.
Answer
empty
- 39The universe of propositions is denoted by P and identified with_____.
Hint
It is the lowest universe level.
Answer
U0
- 40The special universe operation used for propositions is called_____.
Hint
It behaves like max except when one argument is zero.
Answer
imax
- 41The rule using imax to place certain high-level constructions back in the proposition universe is called_____.
Hint
It permits quantification over a collection that includes the resulting proposition universe.
Answer
impredicativity
- 42A judgment allowing a term of type alpha to be used where type beta is expected, when alpha and beta are definitionally equal, is the_____judgment.
Hint
It connects types that reduce to or otherwise count as the same.
Answer
convertibility
- 43The three basic properties of convertibility are reflexivity, symmetry, and_____.
Hint
This property chains two equality judgments together.
Answer
transitivity
- 44The compatibility rules state that definitionally equal parts yield definitionally equal_____terms.
Hint
The property is preserved when larger expressions are constructed.
Answer
whole
- 45The definitional equality corresponding to ordinary beta reduction is called the_____rule.
Hint
It performs substitution in an applied lambda.
Answer
beta
- 46The eta rule applies when the expression being abstracted does not depend on_____.
Hint
This is the variable bound by the lambda.
Answer
x
- 47The rule stating that a lambda abstraction applied to an expression is equal to the original expression is the_____rule.
Hint
It expresses extensionality for functions.
Answer
eta
- 48The mechanism for defining general new types through labeled constructors is called_____types.
Hint
Natural numbers and logical connectives can be defined this way.
Answer
inductive
- 49In an inductive specification, the labels attached to alternatives are called_____.
Hint
They create inhabitants of the inductive type.
Answer
constructors
- 50The natural numbers are generated by zero and the_____function.
Hint
This function maps a natural number to the next natural number.
Answer
successor
- 51The natural numbers form the smallest type freely generated by zero and_____.
Hint
This is the second natural-number constructor.
Answer
successor
- 52An inductive type automatically provides the type itself, its constructors, and a_____.
Hint
This principle supports recursive definitions and induction.
Answer
recursor
- 53The natural-number recursor requires a value for zero and a step function that produces the value for_____from the value for n.
Hint
The step case handles the next natural number.
Answer
successor n
- 54The computation rules for recursors are also definitional equalities and_____rules.
Hint
They describe how recursive computations evaluate.
Answer
reduction
- 55Using the natural-number recursor into Prop gives the principle of induction associated with the_____axioms.
Hint
These axioms characterize the natural numbers.
Answer
Peano
- 56The logical connective that can be defined with one constructor taking proofs of both p and q is_____.
Hint
An inhabitant requires both component propositions.
Answer
and
- 57The logical connective with one constructor for p and another for q is_____.
Hint
Either side independently provides an inhabitant.
Answer
or
- 58The proposition with no constructors represents_____or false.
Hint
It has no possible proof.
Answer
Bottom
- 59The proposition with exactly one named constructor represents_____.
Hint
It has one canonical proof.
Answer
true
- 60An inductive declaration must be strictly_____.
Hint
This restriction controls where the inductive type may appear in function domains.
Answer
positive
- 61Strict positivity prohibits the inductive type variable from appearing on the_____side of a function arrow.
Hint
The problematic occurrence is in a function's domain.
Answer
left
- 62Allowing the bad inductive definition would produce an injection from the powerset of the type into the type itself, contradicting_____theorem.
Hint
This theorem states that a set cannot be put into bijection with its powerset.
Answer
Cantor's
- 63Equality is defined as an inductive family with a constructor called_____.
Hint
It proves that an object is equal to itself.
Answer
refl
- 64The equality recursor expresses the_____property of equality.
Hint
If x equals y, a property holding of x can be transferred to y.
Answer
substitution
- 65Proof irrelevance says that any two proofs in the lowest universe are definitionally_____.
Hint
They are treated as indistinguishable for definitional equality.
Answer
equal
- 66Proof irrelevance is incompatible with the HoTT principle of_____.
Hint
This principle treats equivalent types as equal in a strong way.
Answer
univalence
- 67A proposition with multiple possible inhabitants can eliminate only into the lowest universe under the rule called_____elimination.
Hint
The eliminator is restricted to propositions.
Answer
small
- 68A proposition that can eliminate into any universe under special constructor conditions is called a_____eliminating type.
Hint
Such a type has at most one element.
Answer
subsingleton
- 69A type with at most one element is called a_____.
Hint
The name refers to having no more than one inhabitant.
Answer
subsingleton
- 70Propositional extensionality states that propositions equivalent in both directions are_____.
Hint
An inhabitant of p to q and one of q to p establishes the relation.
Answer
equal
- 71Quotient types are generated up to a relation rather than being freely_____.
Hint
The relation identifies certain elements.
Answer
generated
- 72The axiom that allows one to obtain an element of alpha from an inhabitant of nonempty alpha is the axiom of_____.
Hint
It selects an element from a nonempty type.
Answer
choice
- 73The axiom of choice has no computational_____.
Hint
It supports classical reasoning rather than evaluation.
Answer
interpretation
- 74From the classical axioms in the system one can derive the law of_____middle.
Hint
For a proposition, this principle asserts that it or its negation holds.
Answer
excluded
- 75The combination of axioms described makes the type system_____.
Hint
There is no terminating algorithm that always decides every typing judgment.
Answer
undecidable
- 76The accessibility type acc expresses that every element smaller than a given element is_____.
Hint
This is the inductive idea behind well-foundedness.
Answer
accessible
- 77The accessibility type is used to express that a relation is_____founded.
Hint
This property rules out infinite descending chains.
Answer
well
- 78The accessibility type is a_____eliminating type, so its recursor can eliminate into any universe.
Hint
Its nonrecursive argument appears in the target type.
Answer
subsingleton
- 79Lean's algorithmic typing judgment is an_____of the full typing rules.
Hint
It may reject some terms that are valid according to the ideal rules.
Answer
underapproximation
- 80The algorithmic definitional equality relation can fail to be_____because otherwise it would recover the undecidable full relation.
Hint
This is the property that would allow equality paths to be chained.
Answer
transitive
- 81The property that reduction preserves typing is called subject_____.
Hint
It concerns retaining a term's type after evaluation.
Answer
reduction
- 82The set-theoretic interpretation of Lean treats types as sets and elements of types as elements of those_____.
Hint
This is the standard mathematical model described in the talk.
Answer
sets
- 83In the set model, the proposition universe contains an empty set for false and a_____set for true.
Hint
This set contains exactly one proof object.
Answer
singleton
- 84The larger universe levels in the set model must be_____universes.
Hint
These are closed under the relevant type-forming operations.
Answer
Grothendieck
- 85The soundness theorem states that if e has type alpha, then the interpretation of e has_____in the interpretation of alpha.
Hint
The term is shown to belong to the set interpreting its type.
Answer
elementhood
- 86The theorem stating that a term with two types must have definitionally equal types is the unique_____theorem.
Hint
It concerns the uniqueness of a term's type.
Answer
typing
- 87Unique typing holds in Lean because Lean lacks universe_____.
Hint
Coq has this feature, which allows universes to be related by subtyping.
Answer
cumulativity
- 88Two types with different_____cannot be equal.
Hint
Equal types must have the same number of elements.
Answer
cardinality
- 89Even natural numbers and an independently defined identical copy of the natural numbers cannot generally be proved_____.
Hint
They can be shown isomorphic, but not necessarily distinct.
Answer
unequal
- 90The equality involving terms whose types may differ is called_____equality.
Hint
It contrasts with ordinary homogeneous equality.
Answer
heterogeneous
- 91The Lean virtual machine ignores casts between types during_____.
Hint
This is the process of executing terms.
Answer
evaluation
- 92A type erasure map removes all_____from terms while preserving the computation's result.
Hint
It discards static information before execution.
Answer
types
- 93Replacing one definition with another in the VM while preserving behavior is called a VM_____.
Hint
It substitutes an implementation during execution.
Answer
override
- 94A reduction procedure that eventually finds equal terms but may run forever when they are unequal is a_____-decision procedure.
Hint
It decides positive cases but not necessarily negative ones.
Answer
semi
- 95To regain decidability, the talk suggests restricting or eliminating_____elimination.
Hint
This feature enables problematic recursive reductions through propositions.
Answer
subsingleton
- 96The recursive nature of acc is important because it can keep_____indefinitely.
Hint
Its definition repeatedly expands during reduction.
Answer
unfolding
- 97The talk suggests that equality might retain subsingleton elimination because equality is not_____.
Hint
This contrasts with the accessibility type acc.
Answer
recursive

Ask anything
We've read this whole study set, so questions about it get the best answers.