chore: update stage0
This commit is contained in:
parent
b7acc38810
commit
3bc26a64e6
37 changed files with 10845 additions and 6816 deletions
4
stage0/src/Init/Data/Array/Basic.lean
generated
4
stage0/src/Init/Data/Array/Basic.lean
generated
|
|
@ -793,4 +793,8 @@ def allDiff [BEq α] (as : Array α) : Bool :=
|
|||
def zip (as : Array α) (bs : Array β) : Array (α × β) :=
|
||||
zipWith as bs Prod.mk
|
||||
|
||||
def split (as : Array α) (p : α → Bool) : Array α × Array α :=
|
||||
as.foldl (init := (#[], #[])) fun (as, bs) a =>
|
||||
if p a then (as.push a, bs) else (as, bs.push a)
|
||||
|
||||
end Array
|
||||
|
|
|
|||
4
stage0/src/Init/Meta.lean
generated
4
stage0/src/Init/Meta.lean
generated
|
|
@ -866,6 +866,10 @@ structure Config where
|
|||
decide : Bool := true
|
||||
deriving Inhabited, BEq, Repr
|
||||
|
||||
-- Configuration object for `simp_all`
|
||||
structure ConfigCtx extends Config where
|
||||
contextual := true
|
||||
|
||||
end Meta.Simp
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
3
stage0/src/Init/SimpLemmas.lean
generated
3
stage0/src/Init/SimpLemmas.lean
generated
|
|
@ -86,5 +86,8 @@ namespace Lean.Simp
|
|||
@[simp] theorem Or_False (p : Prop) : (p ∨ False) = p := propext <| Iff.intro (fun | Or.inl h => h | Or.inr h => False.elim h) (fun h => Or.inl h)
|
||||
@[simp] theorem False_Or (p : Prop) : (False ∨ p) = p := propext <| Iff.intro (fun | Or.inr h => h | Or.inl h => False.elim h) (fun h => Or.inr h)
|
||||
@[simp] theorem Iff_self (p : Prop) : (p ↔ p) = True := propext <| Iff.intro (fun h => trivial) (fun _ => Iff.intro id id)
|
||||
@[simp] theorem False_arrow (p : Prop) : (False → p) = True := propext <| Iff.intro (fun _ => trivial) (by intros; trivial)
|
||||
@[simp] theorem arrow_True (p : Prop) : (p → True) = True := propext <| Iff.intro (fun _ => trivial) (by intros; trivial)
|
||||
@[simp] theorem True_arrow (p : Prop) : (True → p) = p := propext <| Iff.intro (fun h => h trivial) (by intros; trivial)
|
||||
|
||||
end Lean.Simp
|
||||
|
|
|
|||
18
stage0/src/Lean/Elab/App.lean
generated
18
stage0/src/Lean/Elab/App.lean
generated
|
|
@ -69,12 +69,12 @@ private def tryCoeFun? (α : Expr) (a : Expr) : TermElabM (Option Expr) := do
|
|||
let type ← mkArrow α (mkSort v)
|
||||
let γ ← mkFreshExprMVar type
|
||||
let u ← getLevel α
|
||||
let coeFunInstType := mkAppN (Lean.mkConst `CoeFun [u, v]) #[α, γ]
|
||||
let coeFunInstType := mkAppN (Lean.mkConst ``CoeFun [u, v]) #[α, γ]
|
||||
let mvar ← mkFreshExprMVar coeFunInstType MetavarKind.synthetic
|
||||
let mvarId := mvar.mvarId!
|
||||
try
|
||||
if (← synthesizeCoeInstMVarCore mvarId) then
|
||||
expandCoe <| mkAppN (Lean.mkConst `coeFun [u, v]) #[α, γ, a, mvar]
|
||||
expandCoe <| mkAppN (Lean.mkConst ``coeFun [u, v]) #[α, γ, a, mvar]
|
||||
else
|
||||
return none
|
||||
catch _ =>
|
||||
|
|
@ -217,9 +217,9 @@ private def shouldPropagateExpectedTypeFor (nextArg : Arg) : Bool :=
|
|||
| Arg.expr _ => false -- it has already been elaborated
|
||||
| Arg.stx stx =>
|
||||
-- TODO: make this configurable?
|
||||
stx.getKind != `Lean.Parser.Term.hole &&
|
||||
stx.getKind != `Lean.Parser.Term.syntheticHole &&
|
||||
stx.getKind != `Lean.Parser.Term.byTactic
|
||||
stx.getKind != ``Lean.Parser.Term.hole &&
|
||||
stx.getKind != ``Lean.Parser.Term.syntheticHole &&
|
||||
stx.getKind != ``Lean.Parser.Term.byTactic
|
||||
|
||||
/-
|
||||
Auxiliary method for propagating the expected type. We call it as soon as we find the first explict
|
||||
|
|
@ -422,7 +422,7 @@ private def processImplicitArg (k : M Expr) : M Expr := do
|
|||
/- Return true if the next argument at `args` is of the form `_` -/
|
||||
private def isNextArgHole : M Bool := do
|
||||
match (← get).args with
|
||||
| Arg.stx (Syntax.node `Lean.Parser.Term.hole _) :: _ => pure true
|
||||
| Arg.stx (Syntax.node ``Lean.Parser.Term.hole _) :: _ => pure true
|
||||
| _ => pure false
|
||||
|
||||
/-
|
||||
|
|
@ -897,18 +897,18 @@ partial def expandArgs (args : Array Syntax) (pattern := false) : TermElabM (Arr
|
|||
let (args, ellipsis) :=
|
||||
if args.isEmpty then
|
||||
(args, false)
|
||||
else if args.back.isOfKind `Lean.Parser.Term.ellipsis then
|
||||
else if args.back.isOfKind ``Lean.Parser.Term.ellipsis then
|
||||
(args.pop, true)
|
||||
else
|
||||
(args, false)
|
||||
let (namedArgs, args) ← args.foldlM (init := (#[], #[])) fun (namedArgs, args) stx => do
|
||||
if stx.getKind == `Lean.Parser.Term.namedArgument then
|
||||
if stx.getKind == ``Lean.Parser.Term.namedArgument then
|
||||
-- trailing_tparser try ("(" >> ident >> " := ") >> termParser >> ")"
|
||||
let name := stx[1].getId.eraseMacroScopes
|
||||
let val := stx[3]
|
||||
let namedArgs ← addNamedArg namedArgs { ref := stx, name := name, val := Arg.stx val }
|
||||
return (namedArgs, args)
|
||||
else if stx.getKind == `Lean.Parser.Term.ellipsis then
|
||||
else if stx.getKind == ``Lean.Parser.Term.ellipsis then
|
||||
throwErrorAt stx "unexpected '..'"
|
||||
else
|
||||
return (namedArgs, args.push $ Arg.stx stx)
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/Attributes.lean
generated
4
stage0/src/Lean/Elab/Attributes.lean
generated
|
|
@ -33,7 +33,7 @@ instance : Inhabited Attribute where
|
|||
def toAttributeKind [Monad m] [MonadResolveName m] [MonadError m] (attrKindStx : Syntax) : m AttributeKind := do
|
||||
if attrKindStx[0].isNone then
|
||||
return AttributeKind.global
|
||||
else if attrKindStx[0][0].getKind == `Lean.Parser.Term.scoped then
|
||||
else if attrKindStx[0][0].getKind == ``Lean.Parser.Term.scoped then
|
||||
if (← getCurrNamespace).isAnonymous then
|
||||
throwError "scoped attributes must be used inside namespaces"
|
||||
return AttributeKind.scoped
|
||||
|
|
@ -41,7 +41,7 @@ def toAttributeKind [Monad m] [MonadResolveName m] [MonadError m] (attrKindStx :
|
|||
return AttributeKind.local
|
||||
|
||||
def mkAttrKindGlobal : Syntax :=
|
||||
Syntax.node `Lean.Parser.Term.attrKind #[mkNullNode]
|
||||
Syntax.node ``Lean.Parser.Term.attrKind #[mkNullNode]
|
||||
|
||||
def elabAttr {m} [Monad m] [MonadEnv m] [MonadResolveName m] [MonadError m] [MonadMacroAdapter m] [MonadRecDepth m] (attrInstance : Syntax) : m Attribute := do
|
||||
/- attrInstance := ppGroup $ leading_parser attrKind >> attrParser -/
|
||||
|
|
|
|||
6
stage0/src/Lean/Elab/Command.lean
generated
6
stage0/src/Lean/Elab/Command.lean
generated
|
|
@ -219,7 +219,7 @@ instance : MonadRecDepth CommandElabM where
|
|||
|
||||
builtin_initialize registerTraceClass `Elab.command
|
||||
|
||||
partial def elabCommand (stx : Syntax) : CommandElabM Unit :=
|
||||
partial def elabCommand (stx : Syntax) : CommandElabM Unit := do
|
||||
let mkInfoTree := do
|
||||
let ctx ← read
|
||||
let s ← get
|
||||
|
|
@ -252,6 +252,10 @@ partial def elabCommand (stx : Syntax) : CommandElabM Unit :=
|
|||
| some elabFns => elabCommandUsing s stx elabFns
|
||||
| none => throwError "elaboration function for '{k}' has not been implemented"
|
||||
| _ => throwError "unexpected command"
|
||||
if checkTraceOption (← getOptions) `Elab.info then
|
||||
let trees ← getInfoTrees
|
||||
for t in trees do
|
||||
logTrace `Elab.info m!"{← t.format}"
|
||||
|
||||
/-- Adapt a syntax transformation to a regular, command-producing elaborator. -/
|
||||
def adaptExpander (exp : Syntax → CommandElabM Syntax) : CommandElab := fun stx => do
|
||||
|
|
|
|||
3
stage0/src/Lean/Elab/Frontend.lean
generated
3
stage0/src/Lean/Elab/Frontend.lean
generated
|
|
@ -39,9 +39,6 @@ def elabCommandAtFrontend (stx : Syntax) : FrontendM Unit := do
|
|||
enableInfoTree
|
||||
Command.elabCommand stx
|
||||
enableInfoTree infoTreeEnabled
|
||||
let trees ← getInfoTrees
|
||||
for t in trees do
|
||||
trace `Elab.info fun _ => m!"{← t.format}"
|
||||
|
||||
def updateCmdPos : FrontendM Unit := do
|
||||
modify fun s => { s with cmdPos := s.parserState.pos }
|
||||
|
|
|
|||
73
stage0/src/Lean/Elab/Match.lean
generated
73
stage0/src/Lean/Elab/Match.lean
generated
|
|
@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Util.CollectFVars
|
||||
import Lean.Meta.Match.MatchPatternAttr
|
||||
import Lean.Meta.Match.Match
|
||||
import Lean.Meta.SortLocalDecls
|
||||
|
|
@ -576,10 +577,9 @@ private def elabPatterns (patternStxs : Array Syntax) (matchType : Expr) : Excep
|
|||
matchType ← whnf matchType
|
||||
match matchType with
|
||||
| Expr.forallE _ d b _ =>
|
||||
let pattern ← elabTerm patternStx d
|
||||
let pattern ←
|
||||
try
|
||||
withRef patternStx <| ensureHasType d pattern
|
||||
liftM <| withSynthesize <| withoutErrToSorry <| elabTermEnsuringType patternStx d
|
||||
catch ex =>
|
||||
-- Wrap the type mismatch exception for the "discriminant refinement" feature.
|
||||
throwThe PatternElabException { ex := ex, idx := idx }
|
||||
|
|
@ -767,28 +767,73 @@ where
|
|||
| Except.error { idx := idx, ex := ex } =>
|
||||
let indices ← getIndicesToInclude discrs idx
|
||||
if indices.isEmpty then
|
||||
match first? with
|
||||
| none => throw ex
|
||||
| some (s, ex) => s.restore; throw ex
|
||||
throwEx (← updateFirst first? ex)
|
||||
else
|
||||
let first? ← updateFirst first? ex
|
||||
let first ← updateFirst first? ex
|
||||
s.restore
|
||||
let matchType ← updateMatchType indices matchType
|
||||
let indices ← collectDeps indices discrs
|
||||
let matchType ←
|
||||
try
|
||||
updateMatchType indices matchType
|
||||
catch ex =>
|
||||
throwEx first
|
||||
let altViews ← addWildcardPatterns indices.size altViews
|
||||
let discrs := indices ++ discrs
|
||||
loop discrs matchType altViews first?
|
||||
loop discrs matchType altViews first
|
||||
|
||||
updateFirst (first? : Option (SavedState × Exception)) (ex : Exception) : TermElabM (Option (SavedState × Exception)) := do
|
||||
throwEx {α} (p : SavedState × Exception) : TermElabM α := do
|
||||
p.1.restore; throw p.2
|
||||
|
||||
updateFirst (first? : Option (SavedState × Exception)) (ex : Exception) : TermElabM (SavedState × Exception) := do
|
||||
match first? with
|
||||
| none => return some (← saveAllState, ex)
|
||||
| some _ => return first?
|
||||
| none => return (← saveAllState, ex)
|
||||
| some first => return first
|
||||
|
||||
updateMatchType (indices : Array Expr) (matchType : Expr) : TermElabM Expr :=
|
||||
indices.foldrM (init := matchType) fun index matchType => do
|
||||
containsFVar (es : Array Expr) (fvarId : FVarId) : Bool :=
|
||||
es.any fun e => e.isFVar && e.fvarId! == fvarId
|
||||
|
||||
/- Update `indices` by including any free variable `x` s.t.
|
||||
- Type of some `discr` depends on `x`.
|
||||
- Type of `x` depends on some free variable in `indices`.
|
||||
|
||||
If we don't include these extra variables in indices, then
|
||||
`updateMatchType` will generate a type incorrect term.
|
||||
For example, suppose `discr` contains `h : @HEq α a α b`, and
|
||||
`indices` is `#[α, b]`, and `matchType` is `@HEq α a α b → B`.
|
||||
`updateMatchType indices matchType` produces the type
|
||||
`(α' : Type) → (b : α') → @HEq α' a α' b → B` which is type incorrect
|
||||
because we have `a : α`.
|
||||
The method `collectDeps` will include `a` into `indices`.
|
||||
|
||||
This method does not handle dependencies among non-free variables.
|
||||
We rely on the type checking method `check` at `updateMatchType`. -/
|
||||
collectDeps (indices : Array Expr) (discrs : Array Expr) : TermElabM (Array Expr) := do
|
||||
let mut s : CollectFVars.State := {}
|
||||
for discr in discrs do
|
||||
s := collectFVars s (← instantiateMVars (← inferType discr))
|
||||
let (indicesFVar, indicesNonFVar) := indices.split Expr.isFVar
|
||||
let indicesFVar := indicesFVar.map Expr.fvarId!
|
||||
let mut toAdd := #[]
|
||||
for fvarId in s.fvarSet.toList do
|
||||
unless containsFVar discrs fvarId || containsFVar indices fvarId do
|
||||
let localDecl ← getLocalDecl fvarId
|
||||
let mctx ← getMCtx
|
||||
for indexFVarId in indicesFVar do
|
||||
if mctx.localDeclDependsOn localDecl indexFVarId then
|
||||
toAdd := toAdd.push fvarId
|
||||
let lctx ← getLCtx
|
||||
let indicesFVar := (indicesFVar ++ toAdd).qsort fun fvarId₁ fvarId₂ =>
|
||||
(lctx.get! fvarId₁).index < (lctx.get! fvarId₂).index
|
||||
return indicesFVar.map mkFVar ++ indicesNonFVar
|
||||
|
||||
updateMatchType (indices : Array Expr) (matchType : Expr) : TermElabM Expr := do
|
||||
let matchType ← indices.foldrM (init := matchType) fun index matchType => do
|
||||
let indexType ← inferType index
|
||||
let matchTypeBody ← kabstract matchType index
|
||||
let userName ← mkUserNameFor index
|
||||
return Lean.mkForall userName BinderInfo.default indexType matchTypeBody
|
||||
check matchType
|
||||
return matchType
|
||||
|
||||
addWildcardPatterns (num : Nat) (altViews : Array MatchAltView) : TermElabM (Array MatchAltView) := do
|
||||
let hole := mkHole (← getRef)
|
||||
|
|
@ -1050,7 +1095,7 @@ builtin_initialize
|
|||
match stx with
|
||||
| `(nomatch $discrExpr) => do
|
||||
let expectedType ← waitExpectedType expectedType?
|
||||
let discr := Syntax.node `Lean.Parser.Term.matchDiscr #[mkNullNode, discrExpr]
|
||||
let discr := Syntax.node ``Lean.Parser.Term.matchDiscr #[mkNullNode, discrExpr]
|
||||
elabMatchAux #[discr] #[] mkNullNode expectedType
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
|
|
|
|||
31
stage0/src/Lean/Elab/Tactic/Simp.lean
generated
31
stage0/src/Lean/Elab/Tactic/Simp.lean
generated
|
|
@ -12,20 +12,30 @@ import Lean.Meta.Tactic.Replace
|
|||
namespace Lean.Elab.Tactic
|
||||
open Meta
|
||||
|
||||
|
||||
unsafe def evalSimpConfigUnsafe (e : Expr) : TermElabM Meta.Simp.Config :=
|
||||
Term.evalExpr Meta.Simp.Config ``Meta.Simp.Config e
|
||||
|
||||
@[implementedBy evalSimpConfigUnsafe] constant evalSimpConfig (e : Expr) : TermElabM Meta.Simp.Config
|
||||
|
||||
/- `optConfig` is of the form `("(" "config" ":=" term ")")?` -/
|
||||
def elabSimpConfig (optConfig : Syntax) : TermElabM Meta.Simp.Config := do
|
||||
unsafe def evalSimpConfigCtxUnsafe (e : Expr) : TermElabM Meta.Simp.ConfigCtx :=
|
||||
Term.evalExpr Meta.Simp.ConfigCtx ``Meta.Simp.ConfigCtx e
|
||||
@[implementedBy evalSimpConfigCtxUnsafe] constant evalSimpConfigCtx (e : Expr) : TermElabM Meta.Simp.ConfigCtx
|
||||
|
||||
/-
|
||||
`optConfig` is of the form `("(" "config" ":=" term ")")?`
|
||||
If `ctx == false`, the argument is assumed to have type `Meta.Simp.Config`, and `Meta.Simp.ConfigCtx` otherwise. -/
|
||||
def elabSimpConfig (optConfig : Syntax) (ctx : Bool) : TermElabM Meta.Simp.Config := do
|
||||
if optConfig.isNone then
|
||||
return {}
|
||||
if ctx then
|
||||
return { : Meta.Simp.ConfigCtx }.toConfig
|
||||
else
|
||||
return {}
|
||||
else
|
||||
withLCtx {} {} <| withNewMCtxDepth <| Term.withSynthesize do
|
||||
let c ← Term.elabTermEnsuringType optConfig[3] (Lean.mkConst ``Meta.Simp.Config)
|
||||
evalSimpConfig (← instantiateMVars c)
|
||||
let c ← Term.elabTermEnsuringType optConfig[3] (Lean.mkConst (if ctx then ``Meta.Simp.ConfigCtx else ``Meta.Simp.Config))
|
||||
if ctx then
|
||||
return (← evalSimpConfigCtx (← instantiateMVars c)).toConfig
|
||||
else
|
||||
evalSimpConfig (← instantiateMVars c)
|
||||
|
||||
/--
|
||||
Elaborate extra simp lemmas provided to `simp`. `stx` is of the `simpLemma,*`
|
||||
|
|
@ -84,10 +94,11 @@ where
|
|||
else
|
||||
return none
|
||||
|
||||
private def mkSimpContext (stx : Syntax) (eraseLocal : Bool) : TacticM Simp.Context := do
|
||||
-- If `ctx == false`, the argument is assumed to have type `Meta.Simp.Config`, and `Meta.Simp.ConfigCtx` otherwise. -/
|
||||
private def mkSimpContext (stx : Syntax) (eraseLocal : Bool) (ctx := false) : TacticM Simp.Context := do
|
||||
let simpOnly := !stx[2].isNone
|
||||
elabSimpLemmas stx[3] (eraseLocal := eraseLocal) {
|
||||
config := (← elabSimpConfig stx[1])
|
||||
config := (← elabSimpConfig stx[1] (ctx := ctx))
|
||||
simpLemmas := if simpOnly then {} else (← getSimpLemmas)
|
||||
congrLemmas := (← getCongrLemmas)
|
||||
}
|
||||
|
|
@ -125,7 +136,7 @@ where
|
|||
replaceMainGoal [mvarIdNew]
|
||||
|
||||
@[builtinTactic Lean.Parser.Tactic.simpAll] def evalSimpAll : Tactic := fun stx => do
|
||||
let ctx ← mkSimpContext stx (eraseLocal := true)
|
||||
let ctx ← mkSimpContext stx (eraseLocal := true) (ctx := true)
|
||||
match (← simpAll (← getMainGoal) ctx) with
|
||||
| none => replaceMainGoal []
|
||||
| some mvarId => replaceMainGoal [mvarId]
|
||||
|
|
|
|||
42
stage0/src/Lean/Elab/Term.lean
generated
42
stage0/src/Lean/Elab/Term.lean
generated
|
|
@ -111,6 +111,7 @@ structure SavedContext where
|
|||
options : Options
|
||||
openDecls : List OpenDecl
|
||||
macroStack : MacroStack
|
||||
errToSorry : Bool
|
||||
|
||||
/-- We use synthetic metavariables as placeholders for pending elaboration steps. -/
|
||||
inductive SyntheticMVarKind where
|
||||
|
|
@ -474,7 +475,7 @@ def ensureNoUnassignedMVars (decl : Declaration) : TermElabM Unit := do
|
|||
|
||||
/-- Creates syntax for `(` <ident> `:` <type> `)` -/
|
||||
def mkExplicitBinder (ident : Syntax) (type : Syntax) : Syntax :=
|
||||
mkNode `Lean.Parser.Term.explicitBinder #[mkAtom "(", mkNullNode #[ident], mkNullNode #[mkAtom ":", type], mkNullNode, mkAtom ")"]
|
||||
mkNode ``Lean.Parser.Term.explicitBinder #[mkAtom "(", mkNullNode #[ident], mkNullNode #[mkAtom ":", type], mkNullNode, mkAtom ")"]
|
||||
|
||||
/--
|
||||
Convert unassigned universe level metavariables into parameters.
|
||||
|
|
@ -606,9 +607,9 @@ The coercion from `α` to `Thunk α` cannot be implemented using an instance bec
|
|||
eagerly evaluate `e` -/
|
||||
def tryCoeThunk? (expectedType : Expr) (eType : Expr) (e : Expr) : TermElabM (Option Expr) := do
|
||||
match expectedType with
|
||||
| Expr.app (Expr.const `Thunk u _) arg _ =>
|
||||
| Expr.app (Expr.const ``Thunk u _) arg _ =>
|
||||
if (← isDefEq eType arg) then
|
||||
pure (some (mkApp2 (mkConst `Thunk.mk u) arg (mkSimpleThunk e)))
|
||||
pure (some (mkApp2 (mkConst ``Thunk.mk u) arg (mkSimpleThunk e)))
|
||||
else
|
||||
pure none
|
||||
| _ =>
|
||||
|
|
@ -630,9 +631,9 @@ private def tryCoe (errorMsgHeader? : Option String) (expectedType : Expr) (eTyp
|
|||
| none =>
|
||||
let u ← getLevel eType
|
||||
let v ← getLevel expectedType
|
||||
let coeTInstType := mkAppN (mkConst `CoeT [u, v]) #[eType, e, expectedType]
|
||||
let coeTInstType := mkAppN (mkConst ``CoeT [u, v]) #[eType, e, expectedType]
|
||||
let mvar ← mkFreshExprMVar coeTInstType MetavarKind.synthetic
|
||||
let eNew := mkAppN (mkConst `coe [u, v]) #[eType, expectedType, e, mvar]
|
||||
let eNew := mkAppN (mkConst ``coe [u, v]) #[eType, expectedType, e, mvar]
|
||||
let mvarId := mvar.mvarId!
|
||||
try
|
||||
withoutMacroStackAtErr do
|
||||
|
|
@ -785,16 +786,16 @@ private def tryLiftAndCoe (errorMsgHeader? : Option String) (expectedType : Expr
|
|||
let some (m, α) ← isTypeApp? eType | tryPureCoeAndSimple
|
||||
if (← isDefEq m n) then
|
||||
let some monadInst ← isMonad? n | tryCoeSimple
|
||||
try expandCoe (← mkAppOptM `coeM #[m, α, β, none, monadInst, e]) catch _ => throwMismatch
|
||||
try expandCoe (← mkAppOptM ``coeM #[m, α, β, none, monadInst, e]) catch _ => throwMismatch
|
||||
else if autoLift.get (← getOptions) then
|
||||
try
|
||||
-- Construct lift from `m` to `n`
|
||||
let monadLiftType ← mkAppM `MonadLiftT #[m, n]
|
||||
let monadLiftType ← mkAppM ``MonadLiftT #[m, n]
|
||||
let monadLiftVal ← synthesizeInst monadLiftType
|
||||
let u_1 ← getDecLevel α
|
||||
let u_2 ← getDecLevel eType
|
||||
let u_3 ← getDecLevel expectedType
|
||||
let eNew := mkAppN (Lean.mkConst `liftM [u_1, u_2, u_3]) #[m, n, monadLiftVal, α, e]
|
||||
let eNew := mkAppN (Lean.mkConst ``liftM [u_1, u_2, u_3]) #[m, n, monadLiftVal, α, e]
|
||||
let eNewType ← inferType eNew
|
||||
if (← isDefEq expectedType eNewType) then
|
||||
return eNew -- approach 2 worked
|
||||
|
|
@ -802,9 +803,9 @@ private def tryLiftAndCoe (errorMsgHeader? : Option String) (expectedType : Expr
|
|||
let some monadInst ← isMonad? n | tryCoeSimple
|
||||
let u ← getLevel α
|
||||
let v ← getLevel β
|
||||
let coeTInstType := Lean.mkForall `a BinderInfo.default α $ mkAppN (mkConst `CoeT [u, v]) #[α, mkBVar 0, β]
|
||||
let coeTInstType := Lean.mkForall `a BinderInfo.default α $ mkAppN (mkConst ``CoeT [u, v]) #[α, mkBVar 0, β]
|
||||
let coeTInstVal ← synthesizeInst coeTInstType
|
||||
let eNew ← expandCoe (← mkAppN (Lean.mkConst `liftCoeM [u_1, u_2, u_3]) #[m, n, α, β, monadLiftVal, coeTInstVal, monadInst, e])
|
||||
let eNew ← expandCoe (← mkAppN (Lean.mkConst ``liftCoeM [u_1, u_2, u_3]) #[m, n, α, β, monadLiftVal, coeTInstVal, monadInst, e])
|
||||
let eNewType ← inferType eNew
|
||||
unless (← isDefEq expectedType eNewType) do throwMismatch
|
||||
return eNew -- approach 3 worked
|
||||
|
|
@ -885,10 +886,11 @@ private def saveContext : TermElabM SavedContext :=
|
|||
declName? := (← read).declName?
|
||||
options := (← getOptions)
|
||||
openDecls := (← getOpenDecls)
|
||||
errToSorry := (← read).errToSorry
|
||||
}
|
||||
|
||||
def withSavedContext (savedCtx : SavedContext) (x : TermElabM α) : TermElabM α := do
|
||||
withReader (fun ctx => { ctx with declName? := savedCtx.declName?, macroStack := savedCtx.macroStack }) <|
|
||||
withReader (fun ctx => { ctx with declName? := savedCtx.declName?, macroStack := savedCtx.macroStack, errToSorry := savedCtx.errToSorry }) <|
|
||||
withTheReader Core.Context (fun ctx => { ctx with options := savedCtx.options, openDecls := savedCtx.openDecls })
|
||||
x
|
||||
|
||||
|
|
@ -959,14 +961,14 @@ private def isExplicit (stx : Syntax) : Bool :=
|
|||
| _ => false
|
||||
|
||||
private def isExplicitApp (stx : Syntax) : Bool :=
|
||||
stx.getKind == `Lean.Parser.Term.app && isExplicit stx[0]
|
||||
stx.getKind == ``Lean.Parser.Term.app && isExplicit stx[0]
|
||||
|
||||
/--
|
||||
Return true if `stx` if a lambda abstraction containing a `{}` or `[]` binder annotation.
|
||||
Example: `fun {α} (a : α) => a` -/
|
||||
private def isLambdaWithImplicit (stx : Syntax) : Bool :=
|
||||
match stx with
|
||||
| `(fun $binders* => $body) => binders.any fun b => b.isOfKind `Lean.Parser.Term.implicitBinder || b.isOfKind `Lean.Parser.Term.instBinder
|
||||
| `(fun $binders* => $body) => binders.any fun b => b.isOfKind ``Lean.Parser.Term.implicitBinder || b.isOfKind `Lean.Parser.Term.instBinder
|
||||
| _ => false
|
||||
|
||||
private partial def dropTermParens : Syntax → Syntax := fun stx =>
|
||||
|
|
@ -1097,13 +1099,13 @@ private def tryCoeSort (α : Expr) (a : Expr) : TermElabM Expr := do
|
|||
let β ← mkFreshTypeMVar
|
||||
let u ← getLevel α
|
||||
let v ← getLevel β
|
||||
let coeSortInstType := mkAppN (Lean.mkConst `CoeSort [u, v]) #[α, β]
|
||||
let coeSortInstType := mkAppN (Lean.mkConst ``CoeSort [u, v]) #[α, β]
|
||||
let mvar ← mkFreshExprMVar coeSortInstType MetavarKind.synthetic
|
||||
let mvarId := mvar.mvarId!
|
||||
try
|
||||
withoutMacroStackAtErr do
|
||||
if (← synthesizeCoeInstMVarCore mvarId) then
|
||||
expandCoe <| mkAppN (Lean.mkConst `coeSort [u, v]) #[α, β, a, mvar]
|
||||
expandCoe <| mkAppN (Lean.mkConst ``coeSort [u, v]) #[α, β, a, mvar]
|
||||
else
|
||||
throwError "type expected"
|
||||
catch
|
||||
|
|
@ -1389,8 +1391,8 @@ private def mkFreshTypeMVarFor (expectedType? : Option Expr) : TermElabM Expr :=
|
|||
| none => throwIllFormedSyntax
|
||||
let typeMVar ← mkFreshTypeMVarFor expectedType?
|
||||
let u ← getDecLevel typeMVar
|
||||
let mvar ← mkInstMVar (mkApp2 (Lean.mkConst `OfNat [u]) typeMVar (mkNatLit val))
|
||||
let r := mkApp3 (Lean.mkConst `OfNat.ofNat [u]) typeMVar (mkNatLit val) mvar
|
||||
let mvar ← mkInstMVar (mkApp2 (Lean.mkConst ``OfNat [u]) typeMVar (mkNatLit val))
|
||||
let r := mkApp3 (Lean.mkConst ``OfNat.ofNat [u]) typeMVar (mkNatLit val) mvar
|
||||
registerMVarErrorImplicitArgInfo mvar.mvarId! stx r
|
||||
return r
|
||||
|
||||
|
|
@ -1406,12 +1408,12 @@ def elabScientificLit : TermElab := fun stx expectedType? => do
|
|||
| some (m, sign, e) =>
|
||||
let typeMVar ← mkFreshTypeMVarFor expectedType?
|
||||
let u ← getDecLevel typeMVar
|
||||
let mvar ← mkInstMVar (mkApp (Lean.mkConst `OfScientific [u]) typeMVar)
|
||||
return mkApp5 (Lean.mkConst `OfScientific.ofScientific [u]) typeMVar mvar (mkNatLit m) (toExpr sign) (mkNatLit e)
|
||||
let mvar ← mkInstMVar (mkApp (Lean.mkConst ``OfScientific [u]) typeMVar)
|
||||
return mkApp5 (Lean.mkConst ``OfScientific.ofScientific [u]) typeMVar mvar (mkNatLit m) (toExpr sign) (mkNatLit e)
|
||||
|
||||
@[builtinTermElab charLit] def elabCharLit : TermElab := fun stx _ => do
|
||||
match stx.isCharLit? with
|
||||
| some val => return mkApp (Lean.mkConst `Char.ofNat) (mkNatLit val.toNat)
|
||||
| some val => return mkApp (Lean.mkConst ``Char.ofNat) (mkNatLit val.toNat)
|
||||
| none => throwIllFormedSyntax
|
||||
|
||||
@[builtinTermElab quotedName] def elabQuotedName : TermElab := fun stx _ =>
|
||||
|
|
|
|||
76
stage0/src/Lean/Meta/DiscrTree.lean
generated
76
stage0/src/Lean/Meta/DiscrTree.lean
generated
|
|
@ -54,6 +54,7 @@ def Key.ctorIdx : Key → Nat
|
|||
| Key.lit _ => 2
|
||||
| Key.fvar _ _ => 3
|
||||
| Key.const _ _ => 4
|
||||
| Key.arrow => 5
|
||||
|
||||
def Key.lt : Key → Key → Bool
|
||||
| Key.lit v₁, Key.lit v₂ => v₁ < v₂
|
||||
|
|
@ -71,40 +72,42 @@ def Key.format : Key → Format
|
|||
| Key.lit (Literal.strVal v) => repr v
|
||||
| Key.const k _ => fmt k
|
||||
| Key.fvar k _ => fmt k
|
||||
| Key.arrow => "→"
|
||||
|
||||
instance : ToFormat Key := ⟨Key.format⟩
|
||||
|
||||
def Key.arity : Key → Nat
|
||||
| Key.const _ a => a
|
||||
| Key.fvar _ a => a
|
||||
| Key.arrow => 2
|
||||
| _ => 0
|
||||
|
||||
instance {α} : Inhabited (Trie α) := ⟨Trie.node #[] #[]⟩
|
||||
instance : Inhabited (Trie α) := ⟨Trie.node #[] #[]⟩
|
||||
|
||||
def empty {α} : DiscrTree α := { root := {} }
|
||||
def empty : DiscrTree α := { root := {} }
|
||||
|
||||
partial def Trie.format {α} [ToFormat α] : Trie α → Format
|
||||
partial def Trie.format [ToFormat α] : Trie α → Format
|
||||
| Trie.node vs cs => Format.group $ Format.paren $
|
||||
"node" ++ (if vs.isEmpty then Format.nil else " " ++ fmt vs)
|
||||
++ Format.join (cs.toList.map $ fun ⟨k, c⟩ => Format.line ++ Format.paren (fmt k ++ " => " ++ format c))
|
||||
|
||||
instance {α} [ToFormat α] : ToFormat (Trie α) := ⟨Trie.format⟩
|
||||
instance [ToFormat α] : ToFormat (Trie α) := ⟨Trie.format⟩
|
||||
|
||||
partial def format {α} [ToFormat α] (d : DiscrTree α) : Format :=
|
||||
partial def format [ToFormat α] (d : DiscrTree α) : Format :=
|
||||
let (_, r) := d.root.foldl
|
||||
(fun (p : Bool × Format) k c =>
|
||||
(false, p.2 ++ (if p.1 then Format.nil else Format.line) ++ Format.paren (fmt k ++ " => " ++ fmt c)))
|
||||
(true, Format.nil)
|
||||
Format.group r
|
||||
|
||||
instance {α} [ToFormat α] : ToFormat (DiscrTree α) := ⟨format⟩
|
||||
instance [ToFormat α] : ToFormat (DiscrTree α) := ⟨format⟩
|
||||
|
||||
/- The discrimination tree ignores implicit arguments and proofs.
|
||||
We use the following auxiliary id as a "mark". -/
|
||||
private def tmpMVarId : MVarId := `_discr_tree_tmp
|
||||
private def tmpStar := mkMVar tmpMVarId
|
||||
|
||||
instance {α} : Inhabited (DiscrTree α) where
|
||||
instance : Inhabited (DiscrTree α) where
|
||||
default := {}
|
||||
|
||||
/--
|
||||
|
|
@ -137,13 +140,13 @@ instance {α} : Inhabited (DiscrTree α) where
|
|||
Remark: if users have problems with the solution above, we may provide a `noIndexing` annotation,
|
||||
and `ignoreArg` would return true for any term of the form `noIndexing t`.
|
||||
-/
|
||||
private def ignoreArg (a : Expr) (i : Nat) (infos : Array ParamInfo) : MetaM Bool :=
|
||||
private def ignoreArg (a : Expr) (i : Nat) (infos : Array ParamInfo) : MetaM Bool := do
|
||||
if h : i < infos.size then
|
||||
let info := infos.get ⟨i, h⟩
|
||||
if info.instImplicit then
|
||||
pure true
|
||||
return true
|
||||
else if info.implicit then
|
||||
not <$> isType a
|
||||
return not (← isType a)
|
||||
else
|
||||
isProof a
|
||||
else
|
||||
|
|
@ -155,13 +158,13 @@ private partial def pushArgsAux (infos : Array ParamInfo) : Nat → Expr → Arr
|
|||
pushArgsAux infos (i-1) f (todo.push tmpStar)
|
||||
else
|
||||
pushArgsAux infos (i-1) f (todo.push a)
|
||||
| _, _, todo => pure todo
|
||||
| _, _, todo => return todo
|
||||
|
||||
private partial def whnfEta (e : Expr) : MetaM Expr := do
|
||||
let e ← whnf e
|
||||
match e.etaExpandedStrict? with
|
||||
| some e => whnfEta e
|
||||
| none => pure e
|
||||
| none => return e
|
||||
|
||||
/--
|
||||
Return true if `e` is one of the following
|
||||
|
|
@ -254,12 +257,17 @@ private def pushArgs (root : Bool) (todo : Array Expr) (e : Expr) : MetaM (Key
|
|||
return (Key.other, todo)
|
||||
else
|
||||
return (Key.star, todo)
|
||||
| Expr.forallE _ d b _ =>
|
||||
if b.hasLooseBVars then
|
||||
return (Key.other, todo)
|
||||
else
|
||||
return (Key.arrow, todo.push d |>.push b)
|
||||
| _ =>
|
||||
return (Key.other, todo)
|
||||
|
||||
partial def mkPathAux (root : Bool) (todo : Array Expr) (keys : Array Key) : MetaM (Array Key) := do
|
||||
if todo.isEmpty then
|
||||
pure keys
|
||||
return keys
|
||||
else
|
||||
let e := todo.back
|
||||
let todo := todo.pop
|
||||
|
|
@ -274,7 +282,7 @@ def mkPath (e : Expr) : MetaM (Array Key) := do
|
|||
let keys : Array Key := Array.mkEmpty initCapacity
|
||||
mkPathAux (root := true) (todo.push e) keys
|
||||
|
||||
private partial def createNodes {α} (keys : Array Key) (v : α) (i : Nat) : Trie α :=
|
||||
private partial def createNodes (keys : Array Key) (v : α) (i : Nat) : Trie α :=
|
||||
if h : i < keys.size then
|
||||
let k := keys.get ⟨i, h⟩
|
||||
let c := createNodes keys v (i+1)
|
||||
|
|
@ -282,10 +290,10 @@ private partial def createNodes {α} (keys : Array Key) (v : α) (i : Nat) : Tri
|
|||
else
|
||||
Trie.node #[v] #[]
|
||||
|
||||
private def insertVal {α} [BEq α] (vs : Array α) (v : α) : Array α :=
|
||||
private def insertVal [BEq α] (vs : Array α) (v : α) : Array α :=
|
||||
if vs.contains v then vs else vs.push v
|
||||
|
||||
private partial def insertAux {α} [BEq α] (keys : Array Key) (v : α) : Nat → Trie α → Trie α
|
||||
private partial def insertAux [BEq α] (keys : Array Key) (v : α) : Nat → Trie α → Trie α
|
||||
| i, Trie.node vs cs =>
|
||||
if h : i < keys.size then
|
||||
let k := keys.get ⟨i, h⟩
|
||||
|
|
@ -298,7 +306,7 @@ private partial def insertAux {α} [BEq α] (keys : Array Key) (v : α) : Nat
|
|||
else
|
||||
Trie.node (insertVal vs v) cs
|
||||
|
||||
def insertCore {α} [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) : DiscrTree α :=
|
||||
def insertCore [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) : DiscrTree α :=
|
||||
if keys.isEmpty then panic! "invalid key sequence"
|
||||
else
|
||||
let k := keys[0]
|
||||
|
|
@ -310,23 +318,23 @@ def insertCore {α} [BEq α] (d : DiscrTree α) (keys : Array Key) (v : α) : Di
|
|||
let c := insertAux keys v 1 c
|
||||
{ root := d.root.insert k c }
|
||||
|
||||
def insert {α} [BEq α] (d : DiscrTree α) (e : Expr) (v : α) : MetaM (DiscrTree α) := do
|
||||
def insert [BEq α] (d : DiscrTree α) (e : Expr) (v : α) : MetaM (DiscrTree α) := do
|
||||
let keys ← mkPath e
|
||||
return d.insertCore keys v
|
||||
|
||||
private def getKeyArgs (e : Expr) (isMatch : Bool) : MetaM (Key × Array Expr) := do
|
||||
let e ← whnfEta e
|
||||
match e.getAppFn with
|
||||
| Expr.lit v _ => pure (Key.lit v, #[])
|
||||
| Expr.lit v _ => return (Key.lit v, #[])
|
||||
| Expr.const c _ _ =>
|
||||
let nargs := e.getAppNumArgs
|
||||
pure (Key.const c nargs, e.getAppRevArgs)
|
||||
return (Key.const c nargs, e.getAppRevArgs)
|
||||
| Expr.fvar fvarId _ =>
|
||||
let nargs := e.getAppNumArgs
|
||||
pure (Key.fvar fvarId nargs, e.getAppRevArgs)
|
||||
return (Key.fvar fvarId nargs, e.getAppRevArgs)
|
||||
| Expr.mvar mvarId _ =>
|
||||
if isMatch then
|
||||
pure (Key.other, #[])
|
||||
return (Key.other, #[])
|
||||
else do
|
||||
let ctx ← read
|
||||
if ctx.config.isDefEqStuckEx then
|
||||
|
|
@ -344,12 +352,18 @@ private def getKeyArgs (e : Expr) (isMatch : Bool) : MetaM (Key × Array Expr) :
|
|||
a regular metavariable here, otherwise we return the empty set of candidates.
|
||||
This is incorrect because it is equivalent to saying that there is no solution even if
|
||||
the caller assigns `?m` and try again. -/
|
||||
pure (Key.star, #[])
|
||||
return (Key.star, #[])
|
||||
else if (← isReadOnlyOrSyntheticOpaqueExprMVar mvarId) then
|
||||
pure (Key.other, #[])
|
||||
return (Key.other, #[])
|
||||
else
|
||||
pure (Key.star, #[])
|
||||
| _ => pure (Key.other, #[])
|
||||
return (Key.star, #[])
|
||||
| Expr.forallE _ d b _ =>
|
||||
if b.hasLooseBVars then
|
||||
return (Key.other, #[])
|
||||
else
|
||||
return (Key.arrow, #[d, b])
|
||||
| _ =>
|
||||
return (Key.other, #[])
|
||||
|
||||
private abbrev getMatchKeyArgs (e : Expr) : MetaM (Key × Array Expr) :=
|
||||
getKeyArgs e (isMatch := true)
|
||||
|
|
@ -357,21 +371,21 @@ private abbrev getMatchKeyArgs (e : Expr) : MetaM (Key × Array Expr) :=
|
|||
private abbrev getUnifyKeyArgs (e : Expr) : MetaM (Key × Array Expr) :=
|
||||
getKeyArgs e (isMatch := false)
|
||||
|
||||
private def getStarResult {α} (d : DiscrTree α) : Array α :=
|
||||
private def getStarResult (d : DiscrTree α) : Array α :=
|
||||
let result : Array α := Array.mkEmpty initCapacity
|
||||
match d.root.find? Key.star with
|
||||
| none => result
|
||||
| some (Trie.node vs _) => result ++ vs
|
||||
|
||||
partial def getMatch {α} (d : DiscrTree α) (e : Expr) : MetaM (Array α) :=
|
||||
partial def getMatch (d : DiscrTree α) (e : Expr) : MetaM (Array α) :=
|
||||
withReducible do
|
||||
let result := getStarResult d
|
||||
let (k, args) ← getMatchKeyArgs e
|
||||
match k with
|
||||
| Key.star => pure result
|
||||
| Key.star => return result
|
||||
| _ =>
|
||||
match d.root.find? k with
|
||||
| none => pure result
|
||||
| none => return result
|
||||
| some c => process args c result
|
||||
where
|
||||
process (todo : Array Expr) (c : Trie α) (result : Array α) : MetaM (Array α) := do
|
||||
|
|
@ -403,7 +417,7 @@ where
|
|||
let result ← visitStarChild result
|
||||
process (todo ++ args) c.2 result
|
||||
|
||||
partial def getUnify {α} (d : DiscrTree α) (e : Expr) : MetaM (Array α) :=
|
||||
partial def getUnify (d : DiscrTree α) (e : Expr) : MetaM (Array α) :=
|
||||
withReducible do
|
||||
let (k, args) ← getUnifyKeyArgs e
|
||||
match k with
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/DiscrTreeTypes.lean
generated
2
stage0/src/Lean/Meta/DiscrTreeTypes.lean
generated
|
|
@ -17,6 +17,7 @@ inductive Key where
|
|||
| lit : Literal → Key
|
||||
| star : Key
|
||||
| other : Key
|
||||
| arrow : Key
|
||||
deriving Inhabited, BEq
|
||||
|
||||
protected def Key.hash : Key → USize
|
||||
|
|
@ -25,6 +26,7 @@ protected def Key.hash : Key → USize
|
|||
| Key.lit v => mixHash 1879 $ hash v
|
||||
| Key.star => 7883
|
||||
| Key.other => 2411
|
||||
| Key.arrow => 17
|
||||
|
||||
instance : Hashable Key := ⟨Key.hash⟩
|
||||
|
||||
|
|
|
|||
3
stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean
generated
3
stage0/src/Lean/Meta/Tactic/Simp/SimpAll.lean
generated
|
|
@ -91,6 +91,7 @@ def main : M (Option MVarId) := do
|
|||
end SimpAll
|
||||
|
||||
def simpAll (mvarId : MVarId) (ctx : Simp.Context) : MetaM (Option MVarId) := do
|
||||
SimpAll.main.run' { mvarId := mvarId, ctx := ctx }
|
||||
withMVarContext mvarId do
|
||||
SimpAll.main.run' { mvarId := mvarId, ctx := ctx }
|
||||
|
||||
end Lean.Meta
|
||||
|
|
|
|||
204
stage0/stdlib/Init/Data/Array/Basic.c
generated
204
stage0/stdlib/Init/Data/Array/Basic.c
generated
|
|
@ -42,11 +42,14 @@ lean_object* lean_nat_div(lean_object*, lean_object*);
|
|||
extern lean_object* l_addParenHeuristic___closed__2;
|
||||
lean_object* l_Array_reverse_rev___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mkArray___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_split___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Array_split___rarg___closed__1;
|
||||
lean_object* l_Array_findSome_x3f___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapIdxM(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_term_x5b___x5d___closed__9;
|
||||
lean_object* l___private_Init_Data_Array_Basic_0__Array_allDiffAux___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_split(lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l_Array_toListLitAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -60,6 +63,7 @@ lean_object* l_term_x23_x5b___x2c_x5d;
|
|||
lean_object* l_Array_filterMapM___at_Array_filterMap___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_anyMUnsafe_any___at_Array_all___spec__1___rarg(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_split_match__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_findSomeRevM_x3f_find___at_Array_findRev_x3f___spec__1(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_getEvenElems___spec__1(lean_object*);
|
||||
lean_object* l_Array_findM_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -112,6 +116,7 @@ uint8_t l_Array_isEqvAux___rarg(lean_object*, lean_object*, lean_object*, lean_o
|
|||
lean_object* l_Array_mapMUnsafe___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_instToStringArray___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_term_x23_x5b___x2c_x5d___closed__4;
|
||||
lean_object* l_Array_split___rarg(lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Array_findSomeRevM_x3f___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -164,6 +169,7 @@ lean_object* l_Array_foldlM_loop___rarg___lambda__1___boxed(lean_object*, lean_o
|
|||
lean_object* l_Array_allM(lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Array_map___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_allM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_isEqvAux(lean_object*);
|
||||
lean_object* l_Array_forIn(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -510,6 +516,7 @@ lean_object* l_Array_instReprArray___rarg___closed__2;
|
|||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyM_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l_Array_split_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Array_toList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_isPrefixOfAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMapM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -555,6 +562,7 @@ lean_object* l_Array_findSome_x21___rarg(lean_object*, lean_object*, lean_object
|
|||
lean_object* l_Array_findSomeRevM_x3f_find(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe_fold___at_Array_toList___spec__2___rarg(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_instEmptyCollectionArray(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_foldrMUnsafe(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_instReprArray___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_swapAt_x21(lean_object*);
|
||||
|
|
@ -597,6 +605,7 @@ lean_object* l_List_toArrayAux_match__1___rarg(lean_object*, lean_object*, lean_
|
|||
lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
|
||||
lean_object* l_Array_zipWithAux___at_Array_zip___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_forM___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1(lean_object*);
|
||||
lean_object* l_Array_mapIdxM_map___at_Array_mapIdx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_findSomeM_x3f(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_findIdxM_x3f___rarg___closed__1;
|
||||
|
|
@ -10155,6 +10164,199 @@ lean_dec(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_split_match__1___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
x_4 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_apply_2(x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_split_match__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Array_split_match__1___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = x_3 == x_4;
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; size_t x_8; size_t x_9; uint8_t x_10;
|
||||
x_7 = lean_array_uget(x_2, x_3);
|
||||
x_8 = 1;
|
||||
x_9 = x_3 + x_8;
|
||||
x_10 = !lean_is_exclusive(x_5);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_11 = lean_ctor_get(x_5, 0);
|
||||
x_12 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_7);
|
||||
x_13 = lean_apply_1(x_1, x_7);
|
||||
x_14 = lean_unbox(x_13);
|
||||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
x_15 = lean_array_push(x_12, x_7);
|
||||
lean_ctor_set(x_5, 1, x_15);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17;
|
||||
x_17 = lean_array_push(x_11, x_7);
|
||||
lean_ctor_set(x_5, 0, x_17);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_19 = lean_ctor_get(x_5, 0);
|
||||
x_20 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_5);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_7);
|
||||
x_21 = lean_apply_1(x_1, x_7);
|
||||
x_22 = lean_unbox(x_21);
|
||||
lean_dec(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_array_push(x_20, x_7);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_19);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
x_3 = x_9;
|
||||
x_5 = x_24;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_array_push(x_19, x_7);
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_20);
|
||||
x_3 = x_9;
|
||||
x_5 = x_27;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg___boxed), 5, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_split___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
lean_ctor_set(x_2, 1, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_split___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint8_t x_5;
|
||||
x_3 = lean_array_get_size(x_1);
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = lean_nat_dec_lt(x_4, x_3);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_6 = l_Array_split___rarg___closed__1;
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = lean_nat_dec_le(x_3, x_3);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_8 = l_Array_split___rarg___closed__1;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = 0;
|
||||
x_10 = lean_usize_of_nat(x_3);
|
||||
lean_dec(x_3);
|
||||
x_11 = l_Array_split___rarg___closed__1;
|
||||
x_12 = l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg(x_2, x_1, x_9, x_10, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_split(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_split___rarg___boxed), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
size_t x_6; size_t x_7; lean_object* x_8;
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_unbox_usize(x_4);
|
||||
lean_dec(x_4);
|
||||
x_8 = l_Array_foldlMUnsafe_fold___at_Array_split___spec__1___rarg(x_1, x_2, x_6, x_7, x_5);
|
||||
lean_dec(x_2);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_split___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Array_split___rarg(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Nat_Basic(lean_object*);
|
||||
lean_object* initialize_Init_Data_Fin_Basic(lean_object*);
|
||||
lean_object* initialize_Init_Data_UInt(lean_object*);
|
||||
|
|
@ -10258,6 +10460,8 @@ l_Array_insertAt___rarg___closed__2 = _init_l_Array_insertAt___rarg___closed__2(
|
|||
lean_mark_persistent(l_Array_insertAt___rarg___closed__2);
|
||||
l_Array_insertAt___rarg___closed__3 = _init_l_Array_insertAt___rarg___closed__3();
|
||||
lean_mark_persistent(l_Array_insertAt___rarg___closed__3);
|
||||
l_Array_split___rarg___closed__1 = _init_l_Array_split___rarg___closed__1();
|
||||
lean_mark_persistent(l_Array_split___rarg___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
10
stage0/stdlib/Init/Meta.c
generated
10
stage0/stdlib/Init/Meta.c
generated
|
|
@ -255,6 +255,7 @@ lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta
|
|||
lean_object* l_Lean_Syntax_structEq___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId___boxed(lean_object*);
|
||||
uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6032_(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Meta_Simp_ConfigCtx_contextual___default;
|
||||
lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*);
|
||||
lean_object* l_Lean_Syntax_setTailInfo_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -14401,6 +14402,14 @@ x_1 = l_Lean_Meta_Simp_instReprConfig___closed__1;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lean_Meta_Simp_ConfigCtx_contextual___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Array_Basic(lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
lean_object* initialize_Init_Meta(lean_object* w) {
|
||||
|
|
@ -14682,6 +14691,7 @@ l_Lean_Meta_Simp_instReprConfig___closed__1 = _init_l_Lean_Meta_Simp_instReprCon
|
|||
lean_mark_persistent(l_Lean_Meta_Simp_instReprConfig___closed__1);
|
||||
l_Lean_Meta_Simp_instReprConfig = _init_l_Lean_Meta_Simp_instReprConfig();
|
||||
lean_mark_persistent(l_Lean_Meta_Simp_instReprConfig);
|
||||
l_Lean_Meta_Simp_ConfigCtx_contextual___default = _init_l_Lean_Meta_Simp_ConfigCtx_contextual___default();
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
17
stage0/stdlib/Lean/Compiler/IR/Boxing.c
generated
17
stage0/stdlib/Lean/Compiler/IR/Boxing.c
generated
|
|
@ -20,6 +20,7 @@ size_t l_USize_add(size_t, size_t);
|
|||
lean_object* l_Array_anyMUnsafe_any___at_Lean_IR_ExplicitBoxing_getScrutineeType___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_castResultIfNeeded___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_IR_ExplicitBoxing_castArgsIfNeeded___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_split___rarg___closed__1;
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_addBoxedVersions(lean_object*, lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -194,7 +195,6 @@ lean_object* l_Lean_IR_ExplicitBoxing_castVarIfNeeded(lean_object*, lean_object*
|
|||
extern lean_object* l_Lean_mkSepArray___closed__1;
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_IR_ExplicitBoxing_addBoxedVersions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_BoxingContext_localCtx___default;
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1;
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_mkCast___closed__3;
|
||||
lean_object* l_Lean_IR_Decl_params(lean_object*);
|
||||
lean_object* l_Lean_IR_ExplicitBoxing_getJPParams(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -776,17 +776,6 @@ lean_ctor_set(x_11, 1, x_5);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
lean_ctor_set(x_2, 1, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___boxed__const__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -820,7 +809,7 @@ x_13 = lean_ctor_get(x_11, 1);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = lean_array_get_size(x_12);
|
||||
x_15 = l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1;
|
||||
x_15 = l_Array_split___rarg___closed__1;
|
||||
lean_inc(x_14);
|
||||
x_16 = l_Nat_foldM_loop___at_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___spec__2(x_3, x_12, x_14, x_14, x_15, x_13);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -8813,8 +8802,6 @@ if (lean_io_result_is_error(res)) return res;
|
|||
lean_dec_ref(res);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__1 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__1();
|
||||
lean_mark_persistent(l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__1);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1();
|
||||
lean_mark_persistent(l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___boxed__const__1 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___boxed__const__1);
|
||||
l_Lean_IR_ExplicitBoxing_BoxingContext_f___default = _init_l_Lean_IR_ExplicitBoxing_BoxingContext_f___default();
|
||||
|
|
|
|||
19
stage0/stdlib/Lean/Elab/App.c
generated
19
stage0/stdlib/Lean/Elab/App.c
generated
|
|
@ -50,6 +50,7 @@ lean_object* l_Lean_mkSort(lean_object*);
|
|||
lean_object* l_Std_fmt___at_Lean_Position_instToFormatPosition___spec__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
extern lean_object* l_Array_split___rarg___closed__1;
|
||||
lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -567,7 +568,6 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(lean_object*,
|
|||
uint8_t l_Lean_Expr_isOptParam(lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandArgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandArgs___closed__1;
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -31121,17 +31121,6 @@ return x_89;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandArgs___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
lean_ctor_set(x_2, 1, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_expandArgs(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -31234,7 +31223,7 @@ size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27;
|
|||
x_24 = 0;
|
||||
x_25 = lean_usize_of_nat(x_14);
|
||||
lean_dec(x_14);
|
||||
x_26 = l_Lean_Elab_Term_expandArgs___closed__1;
|
||||
x_26 = l_Array_split___rarg___closed__1;
|
||||
x_27 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3(x_12, x_24, x_25, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_12);
|
||||
if (lean_obj_tag(x_27) == 0)
|
||||
|
|
@ -31396,7 +31385,7 @@ size_t x_61; size_t x_62; lean_object* x_63; lean_object* x_64;
|
|||
x_61 = 0;
|
||||
x_62 = lean_usize_of_nat(x_49);
|
||||
lean_dec(x_49);
|
||||
x_63 = l_Lean_Elab_Term_expandArgs___closed__1;
|
||||
x_63 = l_Array_split___rarg___closed__1;
|
||||
x_64 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3(x_47, x_61, x_62, x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_47);
|
||||
if (lean_obj_tag(x_64) == 0)
|
||||
|
|
@ -32975,8 +32964,6 @@ l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3___closed__1 =
|
|||
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3___closed__1);
|
||||
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3___closed__2();
|
||||
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandArgs___spec__3___closed__2);
|
||||
l_Lean_Elab_Term_expandArgs___closed__1 = _init_l_Lean_Elab_Term_expandArgs___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandArgs___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Term_elabApp___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabApp___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabApp___closed__1);
|
||||
res = l___regBuiltin_Lean_Elab_Term_elabApp(lean_io_mk_world());
|
||||
|
|
|
|||
3254
stage0/stdlib/Lean/Elab/Command.c
generated
3254
stage0/stdlib/Lean/Elab/Command.c
generated
File diff suppressed because it is too large
Load diff
8
stage0/stdlib/Lean/Elab/DefView.c
generated
8
stage0/stdlib/Lean/Elab/DefView.c
generated
|
|
@ -86,6 +86,7 @@ lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_k
|
|||
lean_object* l_Lean_Elab_Command_mkDefViewOfExample(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__23;
|
||||
lean_object* l_Lean_Elab_Command_mkDefView___closed__2;
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_Compiler_initFn____x40_Lean_Compiler_InlineAttrs___hyg_57____closed__4;
|
||||
lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_MkInstanceName_append(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -103,7 +104,6 @@ lean_object* l_Lean_Elab_toAttributeKind___at_Lean_Elab_Command_mkDefViewOfInsta
|
|||
lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6;
|
||||
lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1143____closed__2;
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__1;
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_String_capitalize(lean_object*);
|
||||
|
|
@ -143,6 +143,7 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_mkFreshInstanceName___rarg(lean_
|
|||
lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_MkInstanceName_collect___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5659____closed__22;
|
||||
lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
|
|
@ -189,7 +190,6 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____close
|
|||
lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_mkOptionalNode___closed__1;
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_Meta_mkArbitrary___closed__2;
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev(lean_object*, lean_object*);
|
||||
|
|
@ -4432,7 +4432,7 @@ x_70 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_70, 0, x_69);
|
||||
x_71 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_71, 0, x_70);
|
||||
x_72 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_68, x_71, x_2, x_3, x_41);
|
||||
x_72 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_68, x_71, x_2, x_3, x_41);
|
||||
lean_dec(x_68);
|
||||
x_73 = !lean_is_exclusive(x_72);
|
||||
if (x_73 == 0)
|
||||
|
|
@ -4457,7 +4457,7 @@ else
|
|||
{
|
||||
lean_object* x_77; uint8_t x_78;
|
||||
lean_dec(x_2);
|
||||
x_77 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_41);
|
||||
x_77 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_41);
|
||||
x_78 = !lean_is_exclusive(x_77);
|
||||
if (x_78 == 0)
|
||||
{
|
||||
|
|
|
|||
23
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
23
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
|
|
@ -31,7 +31,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1090____closed__1;
|
||||
uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__11(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
|
|
@ -90,7 +89,6 @@ lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessa
|
|||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__2___closed__1;
|
||||
lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBNode_find___at_Lean_Elab_applyDerivingHandlers___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_expr_dbg_to_string(lean_object*);
|
||||
|
|
@ -1484,16 +1482,6 @@ return x_18;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2201,17 +2189,6 @@ lean_dec(x_2);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
1334
stage0/stdlib/Lean/Elab/Frontend.c
generated
1334
stage0/stdlib/Lean/Elab/Frontend.c
generated
File diff suppressed because it is too large
Load diff
2444
stage0/stdlib/Lean/Elab/Match.c
generated
2444
stage0/stdlib/Lean/Elab/Match.c
generated
File diff suppressed because it is too large
Load diff
8
stage0/stdlib/Lean/Elab/MutualDef.c
generated
8
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -220,6 +220,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_E
|
|||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___closed__2;
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_15378____closed__7;
|
||||
lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -291,7 +292,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsA
|
|||
lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*);
|
||||
|
|
@ -416,6 +416,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___defaul
|
|||
lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__2___closed__4;
|
||||
lean_object* l_Lean_mkFVar(lean_object*);
|
||||
uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -584,7 +585,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_E
|
|||
lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(lean_object*);
|
||||
lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5198____closed__1;
|
||||
|
|
@ -19429,7 +19429,7 @@ x_80 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_80, 0, x_79);
|
||||
x_81 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
x_82 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_78, x_81, x_2, x_3, x_51);
|
||||
x_82 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_78, x_81, x_2, x_3, x_51);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_78);
|
||||
x_83 = !lean_is_exclusive(x_82);
|
||||
|
|
@ -19456,7 +19456,7 @@ else
|
|||
lean_object* x_87; uint8_t x_88;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_87 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_51);
|
||||
x_87 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_51);
|
||||
x_88 = !lean_is_exclusive(x_87);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
|
|
|
|||
23
stage0/stdlib/Lean/Elab/Print.c
generated
23
stage0/stdlib/Lean/Elab/Print.c
generated
|
|
@ -28,7 +28,6 @@ lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Ela
|
|||
lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1;
|
||||
lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_MessageData_ofList___closed__3;
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
|
|
@ -98,7 +97,6 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct(lean_o
|
|||
extern lean_object* l_Lean_strLitKind___closed__2;
|
||||
lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__3(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_x27(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
|
|
@ -2561,16 +2559,6 @@ return x_23;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2872,17 +2860,6 @@ lean_dec(x_5);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
36
stage0/stdlib/Lean/Elab/Syntax.c
generated
36
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -234,7 +234,6 @@ extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7;
|
|||
lean_object* l_Lean_Elab_Command_expandMacro___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__50;
|
||||
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__9(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l___private_Init_Data_Array_Basic_0__Array_allDiffAux___at_Lean_Elab_Command_mkSimpleDelab___spec__3(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_expandMixfix___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -293,6 +292,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____close
|
|||
lean_object* l_Lean_Elab_Command_mkSimpleDelab___closed__9;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_1346____closed__2;
|
||||
lean_object* l_Lean_Elab_Term_checkLeftRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_LocalContext_empty;
|
||||
extern lean_object* l_Lean_Parser_Command_macro__rules___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Elab_mkUnusedBaseName___at_Lean_Elab_Command_mkNameFromParserSyntax___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -392,7 +392,6 @@ lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__4;
|
|||
extern lean_object* l_stx___x3f___closed__3;
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__2;
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21;
|
||||
lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__2;
|
||||
|
|
@ -568,6 +567,7 @@ lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__2;
|
|||
lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__28;
|
||||
extern lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__3;
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_mkSimpleDelab___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Command_syntaxAbbrev___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
|
||||
|
|
@ -785,9 +785,9 @@ lean_object* l_Lean_Elab_Command_expandMixfix___lambda__7___boxed(lean_object*,
|
|||
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__21;
|
||||
lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_1640____closed__1;
|
||||
lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21;
|
||||
lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Macro_expandMacro_x3fImp(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_String_trim(lean_object*);
|
||||
|
|
@ -801,7 +801,6 @@ extern lean_object* l_Lean_instQuoteBool___closed__4;
|
|||
lean_object* l_Lean_Elab_Command_expandNotation___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___closed__1;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_14458____closed__13;
|
||||
lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_expandOptPrecedence(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -813,6 +812,7 @@ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___boxed
|
|||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28;
|
||||
lean_object* l_Lean_Elab_Command_mkSimpleDelab___closed__10;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__16(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__18;
|
||||
lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__32;
|
||||
|
|
@ -12943,7 +12943,7 @@ lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
|||
lean_inc(x_2);
|
||||
x_32 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_32, 0, x_2);
|
||||
x_33 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__11(x_30, x_32, x_3, x_4, x_26);
|
||||
x_33 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__2(x_30, x_32, x_3, x_4, x_26);
|
||||
x_34 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
|
|
@ -15886,7 +15886,7 @@ x_19 = l_Lean_KernelException_toMessageData___closed__3;
|
|||
x_20 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
x_21 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_6, x_20, x_8, x_9, x_10);
|
||||
x_21 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_6, x_20, x_8, x_9, x_10);
|
||||
lean_dec(x_6);
|
||||
return x_21;
|
||||
}
|
||||
|
|
@ -15923,7 +15923,7 @@ x_32 = l_Lean_KernelException_toMessageData___closed__3;
|
|||
x_33 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
x_34 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_6, x_33, x_8, x_9, x_10);
|
||||
x_34 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_6, x_33, x_8, x_9, x_10);
|
||||
lean_dec(x_6);
|
||||
return x_34;
|
||||
}
|
||||
|
|
@ -16057,7 +16057,7 @@ lean_object* x_8;
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_8 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_5);
|
||||
x_8 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_5);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
|
|
@ -32959,7 +32959,7 @@ x_491 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_491, 0, x_490);
|
||||
x_492 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_492, 0, x_491);
|
||||
x_493 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_489, x_492, x_12, x_13, x_462);
|
||||
x_493 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_489, x_492, x_12, x_13, x_462);
|
||||
lean_dec(x_489);
|
||||
x_494 = !lean_is_exclusive(x_493);
|
||||
if (x_494 == 0)
|
||||
|
|
@ -32984,7 +32984,7 @@ else
|
|||
{
|
||||
lean_object* x_498; uint8_t x_499;
|
||||
lean_dec(x_12);
|
||||
x_498 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_462);
|
||||
x_498 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_462);
|
||||
x_499 = !lean_is_exclusive(x_498);
|
||||
if (x_499 == 0)
|
||||
{
|
||||
|
|
@ -34404,7 +34404,7 @@ x_151 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_151, 0, x_150);
|
||||
x_152 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_152, 0, x_151);
|
||||
x_153 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_149, x_152, x_3, x_4, x_122);
|
||||
x_153 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_149, x_152, x_3, x_4, x_122);
|
||||
lean_dec(x_149);
|
||||
x_154 = !lean_is_exclusive(x_153);
|
||||
if (x_154 == 0)
|
||||
|
|
@ -34429,7 +34429,7 @@ else
|
|||
{
|
||||
lean_object* x_158; uint8_t x_159;
|
||||
lean_dec(x_3);
|
||||
x_158 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_122);
|
||||
x_158 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_122);
|
||||
x_159 = !lean_is_exclusive(x_158);
|
||||
if (x_159 == 0)
|
||||
{
|
||||
|
|
@ -35720,7 +35720,7 @@ x_896 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_896, 0, x_895);
|
||||
x_897 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_897, 0, x_896);
|
||||
x_898 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_894, x_897, x_15, x_16, x_867);
|
||||
x_898 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_894, x_897, x_15, x_16, x_867);
|
||||
lean_dec(x_894);
|
||||
x_899 = !lean_is_exclusive(x_898);
|
||||
if (x_899 == 0)
|
||||
|
|
@ -35745,7 +35745,7 @@ else
|
|||
{
|
||||
lean_object* x_903; uint8_t x_904;
|
||||
lean_dec(x_15);
|
||||
x_903 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_867);
|
||||
x_903 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_867);
|
||||
x_904 = !lean_is_exclusive(x_903);
|
||||
if (x_904 == 0)
|
||||
{
|
||||
|
|
@ -36162,7 +36162,7 @@ x_38 = l_Lean_KernelException_toMessageData___closed__3;
|
|||
x_39 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
x_40 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__9(x_39, x_15, x_16, x_27);
|
||||
x_40 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__16(x_39, x_15, x_16, x_27);
|
||||
x_41 = !lean_is_exclusive(x_40);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
|
|
@ -37052,7 +37052,7 @@ x_503 = l_Lean_Elab_Command_expandElab___lambda__2___closed__40;
|
|||
x_504 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_504, 0, x_502);
|
||||
lean_ctor_set(x_504, 1, x_503);
|
||||
x_505 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_3, x_504, x_15, x_16, x_27);
|
||||
x_505 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_3, x_504, x_15, x_16, x_27);
|
||||
x_506 = !lean_is_exclusive(x_505);
|
||||
if (x_506 == 0)
|
||||
{
|
||||
|
|
@ -37974,7 +37974,7 @@ x_155 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_155, 0, x_154);
|
||||
x_156 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_156, 0, x_155);
|
||||
x_157 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__8(x_153, x_156, x_3, x_4, x_126);
|
||||
x_157 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__15(x_153, x_156, x_3, x_4, x_126);
|
||||
lean_dec(x_153);
|
||||
x_158 = !lean_is_exclusive(x_157);
|
||||
if (x_158 == 0)
|
||||
|
|
@ -37999,7 +37999,7 @@ else
|
|||
{
|
||||
lean_object* x_162; uint8_t x_163;
|
||||
lean_dec(x_3);
|
||||
x_162 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__10___rarg(x_126);
|
||||
x_162 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_126);
|
||||
x_163 = !lean_is_exclusive(x_162);
|
||||
if (x_163 == 0)
|
||||
{
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
6
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
|
|
@ -155,7 +155,6 @@ lean_object* l_Lean_Elab_Tactic_evalRefine___closed__1;
|
|||
extern lean_object* l_Lean_Parser_Tactic_refine___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Tactic_refine___closed__2;
|
||||
extern lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
lean_object* l_Lean_Elab_Tactic_evalExistsIntro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__4;
|
||||
|
|
@ -168,6 +167,7 @@ uint8_t l_Lean_Expr_hasMVar(lean_object*);
|
|||
lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_evalRename___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalRename_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1261,7 +1261,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
|||
x_26 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_25);
|
||||
x_27 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_27 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_28 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
|
|
@ -1326,7 +1326,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
|||
x_37 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_36);
|
||||
x_38 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_38 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_39 = l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1(x_3, x_16, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
4
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
|
|
@ -122,6 +122,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalEraseAuxDiscrs_
|
|||
lean_object* l___private_Lean_Elab_Tactic_Match_0__Lean_Elab_Tactic_mkAuxiliaryMatchTermAux___boxed__const__1;
|
||||
extern lean_object* l_Lean_Parser_Tactic_case___closed__2;
|
||||
lean_object* l_Lean_LocalContext_foldlM___at_Lean_Elab_Tactic_evalEraseAuxDiscrs___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_7189____closed__1;
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_Tactic_evalEraseAuxDiscrs___spec__3(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -135,7 +136,6 @@ extern lean_object* l_prec_x28___x29___closed__7;
|
|||
lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_prec_x28___x29___closed__3;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_14458____closed__2;
|
||||
extern lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_6826____closed__1;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_mkOptionalNode___closed__2;
|
||||
lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_Tactic_evalEraseAuxDiscrs___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1378,7 +1378,7 @@ lean_dec(x_183);
|
|||
x_222 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_222);
|
||||
lean_dec(x_6);
|
||||
x_223 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_6826____closed__1;
|
||||
x_223 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_7189____closed__1;
|
||||
x_224 = l_Lean_Name_appendIndexAfter(x_223, x_222);
|
||||
x_225 = l_Lean_Name_append(x_1, x_224);
|
||||
x_226 = l_Lean_mkIdentFrom(x_30, x_225);
|
||||
|
|
|
|||
642
stage0/stdlib/Lean/Elab/Tactic/Simp.c
generated
642
stage0/stdlib/Lean/Elab/Tactic/Simp.c
generated
|
|
@ -13,16 +13,16 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5;
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__2;
|
||||
|
|
@ -61,17 +61,21 @@ lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object
|
|||
lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___closed__5;
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__14___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_SimpLemmas_erase___rarg___closed__2;
|
||||
extern lean_object* l_Lean_LocalContext_mkEmpty___closed__1;
|
||||
extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2;
|
||||
extern lean_object* l_Lean_instInhabitedException___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_LocalContext_empty;
|
||||
|
|
@ -90,6 +94,7 @@ lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_El
|
|||
extern lean_object* l_term___u2218_____closed__5;
|
||||
lean_object* l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___closed__6;
|
||||
lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*);
|
||||
lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpAll___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -97,16 +102,18 @@ lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0
|
|||
lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry_updateLemmaNames___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__14___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3;
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__3(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__14___lambda__2(lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
|
||||
lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -125,6 +132,7 @@ uint8_t l_Lean_Expr_isConst(lean_object*);
|
|||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_355____closed__3;
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabTermEnsuringType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -217,6 +225,7 @@ lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__2___rarg(lean_object*, lean_o
|
|||
lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSetOption___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1;
|
||||
uint8_t l_Lean_Meta_SimpLemmas_isLemma(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isIdent(lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -309,6 +318,67 @@ lean_dec(x_1);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("ConfigCtx");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3;
|
||||
x_2 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10;
|
||||
x_9 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
|
||||
x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_instInhabitedException___closed__1;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg), 1, 0);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_Elab_Tactic_evalSimpConfigCtx(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -369,52 +439,146 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tac
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_10;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_9 = l_Lean_Meta_instantiateMVars(x_1, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
x_10 = l_Lean_Meta_instantiateMVars(x_2, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_9);
|
||||
x_12 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_11);
|
||||
return x_12;
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_13;
|
||||
uint8_t x_14;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_13 = !lean_is_exclusive(x_9);
|
||||
if (x_13 == 0)
|
||||
x_14 = !lean_is_exclusive(x_10);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
return x_9;
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_14 = lean_ctor_get(x_9, 0);
|
||||
x_15 = lean_ctor_get(x_9, 1);
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_10, 0);
|
||||
x_16 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_9);
|
||||
x_16 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
return x_16;
|
||||
lean_dec(x_10);
|
||||
x_17 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_15);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_18 = l_Lean_Meta_instantiateMVars(x_2, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
uint8_t x_22;
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
x_26 = !lean_is_exclusive(x_21);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_21, 0);
|
||||
x_28 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_21);
|
||||
x_29 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_30;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_30 = !lean_is_exclusive(x_18);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_18, 0);
|
||||
x_32 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_18);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -442,14 +606,26 @@ return x_2;
|
|||
static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpConfig___lambda__1), 8, 0);
|
||||
return x_1;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
|
||||
x_3 = l_Lean_mkConst(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Elab_Tactic_elabSimpConfig___closed__3;
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_Simp_defaultMaxSteps;
|
||||
x_2 = 0;
|
||||
|
|
@ -469,67 +645,165 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 9, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__6() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = l_Lean_Syntax_isNone(x_1);
|
||||
if (x_9 == 0)
|
||||
lean_object* x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_Simp_defaultMaxSteps;
|
||||
x_2 = 1;
|
||||
x_3 = 0;
|
||||
x_4 = lean_alloc_ctor(0, 1, 10);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 1, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 2, x_3);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 3, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 4, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 5, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 6, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 7, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 8, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1 + 9, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_10 = lean_unsigned_to_nat(3u);
|
||||
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
|
||||
x_12 = lean_box(0);
|
||||
x_13 = l_Lean_Elab_Tactic_elabSimpConfig___closed__2;
|
||||
x_14 = 1;
|
||||
x_15 = lean_box(x_14);
|
||||
x_16 = lean_box(x_14);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5);
|
||||
lean_closure_set(x_17, 0, x_11);
|
||||
lean_closure_set(x_17, 1, x_13);
|
||||
lean_closure_set(x_17, 2, x_15);
|
||||
lean_closure_set(x_17, 3, x_16);
|
||||
lean_closure_set(x_17, 4, x_12);
|
||||
x_18 = l_Lean_Elab_Tactic_elabSimpConfig___closed__3;
|
||||
x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_19, 0, x_17);
|
||||
lean_closure_set(x_19, 1, x_18);
|
||||
x_20 = 0;
|
||||
x_21 = lean_box(x_20);
|
||||
x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed), 9, 2);
|
||||
lean_closure_set(x_22, 0, x_19);
|
||||
lean_closure_set(x_22, 1, x_21);
|
||||
x_23 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___rarg), 8, 1);
|
||||
lean_closure_set(x_23, 0, x_22);
|
||||
x_24 = l_Lean_LocalContext_mkEmpty___closed__1;
|
||||
x_25 = l_Array_empty___closed__1;
|
||||
x_26 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_24, x_25, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_26;
|
||||
uint8_t x_10;
|
||||
x_10 = l_Lean_Syntax_isNone(x_1);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_11 = lean_unsigned_to_nat(3u);
|
||||
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
|
||||
x_13 = lean_box(0);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
uint8_t x_44;
|
||||
x_44 = 0;
|
||||
x_14 = x_44;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
uint8_t x_45;
|
||||
x_45 = 1;
|
||||
x_14 = x_45;
|
||||
goto block_43;
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_box(x_14);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabSimpConfig___lambda__1___boxed), 9, 1);
|
||||
lean_closure_set(x_16, 0, x_15);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_17 = l_Lean_Elab_Tactic_elabSimpConfig___closed__2;
|
||||
x_18 = 1;
|
||||
x_19 = lean_box(x_18);
|
||||
x_20 = lean_box(x_18);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5);
|
||||
lean_closure_set(x_21, 0, x_12);
|
||||
lean_closure_set(x_21, 1, x_17);
|
||||
lean_closure_set(x_21, 2, x_19);
|
||||
lean_closure_set(x_21, 3, x_20);
|
||||
lean_closure_set(x_21, 4, x_13);
|
||||
x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_22, 0, x_21);
|
||||
lean_closure_set(x_22, 1, x_16);
|
||||
x_23 = 0;
|
||||
x_24 = lean_box(x_23);
|
||||
x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed), 9, 2);
|
||||
lean_closure_set(x_25, 0, x_22);
|
||||
lean_closure_set(x_25, 1, x_24);
|
||||
x_26 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___rarg), 8, 1);
|
||||
lean_closure_set(x_26, 0, x_25);
|
||||
x_27 = l_Lean_LocalContext_mkEmpty___closed__1;
|
||||
x_28 = l_Array_empty___closed__1;
|
||||
x_29 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_27, x_28, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_30 = l_Lean_Elab_Tactic_elabSimpConfig___closed__4;
|
||||
x_31 = 1;
|
||||
x_32 = lean_box(x_31);
|
||||
x_33 = lean_box(x_31);
|
||||
x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5);
|
||||
lean_closure_set(x_34, 0, x_12);
|
||||
lean_closure_set(x_34, 1, x_30);
|
||||
lean_closure_set(x_34, 2, x_32);
|
||||
lean_closure_set(x_34, 3, x_33);
|
||||
lean_closure_set(x_34, 4, x_13);
|
||||
x_35 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
|
||||
lean_closure_set(x_35, 0, x_34);
|
||||
lean_closure_set(x_35, 1, x_16);
|
||||
x_36 = 0;
|
||||
x_37 = lean_box(x_36);
|
||||
x_38 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed), 9, 2);
|
||||
lean_closure_set(x_38, 0, x_35);
|
||||
lean_closure_set(x_38, 1, x_37);
|
||||
x_39 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___rarg), 8, 1);
|
||||
lean_closure_set(x_39, 0, x_38);
|
||||
x_40 = l_Lean_LocalContext_mkEmpty___closed__1;
|
||||
x_41 = l_Array_empty___closed__1;
|
||||
x_42 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_40, x_41, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_27 = l_Lean_Elab_Tactic_elabSimpConfig___closed__4;
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_8);
|
||||
return x_28;
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47;
|
||||
x_46 = l_Lean_Elab_Tactic_elabSimpConfig___closed__5;
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_9);
|
||||
return x_47;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49;
|
||||
x_48 = l_Lean_Elab_Tactic_elabSimpConfig___closed__6;
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_9);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_Tactic_elabSimpConfig(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
x_11 = l_Lean_Elab_Tactic_elabSimpConfig___lambda__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_11 = l_Lean_Elab_Tactic_elabSimpConfig(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
|
|
@ -2869,60 +3143,61 @@ lean_dec(x_1);
|
|||
return x_14;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_12 = lean_unsigned_to_nat(2u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_isNone(x_13);
|
||||
lean_dec(x_13);
|
||||
x_15 = lean_unsigned_to_nat(1u);
|
||||
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_13 = lean_unsigned_to_nat(2u);
|
||||
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
|
||||
x_15 = l_Lean_Syntax_isNone(x_14);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_unsigned_to_nat(1u);
|
||||
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_17 = l_Lean_Elab_Tactic_elabSimpConfig(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_16);
|
||||
if (x_14 == 0)
|
||||
x_18 = l_Lean_Elab_Tactic_elabSimpConfig(x_17, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_17);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = l_Lean_Meta_getSimpLemmas___rarg(x_10, x_19);
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Lean_Meta_getCongrLemmas___rarg(x_10, x_21);
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = l_Lean_Meta_getSimpLemmas___rarg(x_11, x_20);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_21);
|
||||
x_23 = l_Lean_Meta_getCongrLemmas___rarg(x_11, x_22);
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_unsigned_to_nat(3u);
|
||||
x_26 = l_Lean_Syntax_getArg(x_1, x_25);
|
||||
x_27 = lean_box(0);
|
||||
x_28 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_355____closed__3;
|
||||
x_29 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_29, 0, x_18);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
lean_ctor_set(x_29, 2, x_23);
|
||||
lean_ctor_set(x_29, 3, x_27);
|
||||
x_30 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_26, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24);
|
||||
lean_dec(x_26);
|
||||
return x_30;
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_23);
|
||||
x_26 = lean_unsigned_to_nat(3u);
|
||||
x_27 = l_Lean_Syntax_getArg(x_1, x_26);
|
||||
x_28 = lean_box(0);
|
||||
x_29 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_355____closed__3;
|
||||
x_30 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_30, 0, x_19);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
lean_ctor_set(x_30, 2, x_24);
|
||||
lean_ctor_set(x_30, 3, x_28);
|
||||
x_31 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_27, x_30, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25);
|
||||
lean_dec(x_27);
|
||||
return x_31;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
uint8_t x_32;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -2930,64 +3205,64 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_31 = !lean_is_exclusive(x_17);
|
||||
if (x_31 == 0)
|
||||
x_32 = !lean_is_exclusive(x_18);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
return x_17;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_17, 0);
|
||||
x_33 = lean_ctor_get(x_17, 1);
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_33 = lean_ctor_get(x_18, 0);
|
||||
x_34 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_34);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_17);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_32);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
return x_34;
|
||||
lean_dec(x_18);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_35 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_17, 1);
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_36 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_17);
|
||||
x_37 = l_Lean_Meta_getSimpLemmas___rarg(x_10, x_36);
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_37, 1);
|
||||
x_37 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_18);
|
||||
x_38 = l_Lean_Meta_getSimpLemmas___rarg(x_11, x_37);
|
||||
x_39 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_37);
|
||||
x_40 = l_Lean_Meta_getCongrLemmas___rarg(x_10, x_39);
|
||||
x_41 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_40, 1);
|
||||
x_40 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_38);
|
||||
x_41 = l_Lean_Meta_getCongrLemmas___rarg(x_11, x_40);
|
||||
x_42 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_40);
|
||||
x_43 = lean_unsigned_to_nat(3u);
|
||||
x_44 = l_Lean_Syntax_getArg(x_1, x_43);
|
||||
x_45 = lean_box(0);
|
||||
x_46 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_46, 0, x_35);
|
||||
lean_ctor_set(x_46, 1, x_38);
|
||||
lean_ctor_set(x_46, 2, x_41);
|
||||
lean_ctor_set(x_46, 3, x_45);
|
||||
x_47 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_44, x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_42);
|
||||
lean_dec(x_44);
|
||||
return x_47;
|
||||
x_43 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_41);
|
||||
x_44 = lean_unsigned_to_nat(3u);
|
||||
x_45 = l_Lean_Syntax_getArg(x_1, x_44);
|
||||
x_46 = lean_box(0);
|
||||
x_47 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_47, 0, x_36);
|
||||
lean_ctor_set(x_47, 1, x_39);
|
||||
lean_ctor_set(x_47, 2, x_42);
|
||||
lean_ctor_set(x_47, 3, x_46);
|
||||
x_48 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_45, x_47, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43);
|
||||
lean_dec(x_45);
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_48;
|
||||
uint8_t x_49;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -2995,38 +3270,39 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_48 = !lean_is_exclusive(x_17);
|
||||
if (x_48 == 0)
|
||||
x_49 = !lean_is_exclusive(x_18);
|
||||
if (x_49 == 0)
|
||||
{
|
||||
return x_17;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_17, 0);
|
||||
x_50 = lean_ctor_get(x_17, 1);
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_50 = lean_ctor_get(x_18, 0);
|
||||
x_51 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_17);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
return x_51;
|
||||
lean_dec(x_18);
|
||||
x_52 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_50);
|
||||
lean_ctor_set(x_52, 1, x_51);
|
||||
return x_52;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_2);
|
||||
uint8_t x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_13 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_13 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_14 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_15 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_1);
|
||||
return x_13;
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
|
|
@ -4316,7 +4592,7 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
|
|
@ -4489,7 +4765,7 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
|
|
@ -4722,6 +4998,10 @@ l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4 = _init_l_Lean_Elab_Tactic_e
|
|||
lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4);
|
||||
l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5);
|
||||
l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1 = _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1);
|
||||
l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2 = _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2);
|
||||
l_Lean_Elab_Tactic_elabSimpConfig___closed__1 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__1);
|
||||
l_Lean_Elab_Tactic_elabSimpConfig___closed__2 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__2();
|
||||
|
|
@ -4730,6 +5010,10 @@ l_Lean_Elab_Tactic_elabSimpConfig___closed__3 = _init_l_Lean_Elab_Tactic_elabSim
|
|||
lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__3);
|
||||
l_Lean_Elab_Tactic_elabSimpConfig___closed__4 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__4);
|
||||
l_Lean_Elab_Tactic_elabSimpConfig___closed__5 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__5);
|
||||
l_Lean_Elab_Tactic_elabSimpConfig___closed__6 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__6);
|
||||
l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1);
|
||||
l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2();
|
||||
|
|
|
|||
306
stage0/stdlib/Lean/Elab/Term.c
generated
306
stage0/stdlib/Lean/Elab/Term.c
generated
|
|
@ -104,6 +104,7 @@ lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__6(lean_object*,
|
|||
lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM;
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2;
|
||||
lean_object* l_Lean_Elab_Term_elabNumLit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -170,6 +171,7 @@ lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1___boxed(l
|
|||
uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveLocalName_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1;
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4;
|
||||
extern lean_object* l_Lean_Parser_Term_ensureExpectedType___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -238,7 +240,6 @@ extern lean_object* l_Lean_Meta_isCoeDecl___closed__14;
|
|||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__4;
|
||||
extern lean_object* l_Lean_Meta_mkSorry___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_instInhabitedState___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3;
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_string_utf8_prev(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveName___closed__3;
|
||||
|
|
@ -517,6 +518,7 @@ uint8_t l_Lean_Level_normLtAux(lean_object*, lean_object*, lean_object*, lean_ob
|
|||
lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_mkMessage___lambda__2___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_mkMessage_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveLocalName_loop(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__10;
|
||||
|
|
@ -565,6 +567,7 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort(lean_object
|
|||
lean_object* l_Lean_Elab_Term_TermElabM_run(lean_object*);
|
||||
uint8_t l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_saveContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3;
|
||||
lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1;
|
||||
lean_object* l___private_Init_Data_String_Basic_0__Substring_takeRightWhileAux___at_Lean_Elab_Term_resolveName_x27___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_mkTypeMismatchError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -577,12 +580,10 @@ lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*);
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1;
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1;
|
||||
lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3;
|
||||
lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2;
|
||||
extern lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4;
|
||||
lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabByTactic___closed__2;
|
||||
lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
|
||||
|
|
@ -608,6 +609,7 @@ lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object
|
|||
lean_object* l_Lean_Syntax_isScientificLit_x3f(lean_object*);
|
||||
lean_object* l_List_map___at_Lean_Elab_Term_resolveName_x27___spec__4___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4;
|
||||
extern lean_object* l_Lean_Meta_mkArrow___closed__2;
|
||||
extern lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__1;
|
||||
lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -661,7 +663,6 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed
|
|||
lean_object* l_Lean_Elab_Term_resolveLocalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_strLitKind___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2;
|
||||
lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5659____spec__3___lambda__2___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_withFreshMacroScope(lean_object*);
|
||||
|
|
@ -692,9 +693,9 @@ lean_object* l_Lean_Elab_Term_mkTypeMismatchError_match__1___rarg(lean_object*,
|
|||
lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabOptLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255_(lean_object*);
|
||||
lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_setElabConfig(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__4;
|
||||
|
|
@ -702,7 +703,7 @@ lean_object* l_Lean_Elab_Term_getLetRecsToLift(lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_liftLevelM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*);
|
||||
lean_object* l_Lean_Expr_setAppPPExplicitForExposingMVars(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1071_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1072_(lean_object*);
|
||||
lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___spec__3(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
|
|
@ -715,6 +716,7 @@ lean_object* lean_format_pretty(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_State_levelNames___default;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2;
|
||||
lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Term_addAutoBoundImplicits___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -728,18 +730,17 @@ lean_object* l_List_replace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_thro
|
|||
uint8_t l_Lean_Elab_Term_Context_errToSorry___default;
|
||||
lean_object* l_Lean_Elab_Term_instInhabitedTermElabResult(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_abortTermExceptionId;
|
||||
lean_object* l_Lean_Elab_Term_elabProp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2;
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
||||
lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -751,7 +752,6 @@ lean_object* l_Lean_Elab_Term_mkTermElabAttribute(lean_object*);
|
|||
extern lean_object* l_Lean_numLitKind___closed__2;
|
||||
lean_object* l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1;
|
||||
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Option_get___at_Lean_Core_getMaxHeartbeats___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -813,7 +813,6 @@ lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__3;
|
|||
lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__1;
|
||||
uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3;
|
||||
lean_object* l_Lean_Elab_Term_synthesizeCoeInstMVarCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveName_x27_match__4___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__1;
|
||||
|
|
@ -821,7 +820,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_
|
|||
lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -834,6 +832,7 @@ extern lean_object* l_Lean_Elab_throwAbortTerm___rarg___closed__1;
|
|||
lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabEnsureExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3;
|
||||
uint8_t l_Lean_Elab_Term_Context_implicitLambda___default;
|
||||
lean_object* l_Lean_Elab_Term_levelMVarToParam_x27_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Term_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -913,7 +912,6 @@ lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(lean_ob
|
|||
lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__3;
|
||||
extern lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4;
|
||||
lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__1___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_Context_sectionVars___default;
|
||||
lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__2;
|
||||
|
|
@ -1305,7 +1303,7 @@ lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lea
|
|||
lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445_(lean_object*);
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__2;
|
||||
|
|
@ -1381,6 +1379,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_observing___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4;
|
||||
lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_resolveName___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_usize_to_nat(size_t);
|
||||
|
|
@ -1429,6 +1428,7 @@ lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object*, lean_o
|
|||
lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1;
|
||||
lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_processPostponed(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_uint32_to_nat(uint32_t);
|
||||
|
|
@ -3335,7 +3335,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__2;
|
||||
x_2 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__3;
|
||||
x_3 = lean_unsigned_to_nat(259u);
|
||||
x_3 = lean_unsigned_to_nat(260u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_Name_getString_x21___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -4883,7 +4883,7 @@ lean_ctor_set(x_3, 1, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1071_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1072_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
|
|
@ -12386,7 +12386,7 @@ lean_dec(x_4);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -12394,17 +12394,17 @@ x_1 = lean_mk_string("autoLift");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -12412,13 +12412,13 @@ x_1 = lean_mk_string("insert monadic lifts (i.e., `liftM` and `liftCoeM`) when n
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 1;
|
||||
x_2 = l_Lean_instInhabitedParserDescr___closed__1;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3;
|
||||
x_4 = lean_box(x_1);
|
||||
x_5 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
|
|
@ -12427,17 +12427,17 @@ lean_ctor_set(x_5, 2, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4;
|
||||
x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -12445,17 +12445,17 @@ x_1 = lean_mk_string("maxCoeSize");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -12463,13 +12463,13 @@ x_1 = lean_mk_string("maximum number of instances used to construct an automatic
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_unsigned_to_nat(16u);
|
||||
x_2 = l_Lean_instInhabitedParserDescr___closed__1;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
|
|
@ -12477,12 +12477,12 @@ lean_ctor_set(x_4, 2, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4;
|
||||
x_4 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_RecDepth___hyg_4____spec__1(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -20903,24 +20903,26 @@ return x_10;
|
|||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_saveContext(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_8 = lean_ctor_get(x_5, 0);
|
||||
x_9 = lean_ctor_get(x_5, 5);
|
||||
x_10 = lean_ctor_get(x_1, 2);
|
||||
x_11 = lean_ctor_get(x_1, 3);
|
||||
x_12 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_10);
|
||||
x_12 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_12, 0, x_10);
|
||||
lean_ctor_set(x_12, 1, x_8);
|
||||
lean_ctor_set(x_12, 2, x_9);
|
||||
lean_ctor_set(x_12, 3, x_11);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_7);
|
||||
return x_13;
|
||||
x_13 = lean_alloc_ctor(0, 4, 1);
|
||||
lean_ctor_set(x_13, 0, x_10);
|
||||
lean_ctor_set(x_13, 1, x_8);
|
||||
lean_ctor_set(x_13, 2, x_9);
|
||||
lean_ctor_set(x_13, 3, x_11);
|
||||
lean_ctor_set_uint8(x_13, sizeof(void*)*4, x_12);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_7);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_saveContext___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
|
|
@ -20944,7 +20946,7 @@ uint8_t x_10;
|
|||
x_10 = !lean_is_exclusive(x_3);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18;
|
||||
x_11 = lean_ctor_get(x_3, 3);
|
||||
lean_dec(x_11);
|
||||
x_12 = lean_ctor_get(x_3, 2);
|
||||
|
|
@ -20953,64 +20955,65 @@ x_13 = lean_ctor_get(x_1, 0);
|
|||
x_14 = lean_ctor_get(x_1, 1);
|
||||
x_15 = lean_ctor_get(x_1, 2);
|
||||
x_16 = lean_ctor_get(x_1, 3);
|
||||
x_17 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_13);
|
||||
lean_ctor_set(x_3, 3, x_16);
|
||||
lean_ctor_set(x_3, 2, x_13);
|
||||
x_17 = !lean_is_exclusive(x_7);
|
||||
if (x_17 == 0)
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*8 + 1, x_17);
|
||||
x_18 = !lean_is_exclusive(x_7);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_7, 5);
|
||||
lean_dec(x_18);
|
||||
x_19 = lean_ctor_get(x_7, 0);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_7, 5);
|
||||
lean_dec(x_19);
|
||||
x_20 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_20);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_ctor_set(x_7, 5, x_15);
|
||||
lean_ctor_set(x_7, 0, x_14);
|
||||
x_20 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_20;
|
||||
x_21 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_21 = lean_ctor_get(x_7, 1);
|
||||
x_22 = lean_ctor_get(x_7, 2);
|
||||
x_23 = lean_ctor_get(x_7, 3);
|
||||
x_24 = lean_ctor_get(x_7, 4);
|
||||
x_25 = lean_ctor_get(x_7, 6);
|
||||
x_26 = lean_ctor_get(x_7, 7);
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_22 = lean_ctor_get(x_7, 1);
|
||||
x_23 = lean_ctor_get(x_7, 2);
|
||||
x_24 = lean_ctor_get(x_7, 3);
|
||||
x_25 = lean_ctor_get(x_7, 4);
|
||||
x_26 = lean_ctor_get(x_7, 6);
|
||||
x_27 = lean_ctor_get(x_7, 7);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_7);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
x_27 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_27, 0, x_14);
|
||||
lean_ctor_set(x_27, 1, x_21);
|
||||
lean_ctor_set(x_27, 2, x_22);
|
||||
lean_ctor_set(x_27, 3, x_23);
|
||||
lean_ctor_set(x_27, 4, x_24);
|
||||
lean_ctor_set(x_27, 5, x_15);
|
||||
lean_ctor_set(x_27, 6, x_25);
|
||||
lean_ctor_set(x_27, 7, x_26);
|
||||
x_28 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9);
|
||||
return x_28;
|
||||
x_28 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_28, 0, x_14);
|
||||
lean_ctor_set(x_28, 1, x_22);
|
||||
lean_ctor_set(x_28, 2, x_23);
|
||||
lean_ctor_set(x_28, 3, x_24);
|
||||
lean_ctor_set(x_28, 4, x_25);
|
||||
lean_ctor_set(x_28, 5, x_15);
|
||||
lean_ctor_set(x_28, 6, x_26);
|
||||
lean_ctor_set(x_28, 7, x_27);
|
||||
x_29 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_28, x_8, x_9);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_29 = lean_ctor_get(x_3, 0);
|
||||
x_30 = lean_ctor_get(x_3, 1);
|
||||
x_31 = lean_ctor_get(x_3, 4);
|
||||
x_32 = lean_ctor_get_uint8(x_3, sizeof(void*)*8);
|
||||
x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53;
|
||||
x_30 = lean_ctor_get(x_3, 0);
|
||||
x_31 = lean_ctor_get(x_3, 1);
|
||||
x_32 = lean_ctor_get(x_3, 4);
|
||||
x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*8);
|
||||
x_34 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2);
|
||||
x_35 = lean_ctor_get(x_3, 5);
|
||||
x_36 = lean_ctor_get(x_3, 6);
|
||||
|
|
@ -21019,41 +21022,42 @@ x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 3);
|
|||
lean_inc(x_37);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_3);
|
||||
x_39 = lean_ctor_get(x_1, 0);
|
||||
x_40 = lean_ctor_get(x_1, 1);
|
||||
x_41 = lean_ctor_get(x_1, 2);
|
||||
x_42 = lean_ctor_get(x_1, 3);
|
||||
x_43 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_39);
|
||||
x_43 = lean_alloc_ctor(0, 8, 4);
|
||||
lean_ctor_set(x_43, 0, x_29);
|
||||
lean_ctor_set(x_43, 1, x_30);
|
||||
lean_ctor_set(x_43, 2, x_39);
|
||||
lean_ctor_set(x_43, 3, x_42);
|
||||
lean_ctor_set(x_43, 4, x_31);
|
||||
lean_ctor_set(x_43, 5, x_35);
|
||||
lean_ctor_set(x_43, 6, x_36);
|
||||
lean_ctor_set(x_43, 7, x_37);
|
||||
lean_ctor_set_uint8(x_43, sizeof(void*)*8, x_32);
|
||||
lean_ctor_set_uint8(x_43, sizeof(void*)*8 + 1, x_33);
|
||||
lean_ctor_set_uint8(x_43, sizeof(void*)*8 + 2, x_34);
|
||||
lean_ctor_set_uint8(x_43, sizeof(void*)*8 + 3, x_38);
|
||||
x_44 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_7, 2);
|
||||
x_44 = lean_alloc_ctor(0, 8, 4);
|
||||
lean_ctor_set(x_44, 0, x_30);
|
||||
lean_ctor_set(x_44, 1, x_31);
|
||||
lean_ctor_set(x_44, 2, x_39);
|
||||
lean_ctor_set(x_44, 3, x_42);
|
||||
lean_ctor_set(x_44, 4, x_32);
|
||||
lean_ctor_set(x_44, 5, x_35);
|
||||
lean_ctor_set(x_44, 6, x_36);
|
||||
lean_ctor_set(x_44, 7, x_37);
|
||||
lean_ctor_set_uint8(x_44, sizeof(void*)*8, x_33);
|
||||
lean_ctor_set_uint8(x_44, sizeof(void*)*8 + 1, x_43);
|
||||
lean_ctor_set_uint8(x_44, sizeof(void*)*8 + 2, x_34);
|
||||
lean_ctor_set_uint8(x_44, sizeof(void*)*8 + 3, x_38);
|
||||
x_45 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_7, 3);
|
||||
x_46 = lean_ctor_get(x_7, 2);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_7, 4);
|
||||
x_47 = lean_ctor_get(x_7, 3);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_7, 6);
|
||||
x_48 = lean_ctor_get(x_7, 4);
|
||||
lean_inc(x_48);
|
||||
x_49 = lean_ctor_get(x_7, 7);
|
||||
x_49 = lean_ctor_get(x_7, 6);
|
||||
lean_inc(x_49);
|
||||
x_50 = lean_ctor_get(x_7, 7);
|
||||
lean_inc(x_50);
|
||||
if (lean_is_exclusive(x_7)) {
|
||||
lean_ctor_release(x_7, 0);
|
||||
lean_ctor_release(x_7, 1);
|
||||
|
|
@ -21063,28 +21067,28 @@ if (lean_is_exclusive(x_7)) {
|
|||
lean_ctor_release(x_7, 5);
|
||||
lean_ctor_release(x_7, 6);
|
||||
lean_ctor_release(x_7, 7);
|
||||
x_50 = x_7;
|
||||
x_51 = x_7;
|
||||
} else {
|
||||
lean_dec_ref(x_7);
|
||||
x_50 = lean_box(0);
|
||||
x_51 = lean_box(0);
|
||||
}
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_40);
|
||||
if (lean_is_scalar(x_50)) {
|
||||
x_51 = lean_alloc_ctor(0, 8, 0);
|
||||
if (lean_is_scalar(x_51)) {
|
||||
x_52 = lean_alloc_ctor(0, 8, 0);
|
||||
} else {
|
||||
x_51 = x_50;
|
||||
x_52 = x_51;
|
||||
}
|
||||
lean_ctor_set(x_51, 0, x_40);
|
||||
lean_ctor_set(x_51, 1, x_44);
|
||||
lean_ctor_set(x_51, 2, x_45);
|
||||
lean_ctor_set(x_51, 3, x_46);
|
||||
lean_ctor_set(x_51, 4, x_47);
|
||||
lean_ctor_set(x_51, 5, x_41);
|
||||
lean_ctor_set(x_51, 6, x_48);
|
||||
lean_ctor_set(x_51, 7, x_49);
|
||||
x_52 = lean_apply_7(x_2, x_43, x_4, x_5, x_6, x_51, x_8, x_9);
|
||||
return x_52;
|
||||
lean_ctor_set(x_52, 0, x_40);
|
||||
lean_ctor_set(x_52, 1, x_45);
|
||||
lean_ctor_set(x_52, 2, x_46);
|
||||
lean_ctor_set(x_52, 3, x_47);
|
||||
lean_ctor_set(x_52, 4, x_48);
|
||||
lean_ctor_set(x_52, 5, x_41);
|
||||
lean_ctor_set(x_52, 6, x_49);
|
||||
lean_ctor_set(x_52, 7, x_50);
|
||||
x_53 = lean_apply_7(x_2, x_44, x_4, x_5, x_6, x_52, x_8, x_9);
|
||||
return x_53;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -31696,7 +31700,7 @@ lean_dec(x_3);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -31706,11 +31710,11 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -31881,7 +31885,7 @@ lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lea
|
|||
x_97 = lean_ctor_get(x_91, 1);
|
||||
lean_inc(x_97);
|
||||
lean_dec(x_91);
|
||||
x_98 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
x_98 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
x_99 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_97);
|
||||
x_100 = lean_ctor_get(x_99, 0);
|
||||
lean_inc(x_100);
|
||||
|
|
@ -31923,7 +31927,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean
|
|||
x_53 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_47);
|
||||
x_54 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
x_54 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
x_55 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_53);
|
||||
x_56 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_56);
|
||||
|
|
@ -32004,7 +32008,7 @@ x_41 = l_Lean_KernelException_toMessageData___closed__15;
|
|||
x_42 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_40);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
x_43 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
x_43 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
x_44 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_43, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_36);
|
||||
x_45 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_45);
|
||||
|
|
@ -32066,7 +32070,7 @@ x_79 = l_Lean_KernelException_toMessageData___closed__15;
|
|||
x_80 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_78);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
x_81 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1;
|
||||
x_81 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1;
|
||||
x_82 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_81, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_61);
|
||||
x_83 = lean_ctor_get(x_82, 1);
|
||||
lean_inc(x_83);
|
||||
|
|
@ -36102,7 +36106,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__2;
|
||||
x_2 = l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__6___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(1345u);
|
||||
x_3 = lean_unsigned_to_nat(1347u);
|
||||
x_4 = lean_unsigned_to_nat(31u);
|
||||
x_5 = l_Lean_Name_getString_x21___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -52553,7 +52557,7 @@ lean_dec(x_3);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -52563,7 +52567,7 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -52575,7 +52579,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
|||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1;
|
||||
x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1;
|
||||
x_6 = l_Lean_registerTraceClass(x_5, x_4);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
|
|
@ -52855,7 +52859,7 @@ l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__8 = _init_l_Lean_Elab_Term_
|
|||
lean_mark_persistent(l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__8);
|
||||
l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9 = _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1071_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1072_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Elab_Term_termElabAttribute = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Elab_Term_termElabAttribute);
|
||||
|
|
@ -52926,28 +52930,28 @@ l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7 = _init_l_Lean_Elab_Term_syn
|
|||
lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__7);
|
||||
l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254____closed__4);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3254_(lean_io_mk_world());
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255____closed__4);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3255_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Elab_Term_autoLift = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Elab_Term_autoLift);
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276____closed__4);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3276_(lean_io_mk_world());
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277____closed__4);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3277_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Elab_Term_maxCoeSize = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Elab_Term_maxCoeSize);
|
||||
|
|
@ -53036,9 +53040,9 @@ l_Lean_Elab_Term_mkAuxName___closed__1 = _init_l_Lean_Elab_Term_mkAuxName___clos
|
|||
lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__1);
|
||||
l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772____closed__1);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7772_(lean_io_mk_world());
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787____closed__1);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_7787_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Term_isLetRecAuxMVar___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___closed__1();
|
||||
|
|
@ -53260,9 +53264,9 @@ l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed_
|
|||
lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__3);
|
||||
l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445____closed__1);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11445_(lean_io_mk_world());
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460____closed__1);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_11460_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
8511
stage0/stdlib/Lean/Meta/DiscrTree.c
generated
8511
stage0/stdlib/Lean/Meta/DiscrTree.c
generated
File diff suppressed because it is too large
Load diff
258
stage0/stdlib/Lean/Meta/DiscrTreeTypes.c
generated
258
stage0/stdlib/Lean/Meta/DiscrTreeTypes.c
generated
|
|
@ -20,18 +20,18 @@ lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1;
|
|||
lean_object* l_Lean_Meta_DiscrTree_instHashableKey;
|
||||
extern lean_object* l_Std_PersistentHashMap_root___default___closed__2;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34__match__1(lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35__match__1(lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_root___default___closed__1;
|
||||
size_t l_Lean_Name_hash(lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_instBEqKey;
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_14_(lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_instHashableKey___closed__1;
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34____boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35____boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey;
|
||||
size_t l_Lean_Literal_hash(lean_object*);
|
||||
size_t lean_usize_mix_hash(size_t, size_t);
|
||||
|
|
@ -57,155 +57,183 @@ x_1 = l_Lean_Meta_DiscrTree_instInhabitedKey___closed__1;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
switch (lean_obj_tag(x_1)) {
|
||||
case 0:
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_8);
|
||||
x_9 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_1, 1);
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
lean_dec(x_9);
|
||||
x_10 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_1);
|
||||
x_11 = lean_ctor_get(x_2, 0);
|
||||
x_11 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_2, 1);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_2);
|
||||
x_13 = lean_apply_4(x_3, x_9, x_10, x_11, x_12);
|
||||
return x_13;
|
||||
x_14 = lean_apply_4(x_3, x_10, x_11, x_12, x_13);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_object* x_15;
|
||||
lean_dec(x_3);
|
||||
x_14 = lean_apply_2(x_8, x_1, x_2);
|
||||
return x_14;
|
||||
x_15 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_2) == 1)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_8);
|
||||
x_15 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_1, 1);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_9);
|
||||
x_16 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_1);
|
||||
x_17 = lean_ctor_get(x_2, 0);
|
||||
x_17 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_2, 1);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_2);
|
||||
x_19 = lean_apply_4(x_4, x_15, x_16, x_17, x_18);
|
||||
return x_19;
|
||||
x_20 = lean_apply_4(x_4, x_16, x_17, x_18, x_19);
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
lean_object* x_21;
|
||||
lean_dec(x_4);
|
||||
x_20 = lean_apply_2(x_8, x_1, x_2);
|
||||
return x_20;
|
||||
x_21 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_2) == 2)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
lean_dec(x_8);
|
||||
x_21 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_1);
|
||||
x_22 = lean_ctor_get(x_2, 0);
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
lean_dec(x_9);
|
||||
x_22 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_1);
|
||||
x_23 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_2);
|
||||
x_23 = lean_apply_2(x_5, x_21, x_22);
|
||||
return x_23;
|
||||
x_24 = lean_apply_2(x_5, x_22, x_23);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24;
|
||||
lean_object* x_25;
|
||||
lean_dec(x_5);
|
||||
x_24 = lean_apply_2(x_8, x_1, x_2);
|
||||
return x_24;
|
||||
x_25 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_2) == 3)
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
lean_dec(x_8);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = lean_apply_1(x_6, x_25);
|
||||
return x_26;
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
lean_dec(x_9);
|
||||
x_26 = lean_box(0);
|
||||
x_27 = lean_apply_1(x_6, x_26);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27;
|
||||
lean_object* x_28;
|
||||
lean_dec(x_6);
|
||||
x_27 = lean_apply_2(x_8, x_1, x_2);
|
||||
return x_27;
|
||||
x_28 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
default:
|
||||
case 4:
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_2) == 4)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29;
|
||||
lean_dec(x_8);
|
||||
x_28 = lean_box(0);
|
||||
x_29 = lean_apply_1(x_7, x_28);
|
||||
return x_29;
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_9);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_apply_1(x_7, x_29);
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30;
|
||||
lean_object* x_31;
|
||||
lean_dec(x_7);
|
||||
x_30 = lean_apply_2(x_8, x_1, x_2);
|
||||
return x_30;
|
||||
x_31 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
default:
|
||||
{
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_2) == 5)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
lean_dec(x_9);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = lean_apply_1(x_8, x_32);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_dec(x_8);
|
||||
x_34 = lean_apply_2(x_9, x_1, x_2);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34__match__1(lean_object* x_1) {
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35__match__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34__match__1___rarg), 8, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35__match__1___rarg), 9, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object* x_1, lean_object* x_2) {
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
switch (lean_obj_tag(x_1)) {
|
||||
|
|
@ -301,7 +329,7 @@ x_24 = 0;
|
|||
return x_24;
|
||||
}
|
||||
}
|
||||
default:
|
||||
case 4:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 4)
|
||||
{
|
||||
|
|
@ -316,14 +344,29 @@ x_26 = 0;
|
|||
return x_26;
|
||||
}
|
||||
}
|
||||
default:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 5)
|
||||
{
|
||||
uint8_t x_27;
|
||||
x_27 = 1;
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_28;
|
||||
x_28 = 0;
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_1, x_2);
|
||||
x_3 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
|
|
@ -334,7 +377,7 @@ static lean_object* _init_l_Lean_Meta_DiscrTree_instBEqKey___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34____boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -346,74 +389,91 @@ x_1 = l_Lean_Meta_DiscrTree_instBEqKey___closed__1;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
switch (lean_obj_tag(x_1)) {
|
||||
case 0:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_1, 1);
|
||||
x_8 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_1);
|
||||
x_9 = lean_apply_2(x_2, x_7, x_8);
|
||||
return x_9;
|
||||
x_10 = lean_apply_2(x_2, x_8, x_9);
|
||||
return x_10;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_10 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_1, 1);
|
||||
x_11 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_apply_2(x_3, x_10, x_11);
|
||||
return x_12;
|
||||
x_13 = lean_apply_2(x_3, x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_13 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_1);
|
||||
x_14 = lean_apply_1(x_4, x_13);
|
||||
return x_14;
|
||||
x_15 = lean_apply_1(x_4, x_14);
|
||||
return x_15;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_15 = lean_box(0);
|
||||
x_16 = lean_apply_1(x_5, x_15);
|
||||
return x_16;
|
||||
x_16 = lean_box(0);
|
||||
x_17 = lean_apply_1(x_5, x_16);
|
||||
return x_17;
|
||||
}
|
||||
default:
|
||||
case 4:
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_17 = lean_box(0);
|
||||
x_18 = lean_apply_1(x_6, x_17);
|
||||
return x_18;
|
||||
x_18 = lean_box(0);
|
||||
x_19 = lean_apply_1(x_6, x_18);
|
||||
return x_19;
|
||||
}
|
||||
default:
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_apply_1(x_7, x_20);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -422,7 +482,7 @@ lean_object* l_Lean_Meta_DiscrTree_Key_hash_match__1(lean_object* x_1) {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg), 6, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DiscrTree_Key_hash_match__1___rarg), 7, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -469,12 +529,18 @@ size_t x_20;
|
|||
x_20 = 7883;
|
||||
return x_20;
|
||||
}
|
||||
default:
|
||||
case 4:
|
||||
{
|
||||
size_t x_21;
|
||||
x_21 = 2411;
|
||||
return x_21;
|
||||
}
|
||||
default:
|
||||
{
|
||||
size_t x_22;
|
||||
x_22 = 17;
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Meta/Instances.c
generated
14
stage0/stdlib/Lean/Meta/Instances.c
generated
|
|
@ -97,7 +97,7 @@ extern lean_object* l_Lean_ScopedEnvExtension_instInhabitedDescr___rarg___closed
|
|||
extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2;
|
||||
lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_104____closed__4;
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_registerTagAttribute___closed__5;
|
||||
lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_addInstanceEntry___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_instInhabitedInstances___closed__1;
|
||||
|
|
@ -517,7 +517,7 @@ else
|
|||
{
|
||||
lean_object* x_9; uint8_t x_10;
|
||||
x_9 = lean_array_fget(x_1, x_4);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_5, x_9);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_5, x_9);
|
||||
lean_dec(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
|
|
@ -567,7 +567,7 @@ lean_inc(x_11);
|
|||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_11);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_11);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
|
|
@ -710,7 +710,7 @@ else
|
|||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
x_17 = lean_array_fget(x_5, x_2);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_17);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_17);
|
||||
lean_dec(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
|
|
@ -799,7 +799,7 @@ if (x_18 == 0)
|
|||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_15, 0);
|
||||
x_20 = lean_ctor_get(x_15, 1);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_19);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
|
|
@ -833,7 +833,7 @@ x_27 = lean_ctor_get(x_15, 1);
|
|||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_15);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_26);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_26);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
|
|
@ -954,7 +954,7 @@ if (lean_is_exclusive(x_57)) {
|
|||
lean_dec_ref(x_57);
|
||||
x_62 = lean_box(0);
|
||||
}
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_60);
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_60);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
|
|
|
|||
29
stage0/stdlib/Lean/Meta/Tactic/Apply.c
generated
29
stage0/stdlib/Lean/Meta/Tactic/Apply.c
generated
|
|
@ -19,6 +19,7 @@ lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(l
|
|||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
lean_object* l_Lean_FindMVar_main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_split___rarg___closed__1;
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
|
|
@ -65,7 +66,6 @@ lean_object* l_Lean_FindMVar_visit(lean_object*, lean_object*, lean_object*);
|
|||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_FindMVar_main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1___lambda__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3;
|
||||
lean_object* l_Lean_Meta_apply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_apply_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_List_forM___at_Lean_Meta_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1808,9 +1808,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
lean_ctor_set(x_2, 1, x_1);
|
||||
x_2 = lean_array_to_list(lean_box(0), x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -1818,16 +1816,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorde
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Array_empty___closed__1;
|
||||
x_2 = lean_array_to_list(lean_box(0), x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_2 = l_List_append___rarg(x_1, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -1847,7 +1836,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_10 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3;
|
||||
x_10 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_10);
|
||||
lean_ctor_set(x_11, 1, x_6);
|
||||
|
|
@ -1865,7 +1854,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_13 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3;
|
||||
x_13 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_6);
|
||||
|
|
@ -1877,7 +1866,7 @@ size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18;
|
|||
x_15 = 0;
|
||||
x_16 = lean_usize_of_nat(x_7);
|
||||
lean_dec(x_7);
|
||||
x_17 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_17 = l_Array_split___rarg___closed__1;
|
||||
x_18 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___spec__1(x_1, x_1, x_15, x_16, x_17, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
|
|
@ -2284,7 +2273,7 @@ if (x_27 == 0)
|
|||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
x_28 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_28 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_29 = l_List_append___rarg(x_23, x_28);
|
||||
lean_inc(x_29);
|
||||
x_30 = l_List_forM___at_Lean_Meta_apply___spec__2(x_29, x_7, x_8, x_9, x_10, x_24);
|
||||
|
|
@ -2349,7 +2338,7 @@ if (x_39 == 0)
|
|||
lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
x_40 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_40 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_41 = l_List_append___rarg(x_23, x_40);
|
||||
lean_inc(x_41);
|
||||
x_42 = l_List_forM___at_Lean_Meta_apply___spec__2(x_41, x_7, x_8, x_9, x_10, x_24);
|
||||
|
|
@ -3117,8 +3106,6 @@ l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___close
|
|||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1);
|
||||
l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2);
|
||||
l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__3);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/Tactic/Rewrite.c
generated
4
stage0/stdlib/Lean/Meta/Tactic/Rewrite.c
generated
|
|
@ -69,13 +69,13 @@ lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, l
|
|||
lean_object* l_List_map___at_Lean_Meta_rewrite___spec__1(lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_apply___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
uint8_t l_Lean_Expr_isMVar(lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_rewrite___lambda__4___closed__4;
|
||||
lean_object* l_Lean_mkApp(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_rewrite___lambda__2___closed__5;
|
||||
lean_object* l_Lean_Meta_rewrite_match__3(lean_object*);
|
||||
extern lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
lean_object* l_Lean_Meta_rewrite___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_rewrite_match__4(lean_object*);
|
||||
lean_object* l_Lean_Meta_rewrite___lambda__4___closed__3;
|
||||
|
|
@ -282,7 +282,7 @@ static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__2;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___closed__1;
|
||||
x_2 = l_List_map___at_Lean_Meta_rewrite___spec__1(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
|
|||
210
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c
generated
210
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpAll.c
generated
|
|
@ -17,6 +17,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Simp_SimpA
|
|||
lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpAll_main___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
|
|
@ -27,10 +28,13 @@ lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpAll
|
|||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop_match__3___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_initEntries(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpAll_instInhabitedEntry___closed__1;
|
||||
|
|
@ -54,12 +58,14 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
|||
uint8_t l_Std_PersistentHashMap_contains___at_Lean_Meta_SimpLemmas_isDeclToUnfold___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry_updateLemmaNames___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1;
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpAll_main_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_simpAll___closed__2;
|
||||
lean_object* l_Lean_Meta_SimpAll_main_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_simpAll___closed__1;
|
||||
lean_object* l_Lean_LocalDecl_toExpr(lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_transform___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Meta_assertHypotheses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop_match__2(lean_object*);
|
||||
|
|
@ -90,6 +96,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SimpAll_main___spec__1(size_t
|
|||
lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_getSimpLemmas___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lean_Meta_SimpAll_instInhabitedEntry___closed__1() {
|
||||
|
|
@ -3779,90 +3786,147 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Meta_SimpAll_main___spec__2(x_4, x_5, x_3
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_1);
|
||||
x_7 = l_Lean_Meta_SimpAll_main(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = lean_st_ref_get(x_5, x_9);
|
||||
lean_dec(x_5);
|
||||
x_11 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_st_ref_get(x_1, x_11);
|
||||
lean_dec(x_1);
|
||||
x_13 = !lean_is_exclusive(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
x_15 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_8);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
lean_ctor_set(x_12, 0, x_15);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_16 = lean_ctor_get(x_12, 0);
|
||||
x_17 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_12);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_8);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_19, 1, x_17);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_20;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
x_20 = !lean_is_exclusive(x_7);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_21 = lean_ctor_get(x_7, 0);
|
||||
x_22 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_7);
|
||||
x_23 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_21);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_8, 0, x_7);
|
||||
lean_ctor_set(x_8, 1, x_6);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_simpAll___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_simpAll___lambda__1), 6, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_simpAll___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_simpAll___lambda__2___boxed), 6, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_simpAll(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_8 = 0;
|
||||
x_9 = l_Array_empty___closed__1;
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_alloc_ctor(0, 3, 1);
|
||||
lean_ctor_set(x_10, 0, x_1);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
lean_ctor_set(x_10, 2, x_2);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*3, x_8);
|
||||
x_11 = lean_st_ref_get(x_6, x_7);
|
||||
x_12 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_st_mk_ref(x_10, x_12);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_14);
|
||||
x_16 = l_Lean_Meta_SimpAll_main(x_14, x_3, x_4, x_5, x_6, x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_st_ref_get(x_6, x_18);
|
||||
lean_dec(x_6);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = lean_st_ref_get(x_14, x_20);
|
||||
lean_dec(x_14);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_23);
|
||||
lean_ctor_set(x_21, 0, x_17);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_17);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_6);
|
||||
x_26 = !lean_is_exclusive(x_16);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
x_11 = lean_alloc_closure((void*)(l_Lean_Meta_transform___rarg___lambda__3___boxed), 6, 1);
|
||||
lean_closure_set(x_11, 0, x_10);
|
||||
x_12 = l_Lean_Meta_simpAll___closed__1;
|
||||
x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_13, 0, x_11);
|
||||
lean_closure_set(x_13, 1, x_12);
|
||||
x_14 = l_Lean_Meta_simpAll___closed__2;
|
||||
x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_15, 0, x_13);
|
||||
lean_closure_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
}
|
||||
lean_object* l_Lean_Meta_simpAll___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_16, 0);
|
||||
x_28 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_16);
|
||||
x_29 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_simpAll___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(lean_object*);
|
||||
|
|
@ -3899,6 +3963,10 @@ l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2_
|
|||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___lambda__2___closed__1);
|
||||
l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_SimpAll_0__Lean_Meta_SimpAll_loop___closed__1);
|
||||
l_Lean_Meta_simpAll___closed__1 = _init_l_Lean_Meta_simpAll___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_simpAll___closed__1);
|
||||
l_Lean_Meta_simpAll___closed__2 = _init_l_Lean_Meta_simpAll___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_simpAll___closed__2);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c
generated
14
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c
generated
|
|
@ -115,7 +115,7 @@ lean_object* l_Std_PersistentHashMap_containsAtAux___at_Lean_Meta_SimpLemmas_isD
|
|||
lean_object* l_Lean_Meta_SimpLemmas_post___default;
|
||||
lean_object* l_Lean_Meta_SimpLemmas_addDeclToUnfold(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpLemmas_add_getName_x3f_match__1(lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkSimpLemmaCore___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_2052____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpLemmas_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_2052____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1315,7 +1315,7 @@ else
|
|||
{
|
||||
lean_object* x_9; uint8_t x_10;
|
||||
x_9 = lean_array_fget(x_1, x_4);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_5, x_9);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_5, x_9);
|
||||
lean_dec(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
|
|
@ -1365,7 +1365,7 @@ lean_inc(x_11);
|
|||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_11);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_11);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
|
|
@ -1508,7 +1508,7 @@ else
|
|||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
x_17 = lean_array_fget(x_5, x_2);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_17);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_17);
|
||||
lean_dec(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
|
|
@ -1597,7 +1597,7 @@ if (x_18 == 0)
|
|||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_15, 0);
|
||||
x_20 = lean_ctor_get(x_15, 1);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_19);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
|
|
@ -1631,7 +1631,7 @@ x_27 = lean_ctor_get(x_15, 1);
|
|||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_15);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_26);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_26);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
|
|
@ -1752,7 +1752,7 @@ if (lean_is_exclusive(x_57)) {
|
|||
lean_dec_ref(x_57);
|
||||
x_62 = lean_box(0);
|
||||
}
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_60);
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_60);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Meta/UnificationHint.c
generated
14
stage0/stdlib/Lean/Meta/UnificationHint.c
generated
|
|
@ -104,7 +104,7 @@ lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_Meta_instToFormatUnific
|
|||
lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_Meta_instToFormatUnificationHints___spec__11___closed__1;
|
||||
lean_object* l_Lean_Meta_addUnificationHint_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_UnificationHint___hyg_598____closed__2;
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_registerTagAttribute___closed__5;
|
||||
lean_object* l_Lean_ConstantInfo_levelParams(lean_object*);
|
||||
lean_object* l_Lean_Meta_tryUnificationHints(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1065,7 +1065,7 @@ else
|
|||
{
|
||||
lean_object* x_9; uint8_t x_10;
|
||||
x_9 = lean_array_fget(x_1, x_4);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_5, x_9);
|
||||
x_10 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_5, x_9);
|
||||
lean_dec(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
|
|
@ -1115,7 +1115,7 @@ lean_inc(x_11);
|
|||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_11);
|
||||
x_13 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_11);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
|
|
@ -1258,7 +1258,7 @@ else
|
|||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
x_17 = lean_array_fget(x_5, x_2);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_3, x_17);
|
||||
x_18 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_3, x_17);
|
||||
lean_dec(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
|
|
@ -1347,7 +1347,7 @@ if (x_18 == 0)
|
|||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_15, 0);
|
||||
x_20 = lean_ctor_get(x_15, 1);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_19);
|
||||
x_21 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
|
|
@ -1381,7 +1381,7 @@ x_27 = lean_ctor_get(x_15, 1);
|
|||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_15);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_26);
|
||||
x_28 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_26);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
|
|
@ -1502,7 +1502,7 @@ if (lean_is_exclusive(x_57)) {
|
|||
lean_dec_ref(x_57);
|
||||
x_62 = lean_box(0);
|
||||
}
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_34_(x_4, x_60);
|
||||
x_63 = l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_35_(x_4, x_60);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue