Equations
- [].subsequences = [[]]
- (a :: as).subsequences = as.subsequences ++ List.map (List.cons a) as.subsequences
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lean.getParamLevelName! (Lean.Level.param name) = name
Instances For
Equations
- (Lean.Expr.lam binderName binderType b binderInfo).countLambdas = b.countLambdas + 1
- x✝.countLambdas = 0
Instances For
Equations
- (Lean.Expr.forallE binderName binderType b binderInfo).countForalls = b.countForalls + 1
- x✝.countForalls = 0
Instances For
Given e of the form forall (a_1 : A_1) ... (a_n : A_n), B[a_1, ..., a_n] and p_1 : A_1, ... p_n : A_n, return B[p_1, ..., p_n].
Equations
- e.instantiateForallNoReducing ps = instantiateForallAux✝ ps 0 e
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
noncomputable def
getInstanceFromLeftNonemptyFact
{t : Sort u_1}
(nonemptyFact : Nonempty t = True)
:
t
Equations
- getInstanceFromLeftNonemptyFact nonemptyFact = Classical.choice ⋯
Instances For
noncomputable def
getInstanceFromRightNonemptyFact
{t : Sort u_1}
(nonemptyFact : True = Nonempty t)
:
t
Equations
- getInstanceFromRightNonemptyFact nonemptyFact = Classical.choice ⋯
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Abstracts occurences of p in e. Previously, Meta.kabstract was used for this purpose, but because
Meta.kabstract invokes definitional equality, there were some instances in which Meta.kabstract performed
an abstraction at a position where RuleM.replace would not perform a replacement. This was an issue because it
created inconsistencies between the clauses produced by superposition's main code and proof reconstruction.
abstractAtExpr is written to follow the implementation of Meta.kabstract without invoking definitional equality
(instead testing for equality after instantiating metavariables).
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Meta.abstractAtExpr.visit
(occs : Occurrences := Occurrences.all)
(p : Expr)
(pHeadIdx : HeadIndex)
(pNumArgs : Nat)
(e : Expr)
(offset : Nat)
:
Equations
- One or more equations did not get rendered due to their size.