Datatypes for the inclusion tactic #
This file defines several datatypes and monads (and some basic API for them) that are used
throughout the core of the inclusion tactic.
An IType is a structure that holds the types of an inclusion expression x ∈ s, where
the type of x is elemType, the type of s is setType and the ToSet setType elemType
instance used is toSetInst.
- elemType : Lean.Expr
The element type of an inclusion expression.
- setType : Lean.Expr
The set type of an inclusion expression.
- toSetInst : Lean.Expr
Instances For
Equations
Equations
An IVar is a structure that holds the data of a "free inclusion variable" associated to an
inclusion expression iExpr. This includes a pair of variables setVar, hypVar (which are
sometimes free variables but often synthetic opaque metavariables), where setVar is a variable for
an inclusion set and hypVar is a (variable) proof of iExpr.expr ∈ setVar.
- iExpr : IExpr
The inclusion expression represented by the inclusion variable.
- setVar : Lean.Expr
The inclusion set variable.
- hypVar : Lean.Expr
Instances For
An ExprInclusion is a structure associated with an expression e, containing a computed
inclusion set for e and a proof that this inclusion is correct.
- inclusion : Lean.Expr
The expression computing an inclusion set for
e. - proof : Lean.Expr
A proof of
e ∈ inclusion, whereeis the represented expression.
Instances For
Equations
An ExprInclusionBody is an intermediate structure used in the process of building the
ExprInclusion associated to an expression e. It contains an inclusionBody and proofBody
which contain the (possibly partially completed) body of the inclusion and proof expressions
of the ExprInclusion respectively.
- inclusionBody : Lean.Expr
The (possibly partially completed) body of the inclusion expression.
- proofBody : Lean.Expr
The (possibly partially completed) proof of
e ∈ inclusionBody.
Instances For
Equations
Convert an IVar to an ExprInclusionBody.
Instances For
The fixed context of the InclusionM monad.
- localContext : Lean.LocalContext
The initial
LocalContext. - localInstances : Lean.LocalInstances
The
LocalInstancesassociated withlocalContext. - paramSettings : Lean.NameMap Lean.Expr
A map from inclusion parameter names to their user-supplied values.
The names of the inclusion extension families to use.
- noIVars : Bool
Instances For
The mutable state of the InclusionM monad.
- iVars : Lean.ExprMap IVar
A map from expressions to their inclusion variables.
- iVarDisplays : Lean.ExprMap Lean.Expr
A map from inclusion set variables to the expressions used to display them in traces.
Instances For
The monad used by the inclusion tactic during the construction of ExprInclusions.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Run the InclusionM monad with an explicit context and initial state.
Equations
- x.runWith context state = (ReaderT.run x context).run state
Instances For
Run the InclusionM monad using the current local context.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The fixed context of the HypothesisM monad.
- iVarsMap : Lean.ExprMap IVar
The inclusion variables indexed by their associated expressions.
The inclusion variables whose hypotheses are being constructed.
Instances For
The mutable state of the HypothesisM monad.
- inclusions : Lean.ExprMap (Array ExprInclusionBody)
The candidate inclusion bodies derived for each requested expression.
Instances For
The monad used by the inclusion tactic to construct initial inclusion hypotheses.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Run the HypothesisM monad using the context and state of the current InclusionM
computation.
Equations
- One or more equations did not get rendered due to their size.