chore: update stage0
This commit is contained in:
parent
f891c5724d
commit
abc75053b6
35 changed files with 6925 additions and 4969 deletions
49
stage0/src/Lean/Elab/Inductive.lean
generated
49
stage0/src/Lean/Elab/Inductive.lean
generated
|
|
@ -67,31 +67,32 @@ structure ElabHeaderResult where
|
|||
type : Expr
|
||||
deriving Inhabited
|
||||
|
||||
private partial def elabHeaderAux (views : Array InductiveView) (i : Nat) (acc : Array ElabHeaderResult) : TermElabM (Array ElabHeaderResult) := do
|
||||
if h : i < views.size then
|
||||
let view := views.get ⟨i, h⟩
|
||||
let acc ← Term.withAutoBoundImplicit <| Term.elabBinders view.binders.getArgs fun params => do
|
||||
match view.type? with
|
||||
| none =>
|
||||
let u ← mkFreshLevelMVar
|
||||
let type := mkSort u
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
Term.addAutoBoundImplicits' params type fun params type => do
|
||||
pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params, type, view }
|
||||
| some typeStx =>
|
||||
let (type, numImplicitIndices) ← Term.withAutoBoundImplicit do
|
||||
let type ← Term.elabType typeStx
|
||||
unless (← isTypeFormerType type) do
|
||||
throwErrorAt typeStx "invalid inductive type, resultant type is not a sort"
|
||||
private partial def elabHeaderAux (views : Array InductiveView) (i : Nat) (acc : Array ElabHeaderResult) : TermElabM (Array ElabHeaderResult) :=
|
||||
Term.withAutoBoundImplicitForbiddenPred (fun n => views.any (·.shortDeclName == n)) do
|
||||
if h : i < views.size then
|
||||
let view := views.get ⟨i, h⟩
|
||||
let acc ← Term.withAutoBoundImplicit <| Term.elabBinders view.binders.getArgs fun params => do
|
||||
match view.type? with
|
||||
| none =>
|
||||
let u ← mkFreshLevelMVar
|
||||
let type := mkSort u
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let indices ← Term.addAutoBoundImplicits #[]
|
||||
return (← mkForallFVars indices type, indices.size)
|
||||
Term.addAutoBoundImplicits' params type fun params type => do
|
||||
trace[Elab.inductive] "header params: {params}, type: {type}"
|
||||
pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params, type, view }
|
||||
elabHeaderAux views (i+1) acc
|
||||
else
|
||||
pure acc
|
||||
Term.addAutoBoundImplicits' params type fun params type => do
|
||||
pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params, type, view }
|
||||
| some typeStx =>
|
||||
let (type, numImplicitIndices) ← Term.withAutoBoundImplicit do
|
||||
let type ← Term.elabType typeStx
|
||||
unless (← isTypeFormerType type) do
|
||||
throwErrorAt typeStx "invalid inductive type, resultant type is not a sort"
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let indices ← Term.addAutoBoundImplicits #[]
|
||||
return (← mkForallFVars indices type, indices.size)
|
||||
Term.addAutoBoundImplicits' params type fun params type => do
|
||||
trace[Elab.inductive] "header params: {params}, type: {type}"
|
||||
pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params, type, view }
|
||||
elabHeaderAux views (i+1) acc
|
||||
else
|
||||
pure acc
|
||||
|
||||
private def checkNumParams (rs : Array ElabHeaderResult) : TermElabM Nat := do
|
||||
let numParams := rs[0].params.size
|
||||
|
|
|
|||
93
stage0/src/Lean/Elab/MutualDef.lean
generated
93
stage0/src/Lean/Elab/MutualDef.lean
generated
|
|
@ -99,51 +99,54 @@ private def getPendindMVarErrorMessage (views : Array DefView) : String :=
|
|||
"\nwhen the resulting type of a declaration is explicitly provided, all holes (e.g., `_`) in the header are resolved before the declaration body is processed"
|
||||
|
||||
private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHeader) := do
|
||||
let mut headers := #[]
|
||||
for view in views do
|
||||
let newHeader ← withRef view.ref do
|
||||
let ⟨shortDeclName, declName, levelNames⟩ ← Term.expandDeclId (← getCurrNamespace) (← getLevelNames) view.declId view.modifiers
|
||||
addDeclarationRanges declName view.ref
|
||||
applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration
|
||||
withDeclName declName <| withAutoBoundImplicit <| withLevelNames levelNames <|
|
||||
elabBindersEx view.binders.getArgs fun xs => do
|
||||
let refForElabFunType := view.value
|
||||
let type ← match view.type? with
|
||||
| some typeStx =>
|
||||
let type ← elabType typeStx
|
||||
registerFailedToInferDefTypeInfo type typeStx
|
||||
pure type
|
||||
| none =>
|
||||
let hole := mkHole refForElabFunType
|
||||
let type ← elabType hole
|
||||
trace[Elab.definition] ">> type: {type}\n{type.mvarId!}"
|
||||
registerFailedToInferDefTypeInfo type refForElabFunType
|
||||
pure type
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let (binderIds, xs) := xs.unzip
|
||||
let xs ← addAutoBoundImplicits xs
|
||||
let type ← mkForallFVars' xs type
|
||||
let type ← instantiateMVars type
|
||||
let levelNames ← getLevelNames
|
||||
if view.type?.isSome then
|
||||
let pendingMVarIds ← getMVars type
|
||||
discard <| logUnassignedUsingErrorInfos pendingMVarIds <|
|
||||
getPendindMVarErrorMessage views
|
||||
let newHeader := {
|
||||
ref := view.ref,
|
||||
modifiers := view.modifiers,
|
||||
kind := view.kind,
|
||||
shortDeclName := shortDeclName,
|
||||
declName := declName,
|
||||
levelNames := levelNames,
|
||||
binderIds := binderIds,
|
||||
numParams := xs.size,
|
||||
type := type,
|
||||
valueStx := view.value : DefViewElabHeader }
|
||||
check headers newHeader
|
||||
return newHeader
|
||||
headers := headers.push newHeader
|
||||
pure headers
|
||||
let expandedDeclIds ← views.mapM fun view => withRef view.ref do
|
||||
Term.expandDeclId (← getCurrNamespace) (← getLevelNames) view.declId view.modifiers
|
||||
withAutoBoundImplicitForbiddenPred (fun n => expandedDeclIds.any (·.shortName == n)) do
|
||||
let mut headers := #[]
|
||||
for view in views, ⟨shortDeclName, declName, levelNames⟩ in expandedDeclIds do
|
||||
let newHeader ← withRef view.ref do
|
||||
addDeclarationRanges declName view.ref
|
||||
applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration
|
||||
withDeclName declName <| withAutoBoundImplicit <| withLevelNames levelNames <|
|
||||
elabBindersEx view.binders.getArgs fun xs => do
|
||||
let refForElabFunType := view.value
|
||||
let type ← match view.type? with
|
||||
| some typeStx =>
|
||||
let type ← elabType typeStx
|
||||
registerFailedToInferDefTypeInfo type typeStx
|
||||
pure type
|
||||
| none =>
|
||||
let hole := mkHole refForElabFunType
|
||||
let type ← elabType hole
|
||||
trace[Elab.definition] ">> type: {type}\n{type.mvarId!}"
|
||||
registerFailedToInferDefTypeInfo type refForElabFunType
|
||||
pure type
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let (binderIds, xs) := xs.unzip
|
||||
-- TODO: add forbidden predicate using `shortDeclName` from `views`
|
||||
let xs ← addAutoBoundImplicits xs
|
||||
let type ← mkForallFVars' xs type
|
||||
let type ← instantiateMVars type
|
||||
let levelNames ← getLevelNames
|
||||
if view.type?.isSome then
|
||||
let pendingMVarIds ← getMVars type
|
||||
discard <| logUnassignedUsingErrorInfos pendingMVarIds <|
|
||||
getPendindMVarErrorMessage views
|
||||
let newHeader := {
|
||||
ref := view.ref,
|
||||
modifiers := view.modifiers,
|
||||
kind := view.kind,
|
||||
shortDeclName := shortDeclName,
|
||||
declName := declName,
|
||||
levelNames := levelNames,
|
||||
binderIds := binderIds,
|
||||
numParams := xs.size,
|
||||
type := type,
|
||||
valueStx := view.value : DefViewElabHeader }
|
||||
check headers newHeader
|
||||
return newHeader
|
||||
headers := headers.push newHeader
|
||||
return headers
|
||||
|
||||
private partial def withFunLocalDecls {α} (headers : Array DefViewElabHeader) (k : Array Expr → TermElabM α) : TermElabM α :=
|
||||
let rec loop (i : Nat) (fvars : Array Expr) := do
|
||||
|
|
|
|||
60
stage0/src/Lean/Elab/Structure.lean
generated
60
stage0/src/Lean/Elab/Structure.lean
generated
|
|
@ -485,14 +485,15 @@ where
|
|||
else
|
||||
k infos copiedParents
|
||||
|
||||
private def elabFieldTypeValue (view : StructFieldView) : TermElabM (Option Expr × Option Expr) := do
|
||||
Term.withAutoBoundImplicit <| Term.elabBinders view.binders.getArgs fun params => do
|
||||
private def elabFieldTypeValue (view : StructFieldView) : TermElabM (Option Expr × Option Expr) :=
|
||||
Term.withAutoBoundImplicit <| Term.withAutoBoundImplicitForbiddenPred (fun n => view.name == n) <| Term.elabBinders view.binders.getArgs fun params => do
|
||||
match view.type? with
|
||||
| none =>
|
||||
match view.value? with
|
||||
| none => return (none, none)
|
||||
| some valStx =>
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
-- TODO: add forbidden predicate using `shortDeclName` from `view`
|
||||
let params ← Term.addAutoBoundImplicits params
|
||||
let value ← Term.elabTerm valStx none
|
||||
let value ← mkLambdaFVars params value
|
||||
|
|
@ -867,33 +868,34 @@ def elabStructure (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit :=
|
|||
runTermElabM none fun scopeVars => do
|
||||
let scopeLevelNames ← Term.getLevelNames
|
||||
let ⟨name, declName, allUserLevelNames⟩ ← Elab.expandDeclId (← getCurrNamespace) scopeLevelNames declId modifiers
|
||||
addDeclarationRanges declName stx
|
||||
Term.withDeclName declName do
|
||||
let ctor ← expandCtor stx modifiers declName
|
||||
let fields ← expandFields stx modifiers declName
|
||||
Term.withLevelNames allUserLevelNames <| Term.withAutoBoundImplicit <|
|
||||
Term.elabBinders params fun params => do
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let params ← Term.addAutoBoundImplicits params
|
||||
let allUserLevelNames ← Term.getLevelNames
|
||||
elabStructureView {
|
||||
ref := stx
|
||||
modifiers
|
||||
scopeLevelNames
|
||||
allUserLevelNames
|
||||
declName
|
||||
isClass
|
||||
scopeVars
|
||||
params
|
||||
parents
|
||||
type
|
||||
ctor
|
||||
fields
|
||||
}
|
||||
unless isClass do
|
||||
mkSizeOfInstances declName
|
||||
mkInjectiveTheorems declName
|
||||
return declName
|
||||
Term.withAutoBoundImplicitForbiddenPred (fun n => name == n) do
|
||||
addDeclarationRanges declName stx
|
||||
Term.withDeclName declName do
|
||||
let ctor ← expandCtor stx modifiers declName
|
||||
let fields ← expandFields stx modifiers declName
|
||||
Term.withLevelNames allUserLevelNames <| Term.withAutoBoundImplicit <|
|
||||
Term.elabBinders params fun params => do
|
||||
Term.synthesizeSyntheticMVarsNoPostponing
|
||||
let params ← Term.addAutoBoundImplicits params
|
||||
let allUserLevelNames ← Term.getLevelNames
|
||||
elabStructureView {
|
||||
ref := stx
|
||||
modifiers
|
||||
scopeLevelNames
|
||||
allUserLevelNames
|
||||
declName
|
||||
isClass
|
||||
scopeVars
|
||||
params
|
||||
parents
|
||||
type
|
||||
ctor
|
||||
fields
|
||||
}
|
||||
unless isClass do
|
||||
mkSizeOfInstances declName
|
||||
mkInjectiveTheorems declName
|
||||
return declName
|
||||
derivingClassViews.forM fun view => view.applyHandlers #[declName]
|
||||
|
||||
builtin_initialize registerTraceClass `Elab.structure
|
||||
|
|
|
|||
25
stage0/src/Lean/Elab/Term.lean
generated
25
stage0/src/Lean/Elab/Term.lean
generated
|
|
@ -138,11 +138,13 @@ structure Context where
|
|||
fileMap : FileMap
|
||||
declName? : Option Name := none
|
||||
macroStack : MacroStack := []
|
||||
/- When `mayPostpone == true`, an elaboration function may interrupt its execution by throwing `Exception.postpone`.
|
||||
/--
|
||||
When `mayPostpone == true`, an elaboration function may interrupt its execution by throwing `Exception.postpone`.
|
||||
The function `elabTerm` catches this exception and creates fresh synthetic metavariable `?m`, stores `?m` in
|
||||
the list of pending synthetic metavariables, and returns `?m`. -/
|
||||
mayPostpone : Bool := true
|
||||
/- When `errToSorry` is set to true, the method `elabTerm` catches
|
||||
/--
|
||||
When `errToSorry` is set to true, the method `elabTerm` catches
|
||||
exceptions and converts them into synthetic `sorry`s.
|
||||
The implementation of choice nodes and overloaded symbols rely on the fact
|
||||
that when `errToSorry` is set to false for an elaboration function `F`, then
|
||||
|
|
@ -150,13 +152,23 @@ structure Context where
|
|||
That is, it is safe to transition `errToSorry` from `true` to `false`, but
|
||||
we must not set `errToSorry` to `true` when it is currently set to `false`. -/
|
||||
errToSorry : Bool := true
|
||||
/- When `autoBoundImplicit` is set to true, instead of producing
|
||||
/--
|
||||
When `autoBoundImplicit` is set to true, instead of producing
|
||||
an "unknown identifier" error for unbound variables, we generate an
|
||||
internal exception. This exception is caught at `elabBinders` and
|
||||
`elabTypeWithUnboldImplicit`. Both methods add implicit declarations
|
||||
for the unbound variable and try again. -/
|
||||
autoBoundImplicit : Bool := false
|
||||
autoBoundImplicits : Std.PArray Expr := {}
|
||||
/--
|
||||
A name `n` is only eligible to be an auto implicit name if `autoBoundImplicitForbidden n = false`.
|
||||
We use this predicate to disallow `f` to be considered an auto implicit name in a definition such
|
||||
as
|
||||
```
|
||||
def f : f → Bool := fun _ => true
|
||||
```
|
||||
-/
|
||||
autoBoundImplicitForbidden : Name → Bool := fun _ => false
|
||||
/-- Map from user name to internal unique name -/
|
||||
sectionVars : NameMap Name := {}
|
||||
/-- Map from internal name to fvar -/
|
||||
|
|
@ -1374,6 +1386,9 @@ partial def withAutoBoundImplicit (k : TermElabM α) : TermElabM α := do
|
|||
def withoutAutoBoundImplicit (k : TermElabM α) : TermElabM α := do
|
||||
withReader (fun ctx => { ctx with autoBoundImplicit := false, autoBoundImplicits := {} }) k
|
||||
|
||||
partial def withAutoBoundImplicitForbiddenPred (p : Name → Bool) (x : TermElabM α) : TermElabM α := do
|
||||
withReader (fun ctx => { ctx with autoBoundImplicitForbidden := fun n => p n || ctx.autoBoundImplicitForbidden n }) x
|
||||
|
||||
/--
|
||||
Collect unassigned metavariables in `type` that are not already in `init` and not satisfying `except`.
|
||||
-/
|
||||
|
|
@ -1525,7 +1540,9 @@ def resolveName (stx : Syntax) (n : Name) (preresolved : List (Name × List Stri
|
|||
process preresolved
|
||||
where process (candidates : List (Name × List String)) : TermElabM (List (Expr × List String)) := do
|
||||
if candidates.isEmpty then
|
||||
if (← read).autoBoundImplicit && isValidAutoBoundImplicitName n (relaxedAutoImplicit.get (← getOptions)) then
|
||||
if (← read).autoBoundImplicit &&
|
||||
!(← read).autoBoundImplicitForbidden n &&
|
||||
isValidAutoBoundImplicitName n (relaxedAutoImplicit.get (← getOptions)) then
|
||||
throwAutoBoundImplicitLocal n
|
||||
else
|
||||
throwError "unknown identifier '{Lean.mkConst n}'"
|
||||
|
|
|
|||
32
stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean
generated
32
stage0/src/Lean/Meta/Tactic/Simp/Rewrite.lean
generated
|
|
@ -60,10 +60,15 @@ private def tryTheoremCore (lhs : Expr) (xs : Array Expr) (bis : Array BinderInf
|
|||
if (← isDefEq lhs e) then
|
||||
unless (← synthesizeArgs thm.getName xs bis discharge?) do
|
||||
return none
|
||||
let proof ← instantiateMVars (mkAppN val xs)
|
||||
if ← hasAssignableMVar proof then
|
||||
trace[Meta.Tactic.simp.rewrite] "{thm}, has unassigned metavariables after unification"
|
||||
return none
|
||||
let proof? ←
|
||||
if thm.rfl then
|
||||
pure none
|
||||
else
|
||||
let proof ← instantiateMVars (mkAppN val xs)
|
||||
if (← hasAssignableMVar proof) then
|
||||
trace[Meta.Tactic.simp.rewrite] "{thm}, has unassigned metavariables after unification"
|
||||
return none
|
||||
pure <| some proof
|
||||
let rhs := (← instantiateMVars type).appArg!
|
||||
if e == rhs then
|
||||
return none
|
||||
|
|
@ -72,7 +77,7 @@ private def tryTheoremCore (lhs : Expr) (xs : Array Expr) (bis : Array BinderInf
|
|||
trace[Meta.Tactic.simp.rewrite] "{thm}, perm rejected {e} ==> {rhs}"
|
||||
return none
|
||||
trace[Meta.Tactic.simp.rewrite] "{thm}, {e} ==> {rhs}"
|
||||
return some { expr := rhs, proof? := proof }
|
||||
return some { expr := rhs, proof? }
|
||||
else
|
||||
unless lhs.isMVar do
|
||||
-- We do not report unification failures when `lhs` is a metavariable
|
||||
|
|
@ -125,18 +130,19 @@ def tryTheorem? (e : Expr) (thm : SimpTheorem) (discharge? : Expr → SimpM (Opt
|
|||
/-
|
||||
Remark: the parameter tag is used for creating trace messages. It is irrelevant otherwise.
|
||||
-/
|
||||
def rewrite (e : Expr) (s : DiscrTree SimpTheorem) (erased : Std.PHashSet Name) (discharge? : Expr → SimpM (Option Expr)) (tag : String) : SimpM Result := do
|
||||
def rewrite? (e : Expr) (s : DiscrTree SimpTheorem) (erased : Std.PHashSet Name) (discharge? : Expr → SimpM (Option Expr)) (tag : String) : SimpM (Option Result) := do
|
||||
let candidates ← s.getMatchWithExtra e
|
||||
if candidates.isEmpty then
|
||||
trace[Debug.Meta.Tactic.simp] "no theorems found for {tag}-rewriting {e}"
|
||||
return { expr := e }
|
||||
return none
|
||||
else
|
||||
let candidates := candidates.insertionSort fun e₁ e₂ => e₁.1.priority > e₂.1.priority
|
||||
for (thm, numExtraArgs) in candidates do
|
||||
unless inErasedSet thm do
|
||||
if let some result ← tryTheoremWithExtraArgs? e thm numExtraArgs discharge? then
|
||||
return result
|
||||
return { expr := e }
|
||||
trace[Debug.Meta.Tactic.simp] "rewrite result {e} => {result.expr}"
|
||||
return some result
|
||||
return none
|
||||
where
|
||||
inErasedSet (thm : SimpTheorem) : Bool :=
|
||||
match thm.name? with
|
||||
|
|
@ -206,7 +212,7 @@ def simpArith? (e : Expr) : SimpM (Option Step) := do
|
|||
def simpMatchCore? (app : MatcherApp) (e : Expr) (discharge? : Expr → SimpM (Option Expr)) : SimpM (Option Step) := do
|
||||
for matchEq in (← Match.getEquationsFor app.matcherName).eqnNames do
|
||||
-- Try lemma
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEq, name? := some matchEq } discharge?) with
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEq, name? := some matchEq, rfl := (← isRflTheorem matchEq) } discharge?) with
|
||||
| none => pure ()
|
||||
| some r => return some (Simp.Step.done r)
|
||||
return none
|
||||
|
|
@ -220,15 +226,13 @@ def simpMatch? (discharge? : Expr → SimpM (Option Expr)) (e : Expr) : SimpM (O
|
|||
|
||||
def rewritePre (e : Expr) (discharge? : Expr → SimpM (Option Expr)) : SimpM Step := do
|
||||
for thms in (← read).simpTheorems do
|
||||
let r ← rewrite e thms.pre thms.erased discharge? (tag := "pre")
|
||||
if r.proof?.isSome then
|
||||
if let some r ← rewrite? e thms.pre thms.erased discharge? (tag := "pre") then
|
||||
return Step.visit r
|
||||
return Step.visit { expr := e }
|
||||
|
||||
def rewritePost (e : Expr) (discharge? : Expr → SimpM (Option Expr)) : SimpM Step := do
|
||||
for thms in (← read).simpTheorems do
|
||||
let r ← rewrite e thms.post thms.erased discharge? (tag := "post")
|
||||
if r.proof?.isSome then
|
||||
if let some r ← rewrite? e thms.post thms.erased discharge? (tag := "post") then
|
||||
return Step.visit r
|
||||
return Step.visit { expr := e }
|
||||
|
||||
|
|
|
|||
42
stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean
generated
42
stage0/src/Lean/Meta/Tactic/Simp/SimpTheorems.lean
generated
|
|
@ -22,12 +22,24 @@ namespace Lean.Meta
|
|||
-/
|
||||
structure SimpTheorem where
|
||||
keys : Array DiscrTree.Key := #[]
|
||||
levelParams : Array Name := #[] -- non empty for local universe polymorphic proofs.
|
||||
/--
|
||||
It stores universe parameter names for universe polymorphic proofs.
|
||||
Recall that it is non-empty only when we elaborate an expression provided by the user.
|
||||
When `proof` is just a constant, we can use the universe parameter names stored in the declaration.
|
||||
-/
|
||||
levelParams : Array Name := #[]
|
||||
proof : Expr
|
||||
priority : Nat := eval_prio default
|
||||
post : Bool := true
|
||||
perm : Bool := false -- true is lhs and rhs are identical modulo permutation of variables
|
||||
name? : Option Name := none -- for debugging and tracing purposes
|
||||
/-- `perm` is true if lhs and rhs are identical modulo permutation of variables. -/
|
||||
perm : Bool := false
|
||||
/--
|
||||
`name?` is mainly relevant for producing trace messages.
|
||||
It is also viewed an `id` used to "erase" `simp` theorems from `SimpTheorems`.
|
||||
-/
|
||||
name? : Option Name := none
|
||||
/-- `rfl` is true if `proof` is by `Eq.refl` or `rfl`. -/
|
||||
rfl : Bool
|
||||
deriving Inhabited
|
||||
|
||||
def SimpTheorem.getName (s : SimpTheorem) : Name :=
|
||||
|
|
@ -35,6 +47,28 @@ def SimpTheorem.getName (s : SimpTheorem) : Name :=
|
|||
| some n => n
|
||||
| none => "<unknown>"
|
||||
|
||||
def isRflProofCore (type : Expr) (proof : Expr) : Bool :=
|
||||
match type with
|
||||
| .forallE _ _ type _ =>
|
||||
if let .lam _ _ proof _ := proof then
|
||||
isRflProofCore type proof
|
||||
else
|
||||
false
|
||||
| _ =>
|
||||
type.isAppOfArity ``Eq 3
|
||||
&&
|
||||
(proof.isAppOfArity ``Eq.refl 2 || proof.isAppOfArity ``rfl 2)
|
||||
|
||||
def isRflTheorem (declName : Name) : CoreM Bool := do
|
||||
let .thmInfo info ← getConstInfo declName | return false
|
||||
return isRflProofCore info.type info.value
|
||||
|
||||
def isRflProof (proof : Expr) : CoreM Bool := do
|
||||
if let .const declName .. := proof then
|
||||
isRflTheorem declName
|
||||
else
|
||||
return false
|
||||
|
||||
instance : ToFormat SimpTheorem where
|
||||
format s :=
|
||||
let perm := if s.perm then ":perm" else ""
|
||||
|
|
@ -195,7 +229,7 @@ private def mkSimpTheoremCore (e : Expr) (levelParams : Array Name) (proof : Exp
|
|||
match type.eq? with
|
||||
| some (_, lhs, rhs) => pure (← DiscrTree.mkPath lhs, ← isPerm lhs rhs)
|
||||
| none => throwError "unexpected kind of 'simp' theorem{indentExpr type}"
|
||||
return { keys := keys, perm := perm, post := post, levelParams := levelParams, proof := proof, name? := name?, priority := prio }
|
||||
return { keys, perm, post, levelParams, proof, name?, priority := prio, rfl := (← isRflProof proof) }
|
||||
|
||||
private def mkSimpTheoremsFromConst (declName : Name) (post : Bool) (inv : Bool) (prio : Nat) : MetaM (Array SimpTheorem) := do
|
||||
let cinfo ← getConstInfo declName
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/Tactic/Split.lean
generated
2
stage0/src/Lean/Meta/Tactic/Split.lean
generated
|
|
@ -44,7 +44,7 @@ where
|
|||
| some e' => return Simp.Step.done { expr := e' }
|
||||
| none =>
|
||||
-- Try lemma
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEqDeclName, name? := matchEqDeclName } SplitIf.discharge?) with
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst matchEqDeclName, name? := matchEqDeclName, rfl := (← isRflTheorem matchEqDeclName) } SplitIf.discharge?) with
|
||||
| none => return Simp.Step.visit { expr := e }
|
||||
| some r => return Simp.Step.done r
|
||||
else
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/Tactic/Unfold.lean
generated
2
stage0/src/Lean/Meta/Tactic/Unfold.lean
generated
|
|
@ -23,7 +23,7 @@ def unfold (e : Expr) (declName : Name) : MetaM Simp.Result := do
|
|||
return { expr := (← deltaExpand e (· == declName)) }
|
||||
where
|
||||
pre (unfoldThm : Name) (e : Expr) : SimpM Simp.Step := do
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst unfoldThm, name? := some unfoldThm } (fun _ => return none)) with
|
||||
match (← withReducible <| Simp.tryTheorem? e { proof := mkConst unfoldThm, name? := some unfoldThm, rfl := (← isRflTheorem unfoldThm) } (fun _ => return none)) with
|
||||
| none => pure ()
|
||||
| some r => return Simp.Step.done r
|
||||
return Simp.Step.visit { expr := e }
|
||||
|
|
|
|||
355
stage0/stdlib/Lean/Elab/App.c
generated
355
stage0/stdlib/Lean/Elab/App.c
generated
|
|
@ -656,7 +656,7 @@ uint8_t l_Lean_Expr_isFVar(lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13369_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13371_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5_(lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -19174,7 +19174,7 @@ lean_inc(x_1);
|
|||
x_29 = l_Lean_Elab_Term_resolveName_x27(x_1, x_2, x_6, x_11, x_12, x_13, x_14, x_28, x_16, x_17);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51;
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52;
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
|
|
@ -19188,154 +19188,162 @@ x_34 = lean_ctor_get(x_11, 2);
|
|||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_11, 3);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get_uint8(x_11, sizeof(void*)*8);
|
||||
x_37 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 2);
|
||||
x_36 = lean_ctor_get_uint8(x_11, sizeof(void*)*9);
|
||||
x_37 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 2);
|
||||
x_38 = lean_ctor_get(x_11, 4);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_11, 5);
|
||||
lean_inc(x_39);
|
||||
x_40 = lean_ctor_get(x_11, 6);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 3);
|
||||
x_42 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 4);
|
||||
x_43 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 5);
|
||||
x_44 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 6);
|
||||
x_45 = lean_ctor_get(x_11, 7);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 7);
|
||||
x_47 = lean_unsigned_to_nat(0u);
|
||||
x_48 = l_List_lengthTRAux___rarg(x_30, x_47);
|
||||
x_49 = lean_unsigned_to_nat(1u);
|
||||
x_50 = lean_nat_dec_eq(x_48, x_49);
|
||||
x_41 = lean_ctor_get(x_11, 7);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 3);
|
||||
x_43 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 4);
|
||||
x_44 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 5);
|
||||
x_45 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 6);
|
||||
x_46 = lean_ctor_get(x_11, 8);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 7);
|
||||
x_48 = lean_unsigned_to_nat(0u);
|
||||
x_49 = l_List_lengthTRAux___rarg(x_30, x_48);
|
||||
x_50 = lean_unsigned_to_nat(1u);
|
||||
x_51 = lean_nat_dec_eq(x_49, x_50);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint8_t x_80;
|
||||
x_80 = lean_nat_dec_lt(x_49, x_48);
|
||||
lean_dec(x_48);
|
||||
x_51 = x_80;
|
||||
goto block_79;
|
||||
uint8_t x_83;
|
||||
x_83 = lean_nat_dec_lt(x_50, x_49);
|
||||
lean_dec(x_49);
|
||||
x_52 = x_83;
|
||||
goto block_82;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_81;
|
||||
lean_dec(x_48);
|
||||
x_81 = 1;
|
||||
x_51 = x_81;
|
||||
goto block_79;
|
||||
uint8_t x_84;
|
||||
lean_dec(x_49);
|
||||
x_84 = 1;
|
||||
x_52 = x_84;
|
||||
goto block_82;
|
||||
}
|
||||
block_79:
|
||||
block_82:
|
||||
{
|
||||
if (x_50 == 0)
|
||||
if (x_51 == 0)
|
||||
{
|
||||
uint8_t x_52;
|
||||
x_52 = !lean_is_exclusive(x_11);
|
||||
if (x_52 == 0)
|
||||
uint8_t x_53;
|
||||
x_53 = !lean_is_exclusive(x_11);
|
||||
if (x_53 == 0)
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62;
|
||||
x_53 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_53);
|
||||
x_54 = lean_ctor_get(x_11, 6);
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64;
|
||||
x_54 = lean_ctor_get(x_11, 8);
|
||||
lean_dec(x_54);
|
||||
x_55 = lean_ctor_get(x_11, 5);
|
||||
x_55 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_55);
|
||||
x_56 = lean_ctor_get(x_11, 4);
|
||||
x_56 = lean_ctor_get(x_11, 6);
|
||||
lean_dec(x_56);
|
||||
x_57 = lean_ctor_get(x_11, 3);
|
||||
x_57 = lean_ctor_get(x_11, 5);
|
||||
lean_dec(x_57);
|
||||
x_58 = lean_ctor_get(x_11, 2);
|
||||
x_58 = lean_ctor_get(x_11, 4);
|
||||
lean_dec(x_58);
|
||||
x_59 = lean_ctor_get(x_11, 1);
|
||||
x_59 = lean_ctor_get(x_11, 3);
|
||||
lean_dec(x_59);
|
||||
x_60 = lean_ctor_get(x_11, 0);
|
||||
x_60 = lean_ctor_get(x_11, 2);
|
||||
lean_dec(x_60);
|
||||
x_61 = 0;
|
||||
lean_ctor_set_uint8(x_11, sizeof(void*)*8 + 1, x_61);
|
||||
x_62 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_51, x_10, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_63; lean_object* x_64; lean_object* x_65;
|
||||
lean_dec(x_11);
|
||||
x_61 = lean_ctor_get(x_11, 1);
|
||||
lean_dec(x_61);
|
||||
x_62 = lean_ctor_get(x_11, 0);
|
||||
lean_dec(x_62);
|
||||
x_63 = 0;
|
||||
x_64 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_64, 0, x_32);
|
||||
lean_ctor_set(x_64, 1, x_33);
|
||||
lean_ctor_set(x_64, 2, x_34);
|
||||
lean_ctor_set(x_64, 3, x_35);
|
||||
lean_ctor_set(x_64, 4, x_38);
|
||||
lean_ctor_set(x_64, 5, x_39);
|
||||
lean_ctor_set(x_64, 6, x_40);
|
||||
lean_ctor_set(x_64, 7, x_45);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8, x_36);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 1, x_63);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 2, x_37);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 3, x_41);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 4, x_42);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 5, x_43);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 6, x_44);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8 + 7, x_46);
|
||||
x_65 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_51, x_10, x_30, x_64, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_65;
|
||||
}
|
||||
lean_ctor_set_uint8(x_11, sizeof(void*)*9 + 1, x_63);
|
||||
x_64 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_52, x_10, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_64;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_66;
|
||||
x_66 = !lean_is_exclusive(x_11);
|
||||
if (x_66 == 0)
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_67 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_67);
|
||||
x_68 = lean_ctor_get(x_11, 6);
|
||||
lean_dec(x_68);
|
||||
x_69 = lean_ctor_get(x_11, 5);
|
||||
lean_dec(x_69);
|
||||
x_70 = lean_ctor_get(x_11, 4);
|
||||
lean_dec(x_70);
|
||||
x_71 = lean_ctor_get(x_11, 3);
|
||||
lean_dec(x_71);
|
||||
x_72 = lean_ctor_get(x_11, 2);
|
||||
lean_dec(x_72);
|
||||
x_73 = lean_ctor_get(x_11, 1);
|
||||
lean_dec(x_73);
|
||||
x_74 = lean_ctor_get(x_11, 0);
|
||||
lean_dec(x_74);
|
||||
x_75 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_51, x_10, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_75;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_76; lean_object* x_77; lean_object* x_78;
|
||||
x_76 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 1);
|
||||
uint8_t x_65; lean_object* x_66; lean_object* x_67;
|
||||
lean_dec(x_11);
|
||||
x_77 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_77, 0, x_32);
|
||||
lean_ctor_set(x_77, 1, x_33);
|
||||
lean_ctor_set(x_77, 2, x_34);
|
||||
lean_ctor_set(x_77, 3, x_35);
|
||||
lean_ctor_set(x_77, 4, x_38);
|
||||
lean_ctor_set(x_77, 5, x_39);
|
||||
lean_ctor_set(x_77, 6, x_40);
|
||||
lean_ctor_set(x_77, 7, x_45);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8, x_36);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 1, x_76);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 2, x_37);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 3, x_41);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 4, x_42);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 5, x_43);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 6, x_44);
|
||||
lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 7, x_46);
|
||||
x_78 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_51, x_10, x_30, x_77, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
x_65 = 0;
|
||||
x_66 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_66, 0, x_32);
|
||||
lean_ctor_set(x_66, 1, x_33);
|
||||
lean_ctor_set(x_66, 2, x_34);
|
||||
lean_ctor_set(x_66, 3, x_35);
|
||||
lean_ctor_set(x_66, 4, x_38);
|
||||
lean_ctor_set(x_66, 5, x_39);
|
||||
lean_ctor_set(x_66, 6, x_40);
|
||||
lean_ctor_set(x_66, 7, x_41);
|
||||
lean_ctor_set(x_66, 8, x_46);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9, x_36);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 1, x_65);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 2, x_37);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 3, x_42);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 4, x_43);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 5, x_44);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 6, x_45);
|
||||
lean_ctor_set_uint8(x_66, sizeof(void*)*9 + 7, x_47);
|
||||
x_67 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_52, x_10, x_30, x_66, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_68;
|
||||
x_68 = !lean_is_exclusive(x_11);
|
||||
if (x_68 == 0)
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78;
|
||||
x_69 = lean_ctor_get(x_11, 8);
|
||||
lean_dec(x_69);
|
||||
x_70 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_70);
|
||||
x_71 = lean_ctor_get(x_11, 6);
|
||||
lean_dec(x_71);
|
||||
x_72 = lean_ctor_get(x_11, 5);
|
||||
lean_dec(x_72);
|
||||
x_73 = lean_ctor_get(x_11, 4);
|
||||
lean_dec(x_73);
|
||||
x_74 = lean_ctor_get(x_11, 3);
|
||||
lean_dec(x_74);
|
||||
x_75 = lean_ctor_get(x_11, 2);
|
||||
lean_dec(x_75);
|
||||
x_76 = lean_ctor_get(x_11, 1);
|
||||
lean_dec(x_76);
|
||||
x_77 = lean_ctor_get(x_11, 0);
|
||||
lean_dec(x_77);
|
||||
x_78 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_52, x_10, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_78;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_79 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 1);
|
||||
lean_dec(x_11);
|
||||
x_80 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_80, 0, x_32);
|
||||
lean_ctor_set(x_80, 1, x_33);
|
||||
lean_ctor_set(x_80, 2, x_34);
|
||||
lean_ctor_set(x_80, 3, x_35);
|
||||
lean_ctor_set(x_80, 4, x_38);
|
||||
lean_ctor_set(x_80, 5, x_39);
|
||||
lean_ctor_set(x_80, 6, x_40);
|
||||
lean_ctor_set(x_80, 7, x_41);
|
||||
lean_ctor_set(x_80, 8, x_46);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9, x_36);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 1, x_79);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 2, x_37);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 3, x_42);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 4, x_43);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 5, x_44);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 6, x_45);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*9 + 7, x_47);
|
||||
x_81 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_52, x_10, x_30, x_80, x_12, x_13, x_14, x_15, x_16, x_31);
|
||||
return x_81;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_82;
|
||||
uint8_t x_85;
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -19348,23 +19356,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_82 = !lean_is_exclusive(x_29);
|
||||
if (x_82 == 0)
|
||||
x_85 = !lean_is_exclusive(x_29);
|
||||
if (x_85 == 0)
|
||||
{
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_83 = lean_ctor_get(x_29, 0);
|
||||
x_84 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_83);
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_86 = lean_ctor_get(x_29, 0);
|
||||
x_87 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_87);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_29);
|
||||
x_85 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_83);
|
||||
lean_ctor_set(x_85, 1, x_84);
|
||||
return x_85;
|
||||
x_88 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_86);
|
||||
lean_ctor_set(x_88, 1, x_87);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -25508,7 +25516,7 @@ if (x_1043 == 0)
|
|||
{
|
||||
uint8_t x_1044; uint8_t x_1045;
|
||||
x_1044 = 0;
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*8 + 1, x_1044);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 1, x_1044);
|
||||
x_1045 = lean_nat_dec_le(x_1039, x_1039);
|
||||
if (x_1045 == 0)
|
||||
{
|
||||
|
|
@ -25543,23 +25551,25 @@ return x_1049;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; uint8_t x_1054; uint8_t x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; uint8_t x_1059; uint8_t x_1060; uint8_t x_1061; uint8_t x_1062; lean_object* x_1063; uint8_t x_1064; uint8_t x_1065; lean_object* x_1066; uint8_t x_1067;
|
||||
lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; uint8_t x_1054; uint8_t x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; uint8_t x_1060; uint8_t x_1061; uint8_t x_1062; uint8_t x_1063; lean_object* x_1064; uint8_t x_1065; uint8_t x_1066; lean_object* x_1067; uint8_t x_1068;
|
||||
x_1050 = lean_ctor_get(x_10, 0);
|
||||
x_1051 = lean_ctor_get(x_10, 1);
|
||||
x_1052 = lean_ctor_get(x_10, 2);
|
||||
x_1053 = lean_ctor_get(x_10, 3);
|
||||
x_1054 = lean_ctor_get_uint8(x_10, sizeof(void*)*8);
|
||||
x_1055 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 2);
|
||||
x_1054 = lean_ctor_get_uint8(x_10, sizeof(void*)*9);
|
||||
x_1055 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 2);
|
||||
x_1056 = lean_ctor_get(x_10, 4);
|
||||
x_1057 = lean_ctor_get(x_10, 5);
|
||||
x_1058 = lean_ctor_get(x_10, 6);
|
||||
x_1059 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 3);
|
||||
x_1060 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 4);
|
||||
x_1061 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 5);
|
||||
x_1062 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 6);
|
||||
x_1063 = lean_ctor_get(x_10, 7);
|
||||
x_1064 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_1063);
|
||||
x_1059 = lean_ctor_get(x_10, 7);
|
||||
x_1060 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 3);
|
||||
x_1061 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 4);
|
||||
x_1062 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 5);
|
||||
x_1063 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 6);
|
||||
x_1064 = lean_ctor_get(x_10, 8);
|
||||
x_1065 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_1064);
|
||||
lean_inc(x_1059);
|
||||
lean_inc(x_1058);
|
||||
lean_inc(x_1057);
|
||||
lean_inc(x_1056);
|
||||
|
|
@ -25568,29 +25578,30 @@ lean_inc(x_1052);
|
|||
lean_inc(x_1051);
|
||||
lean_inc(x_1050);
|
||||
lean_dec(x_10);
|
||||
x_1065 = 0;
|
||||
x_1066 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_1066, 0, x_1050);
|
||||
lean_ctor_set(x_1066, 1, x_1051);
|
||||
lean_ctor_set(x_1066, 2, x_1052);
|
||||
lean_ctor_set(x_1066, 3, x_1053);
|
||||
lean_ctor_set(x_1066, 4, x_1056);
|
||||
lean_ctor_set(x_1066, 5, x_1057);
|
||||
lean_ctor_set(x_1066, 6, x_1058);
|
||||
lean_ctor_set(x_1066, 7, x_1063);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8, x_1054);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 1, x_1065);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 2, x_1055);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 3, x_1059);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 4, x_1060);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 5, x_1061);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 6, x_1062);
|
||||
lean_ctor_set_uint8(x_1066, sizeof(void*)*8 + 7, x_1064);
|
||||
x_1067 = lean_nat_dec_le(x_1039, x_1039);
|
||||
if (x_1067 == 0)
|
||||
x_1066 = 0;
|
||||
x_1067 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_1067, 0, x_1050);
|
||||
lean_ctor_set(x_1067, 1, x_1051);
|
||||
lean_ctor_set(x_1067, 2, x_1052);
|
||||
lean_ctor_set(x_1067, 3, x_1053);
|
||||
lean_ctor_set(x_1067, 4, x_1056);
|
||||
lean_ctor_set(x_1067, 5, x_1057);
|
||||
lean_ctor_set(x_1067, 6, x_1058);
|
||||
lean_ctor_set(x_1067, 7, x_1059);
|
||||
lean_ctor_set(x_1067, 8, x_1064);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9, x_1054);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 1, x_1066);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 2, x_1055);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 3, x_1060);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 4, x_1061);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 5, x_1062);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 6, x_1063);
|
||||
lean_ctor_set_uint8(x_1067, sizeof(void*)*9 + 7, x_1065);
|
||||
x_1068 = lean_nat_dec_le(x_1039, x_1039);
|
||||
if (x_1068 == 0)
|
||||
{
|
||||
lean_object* x_1068;
|
||||
lean_dec(x_1066);
|
||||
lean_object* x_1069;
|
||||
lean_dec(x_1067);
|
||||
lean_dec(x_1039);
|
||||
lean_dec(x_1038);
|
||||
lean_dec(x_15);
|
||||
|
|
@ -25602,20 +25613,20 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_1068 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_1068, 0, x_9);
|
||||
lean_ctor_set(x_1068, 1, x_16);
|
||||
return x_1068;
|
||||
x_1069 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_1069, 0, x_9);
|
||||
lean_ctor_set(x_1069, 1, x_16);
|
||||
return x_1069;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_1069; size_t x_1070; lean_object* x_1071;
|
||||
x_1069 = 0;
|
||||
x_1070 = lean_usize_of_nat(x_1039);
|
||||
size_t x_1070; size_t x_1071; lean_object* x_1072;
|
||||
x_1070 = 0;
|
||||
x_1071 = lean_usize_of_nat(x_1039);
|
||||
lean_dec(x_1039);
|
||||
x_1071 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1038, x_1069, x_1070, x_9, x_1066, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
x_1072 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1038, x_1070, x_1071, x_9, x_1067, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
lean_dec(x_1038);
|
||||
return x_1071;
|
||||
return x_1072;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -27938,7 +27949,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_annotateIfR
|
|||
_start:
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7);
|
||||
x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11;
|
||||
|
|
@ -30191,7 +30202,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13369_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13371_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -30982,7 +30993,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___clos
|
|||
res = l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13369_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_13371_(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));
|
||||
|
|
|
|||
638
stage0/stdlib/Lean/Elab/BuiltinCommand.c
generated
638
stage0/stdlib/Lean/Elab/BuiltinCommand.c
generated
|
|
@ -11386,9 +11386,9 @@ x_27 = !lean_is_exclusive(x_4);
|
|||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_28 = lean_ctor_get(x_4, 6);
|
||||
x_28 = lean_ctor_get(x_4, 7);
|
||||
lean_dec(x_28);
|
||||
lean_ctor_set(x_4, 6, x_26);
|
||||
lean_ctor_set(x_4, 7, x_26);
|
||||
x_29 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -11401,23 +11401,25 @@ return x_33;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_34 = lean_ctor_get(x_4, 0);
|
||||
x_35 = lean_ctor_get(x_4, 1);
|
||||
x_36 = lean_ctor_get(x_4, 2);
|
||||
x_37 = lean_ctor_get(x_4, 3);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_41 = lean_ctor_get(x_4, 4);
|
||||
x_42 = lean_ctor_get(x_4, 5);
|
||||
x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_47 = lean_ctor_get(x_4, 7);
|
||||
x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_47);
|
||||
x_43 = lean_ctor_get(x_4, 6);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_48 = lean_ctor_get(x_4, 8);
|
||||
x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_37);
|
||||
|
|
@ -11425,37 +11427,38 @@ lean_inc(x_36);
|
|||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_4);
|
||||
x_49 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_49, 0, x_34);
|
||||
lean_ctor_set(x_49, 1, x_35);
|
||||
lean_ctor_set(x_49, 2, x_36);
|
||||
lean_ctor_set(x_49, 3, x_37);
|
||||
lean_ctor_set(x_49, 4, x_41);
|
||||
lean_ctor_set(x_49, 5, x_42);
|
||||
lean_ctor_set(x_49, 6, x_26);
|
||||
lean_ctor_set(x_49, 7, x_47);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_38);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 3, x_43);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 4, x_44);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 5, x_45);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 6, x_46);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 7, x_48);
|
||||
x_50 = l_Lean_Elab_Term_resetMessageLog(x_49, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__2___boxed), 10, 1);
|
||||
lean_closure_set(x_52, 0, x_2);
|
||||
x_53 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_54 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_53, x_52, x_49, x_5, x_6, x_7, x_8, x_9, x_51);
|
||||
return x_54;
|
||||
x_50 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_50, 0, x_34);
|
||||
lean_ctor_set(x_50, 1, x_35);
|
||||
lean_ctor_set(x_50, 2, x_36);
|
||||
lean_ctor_set(x_50, 3, x_37);
|
||||
lean_ctor_set(x_50, 4, x_41);
|
||||
lean_ctor_set(x_50, 5, x_42);
|
||||
lean_ctor_set(x_50, 6, x_43);
|
||||
lean_ctor_set(x_50, 7, x_26);
|
||||
lean_ctor_set(x_50, 8, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9, x_38);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__2___boxed), 10, 1);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
x_54 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_54, x_53, x_50, x_5, x_6, x_7, x_8, x_9, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_55;
|
||||
uint8_t x_56;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -11464,23 +11467,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_55 = !lean_is_exclusive(x_12);
|
||||
if (x_55 == 0)
|
||||
x_56 = !lean_is_exclusive(x_12);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_12, 0);
|
||||
x_57 = lean_ctor_get(x_12, 1);
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_12, 0);
|
||||
x_58 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_12);
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
return x_58;
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12213,9 +12216,9 @@ x_29 = !lean_is_exclusive(x_6);
|
|||
if (x_29 == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_30 = lean_ctor_get(x_6, 6);
|
||||
x_30 = lean_ctor_get(x_6, 7);
|
||||
lean_dec(x_30);
|
||||
lean_ctor_set(x_6, 6, x_28);
|
||||
lean_ctor_set(x_6, 7, x_28);
|
||||
x_31 = l_Lean_Elab_Term_resetMessageLog(x_6, x_7, x_8, x_9, x_10, x_11, x_27);
|
||||
x_32 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_32);
|
||||
|
|
@ -12231,23 +12234,25 @@ return x_36;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_37 = lean_ctor_get(x_6, 0);
|
||||
x_38 = lean_ctor_get(x_6, 1);
|
||||
x_39 = lean_ctor_get(x_6, 2);
|
||||
x_40 = lean_ctor_get(x_6, 3);
|
||||
x_41 = lean_ctor_get_uint8(x_6, sizeof(void*)*8);
|
||||
x_42 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2);
|
||||
x_41 = lean_ctor_get_uint8(x_6, sizeof(void*)*9);
|
||||
x_42 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2);
|
||||
x_44 = lean_ctor_get(x_6, 4);
|
||||
x_45 = lean_ctor_get(x_6, 5);
|
||||
x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 3);
|
||||
x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 4);
|
||||
x_48 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 5);
|
||||
x_49 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 6);
|
||||
x_50 = lean_ctor_get(x_6, 7);
|
||||
x_51 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_50);
|
||||
x_46 = lean_ctor_get(x_6, 6);
|
||||
x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3);
|
||||
x_48 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4);
|
||||
x_49 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5);
|
||||
x_50 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6);
|
||||
x_51 = lean_ctor_get(x_6, 8);
|
||||
x_52 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_40);
|
||||
|
|
@ -12255,40 +12260,41 @@ lean_inc(x_39);
|
|||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_6);
|
||||
x_52 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_52, 0, x_37);
|
||||
lean_ctor_set(x_52, 1, x_38);
|
||||
lean_ctor_set(x_52, 2, x_39);
|
||||
lean_ctor_set(x_52, 3, x_40);
|
||||
lean_ctor_set(x_52, 4, x_44);
|
||||
lean_ctor_set(x_52, 5, x_45);
|
||||
lean_ctor_set(x_52, 6, x_28);
|
||||
lean_ctor_set(x_52, 7, x_50);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_41);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_46);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 4, x_47);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 5, x_48);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 6, x_49);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 7, x_51);
|
||||
x_53 = l_Lean_Elab_Term_resetMessageLog(x_52, x_7, x_8, x_9, x_10, x_11, x_27);
|
||||
x_54 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_53);
|
||||
x_55 = lean_box(x_3);
|
||||
x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckCore___lambda__3___boxed), 12, 3);
|
||||
lean_closure_set(x_56, 0, x_2);
|
||||
lean_closure_set(x_56, 1, x_55);
|
||||
lean_closure_set(x_56, 2, x_4);
|
||||
x_57 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_58 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_5, x_57, x_56, x_52, x_7, x_8, x_9, x_10, x_11, x_54);
|
||||
return x_58;
|
||||
x_53 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_53, 0, x_37);
|
||||
lean_ctor_set(x_53, 1, x_38);
|
||||
lean_ctor_set(x_53, 2, x_39);
|
||||
lean_ctor_set(x_53, 3, x_40);
|
||||
lean_ctor_set(x_53, 4, x_44);
|
||||
lean_ctor_set(x_53, 5, x_45);
|
||||
lean_ctor_set(x_53, 6, x_46);
|
||||
lean_ctor_set(x_53, 7, x_28);
|
||||
lean_ctor_set(x_53, 8, x_51);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9, x_41);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 3, x_47);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 4, x_48);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 5, x_49);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 6, x_50);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 7, x_52);
|
||||
x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_7, x_8, x_9, x_10, x_11, x_27);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_54);
|
||||
x_56 = lean_box(x_3);
|
||||
x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckCore___lambda__3___boxed), 12, 3);
|
||||
lean_closure_set(x_57, 0, x_2);
|
||||
lean_closure_set(x_57, 1, x_56);
|
||||
lean_closure_set(x_57, 2, x_4);
|
||||
x_58 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_59 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_5, x_58, x_57, x_53, x_7, x_8, x_9, x_10, x_11, x_55);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_59;
|
||||
uint8_t x_60;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -12298,23 +12304,23 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_59 = !lean_is_exclusive(x_14);
|
||||
if (x_59 == 0)
|
||||
x_60 = !lean_is_exclusive(x_14);
|
||||
if (x_60 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_60 = lean_ctor_get(x_14, 0);
|
||||
x_61 = lean_ctor_get(x_14, 1);
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63;
|
||||
x_61 = lean_ctor_get(x_14, 0);
|
||||
x_62 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_62);
|
||||
lean_inc(x_61);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_14);
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
return x_62;
|
||||
x_63 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_61);
|
||||
lean_ctor_set(x_63, 1, x_62);
|
||||
return x_63;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -13215,9 +13221,9 @@ x_28 = !lean_is_exclusive(x_5);
|
|||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_29 = lean_ctor_get(x_5, 6);
|
||||
x_29 = lean_ctor_get(x_5, 7);
|
||||
lean_dec(x_29);
|
||||
lean_ctor_set(x_5, 6, x_27);
|
||||
lean_ctor_set(x_5, 7, x_27);
|
||||
x_30 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
|
|
@ -13231,23 +13237,25 @@ return x_34;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_35 = lean_ctor_get(x_5, 0);
|
||||
x_36 = lean_ctor_get(x_5, 1);
|
||||
x_37 = lean_ctor_get(x_5, 2);
|
||||
x_38 = lean_ctor_get(x_5, 3);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_42 = lean_ctor_get(x_5, 4);
|
||||
x_43 = lean_ctor_get(x_5, 5);
|
||||
x_44 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_48 = lean_ctor_get(x_5, 7);
|
||||
x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_48);
|
||||
x_44 = lean_ctor_get(x_5, 6);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_49 = lean_ctor_get(x_5, 8);
|
||||
x_50 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_38);
|
||||
|
|
@ -13255,38 +13263,39 @@ lean_inc(x_37);
|
|||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_5);
|
||||
x_50 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_50, 0, x_35);
|
||||
lean_ctor_set(x_50, 1, x_36);
|
||||
lean_ctor_set(x_50, 2, x_37);
|
||||
lean_ctor_set(x_50, 3, x_38);
|
||||
lean_ctor_set(x_50, 4, x_42);
|
||||
lean_ctor_set(x_50, 5, x_43);
|
||||
lean_ctor_set(x_50, 6, x_27);
|
||||
lean_ctor_set(x_50, 7, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__2___boxed), 11, 2);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
lean_closure_set(x_53, 1, x_3);
|
||||
x_54 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_54, x_53, x_50, x_6, x_7, x_8, x_9, x_10, x_52);
|
||||
return x_55;
|
||||
x_51 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_51, 0, x_35);
|
||||
lean_ctor_set(x_51, 1, x_36);
|
||||
lean_ctor_set(x_51, 2, x_37);
|
||||
lean_ctor_set(x_51, 3, x_38);
|
||||
lean_ctor_set(x_51, 4, x_42);
|
||||
lean_ctor_set(x_51, 5, x_43);
|
||||
lean_ctor_set(x_51, 6, x_44);
|
||||
lean_ctor_set(x_51, 7, x_27);
|
||||
lean_ctor_set(x_51, 8, x_49);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9, x_39);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 3, x_45);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 4, x_46);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 5, x_47);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 6, x_48);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 7, x_50);
|
||||
x_52 = l_Lean_Elab_Term_resetMessageLog(x_51, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_52);
|
||||
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__2___boxed), 11, 2);
|
||||
lean_closure_set(x_54, 0, x_2);
|
||||
lean_closure_set(x_54, 1, x_3);
|
||||
x_55 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_56 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_55, x_54, x_51, x_6, x_7, x_8, x_9, x_10, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_56;
|
||||
uint8_t x_57;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -13296,23 +13305,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_56 = !lean_is_exclusive(x_13);
|
||||
if (x_56 == 0)
|
||||
x_57 = !lean_is_exclusive(x_13);
|
||||
if (x_57 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_13, 0);
|
||||
x_58 = lean_ctor_get(x_13, 1);
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_58 = lean_ctor_get(x_13, 0);
|
||||
x_59 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_13);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
return x_60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -16359,9 +16368,9 @@ x_30 = !lean_is_exclusive(x_7);
|
|||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_31 = lean_ctor_get(x_7, 6);
|
||||
x_31 = lean_ctor_get(x_7, 7);
|
||||
lean_dec(x_31);
|
||||
lean_ctor_set(x_7, 6, x_29);
|
||||
lean_ctor_set(x_7, 7, x_29);
|
||||
x_32 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_33 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_33);
|
||||
|
|
@ -16377,23 +16386,25 @@ return x_36;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57;
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_37 = lean_ctor_get(x_7, 0);
|
||||
x_38 = lean_ctor_get(x_7, 1);
|
||||
x_39 = lean_ctor_get(x_7, 2);
|
||||
x_40 = lean_ctor_get(x_7, 3);
|
||||
x_41 = lean_ctor_get_uint8(x_7, sizeof(void*)*8);
|
||||
x_42 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2);
|
||||
x_41 = lean_ctor_get_uint8(x_7, sizeof(void*)*9);
|
||||
x_42 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 2);
|
||||
x_44 = lean_ctor_get(x_7, 4);
|
||||
x_45 = lean_ctor_get(x_7, 5);
|
||||
x_46 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3);
|
||||
x_47 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4);
|
||||
x_48 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 5);
|
||||
x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 6);
|
||||
x_50 = lean_ctor_get(x_7, 7);
|
||||
x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_50);
|
||||
x_46 = lean_ctor_get(x_7, 6);
|
||||
x_47 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 3);
|
||||
x_48 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 4);
|
||||
x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 5);
|
||||
x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 6);
|
||||
x_51 = lean_ctor_get(x_7, 8);
|
||||
x_52 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_40);
|
||||
|
|
@ -16401,40 +16412,41 @@ lean_inc(x_39);
|
|||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_7);
|
||||
x_52 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_52, 0, x_37);
|
||||
lean_ctor_set(x_52, 1, x_38);
|
||||
lean_ctor_set(x_52, 2, x_39);
|
||||
lean_ctor_set(x_52, 3, x_40);
|
||||
lean_ctor_set(x_52, 4, x_44);
|
||||
lean_ctor_set(x_52, 5, x_45);
|
||||
lean_ctor_set(x_52, 6, x_29);
|
||||
lean_ctor_set(x_52, 7, x_50);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_41);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_46);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 4, x_47);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 5, x_48);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 6, x_49);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 7, x_51);
|
||||
x_53 = l_Lean_Elab_Term_resetMessageLog(x_52, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_54 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_53);
|
||||
x_55 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 4);
|
||||
lean_closure_set(x_55, 0, x_2);
|
||||
lean_closure_set(x_55, 1, x_3);
|
||||
lean_closure_set(x_55, 2, x_4);
|
||||
lean_closure_set(x_55, 3, x_5);
|
||||
x_56 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_57 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_6, x_56, x_55, x_52, x_8, x_9, x_10, x_11, x_12, x_54);
|
||||
return x_57;
|
||||
x_53 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_53, 0, x_37);
|
||||
lean_ctor_set(x_53, 1, x_38);
|
||||
lean_ctor_set(x_53, 2, x_39);
|
||||
lean_ctor_set(x_53, 3, x_40);
|
||||
lean_ctor_set(x_53, 4, x_44);
|
||||
lean_ctor_set(x_53, 5, x_45);
|
||||
lean_ctor_set(x_53, 6, x_46);
|
||||
lean_ctor_set(x_53, 7, x_29);
|
||||
lean_ctor_set(x_53, 8, x_51);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9, x_41);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 3, x_47);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 4, x_48);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 5, x_49);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 6, x_50);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 7, x_52);
|
||||
x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_54);
|
||||
x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 4);
|
||||
lean_closure_set(x_56, 0, x_2);
|
||||
lean_closure_set(x_56, 1, x_3);
|
||||
lean_closure_set(x_56, 2, x_4);
|
||||
lean_closure_set(x_56, 3, x_5);
|
||||
x_57 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_58 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_6, x_57, x_56, x_53, x_8, x_9, x_10, x_11, x_12, x_55);
|
||||
return x_58;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_58;
|
||||
uint8_t x_59;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -16446,23 +16458,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_58 = !lean_is_exclusive(x_15);
|
||||
if (x_58 == 0)
|
||||
x_59 = !lean_is_exclusive(x_15);
|
||||
if (x_59 == 0)
|
||||
{
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_59 = lean_ctor_get(x_15, 0);
|
||||
x_60 = lean_ctor_get(x_15, 1);
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_60 = lean_ctor_get(x_15, 0);
|
||||
x_61 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_61);
|
||||
lean_inc(x_60);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_15);
|
||||
x_61 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_59);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
return x_61;
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17193,9 +17205,9 @@ x_30 = !lean_is_exclusive(x_7);
|
|||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_31 = lean_ctor_get(x_7, 6);
|
||||
x_31 = lean_ctor_get(x_7, 7);
|
||||
lean_dec(x_31);
|
||||
lean_ctor_set(x_7, 6, x_29);
|
||||
lean_ctor_set(x_7, 7, x_29);
|
||||
x_32 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_33 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_33);
|
||||
|
|
@ -17211,23 +17223,25 @@ return x_36;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57;
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_37 = lean_ctor_get(x_7, 0);
|
||||
x_38 = lean_ctor_get(x_7, 1);
|
||||
x_39 = lean_ctor_get(x_7, 2);
|
||||
x_40 = lean_ctor_get(x_7, 3);
|
||||
x_41 = lean_ctor_get_uint8(x_7, sizeof(void*)*8);
|
||||
x_42 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2);
|
||||
x_41 = lean_ctor_get_uint8(x_7, sizeof(void*)*9);
|
||||
x_42 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 1);
|
||||
x_43 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 2);
|
||||
x_44 = lean_ctor_get(x_7, 4);
|
||||
x_45 = lean_ctor_get(x_7, 5);
|
||||
x_46 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3);
|
||||
x_47 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4);
|
||||
x_48 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 5);
|
||||
x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 6);
|
||||
x_50 = lean_ctor_get(x_7, 7);
|
||||
x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_50);
|
||||
x_46 = lean_ctor_get(x_7, 6);
|
||||
x_47 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 3);
|
||||
x_48 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 4);
|
||||
x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 5);
|
||||
x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 6);
|
||||
x_51 = lean_ctor_get(x_7, 8);
|
||||
x_52 = lean_ctor_get_uint8(x_7, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_40);
|
||||
|
|
@ -17235,40 +17249,41 @@ lean_inc(x_39);
|
|||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_7);
|
||||
x_52 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_52, 0, x_37);
|
||||
lean_ctor_set(x_52, 1, x_38);
|
||||
lean_ctor_set(x_52, 2, x_39);
|
||||
lean_ctor_set(x_52, 3, x_40);
|
||||
lean_ctor_set(x_52, 4, x_44);
|
||||
lean_ctor_set(x_52, 5, x_45);
|
||||
lean_ctor_set(x_52, 6, x_29);
|
||||
lean_ctor_set(x_52, 7, x_50);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_41);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_46);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 4, x_47);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 5, x_48);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 6, x_49);
|
||||
lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 7, x_51);
|
||||
x_53 = l_Lean_Elab_Term_resetMessageLog(x_52, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_54 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_53);
|
||||
x_55 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 13, 4);
|
||||
lean_closure_set(x_55, 0, x_2);
|
||||
lean_closure_set(x_55, 1, x_3);
|
||||
lean_closure_set(x_55, 2, x_4);
|
||||
lean_closure_set(x_55, 3, x_5);
|
||||
x_56 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_57 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_6, x_56, x_55, x_52, x_8, x_9, x_10, x_11, x_12, x_54);
|
||||
return x_57;
|
||||
x_53 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_53, 0, x_37);
|
||||
lean_ctor_set(x_53, 1, x_38);
|
||||
lean_ctor_set(x_53, 2, x_39);
|
||||
lean_ctor_set(x_53, 3, x_40);
|
||||
lean_ctor_set(x_53, 4, x_44);
|
||||
lean_ctor_set(x_53, 5, x_45);
|
||||
lean_ctor_set(x_53, 6, x_46);
|
||||
lean_ctor_set(x_53, 7, x_29);
|
||||
lean_ctor_set(x_53, 8, x_51);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9, x_41);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 1, x_42);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 2, x_43);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 3, x_47);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 4, x_48);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 5, x_49);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 6, x_50);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 7, x_52);
|
||||
x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_8, x_9, x_10, x_11, x_12, x_28);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_54);
|
||||
x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 13, 4);
|
||||
lean_closure_set(x_56, 0, x_2);
|
||||
lean_closure_set(x_56, 1, x_3);
|
||||
lean_closure_set(x_56, 2, x_4);
|
||||
lean_closure_set(x_56, 3, x_5);
|
||||
x_57 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_58 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_6, x_57, x_56, x_53, x_8, x_9, x_10, x_11, x_12, x_55);
|
||||
return x_58;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_58;
|
||||
uint8_t x_59;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -17280,23 +17295,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_58 = !lean_is_exclusive(x_15);
|
||||
if (x_58 == 0)
|
||||
x_59 = !lean_is_exclusive(x_15);
|
||||
if (x_59 == 0)
|
||||
{
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_59 = lean_ctor_get(x_15, 0);
|
||||
x_60 = lean_ctor_get(x_15, 1);
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_60 = lean_ctor_get(x_15, 0);
|
||||
x_61 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_61);
|
||||
lean_inc(x_60);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_15);
|
||||
x_61 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_59);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
return x_61;
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17902,9 +17917,9 @@ x_27 = !lean_is_exclusive(x_4);
|
|||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_28 = lean_ctor_get(x_4, 6);
|
||||
x_28 = lean_ctor_get(x_4, 7);
|
||||
lean_dec(x_28);
|
||||
lean_ctor_set(x_4, 6, x_26);
|
||||
lean_ctor_set(x_4, 7, x_26);
|
||||
x_29 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -17917,23 +17932,25 @@ return x_33;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_34 = lean_ctor_get(x_4, 0);
|
||||
x_35 = lean_ctor_get(x_4, 1);
|
||||
x_36 = lean_ctor_get(x_4, 2);
|
||||
x_37 = lean_ctor_get(x_4, 3);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_41 = lean_ctor_get(x_4, 4);
|
||||
x_42 = lean_ctor_get(x_4, 5);
|
||||
x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_47 = lean_ctor_get(x_4, 7);
|
||||
x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_47);
|
||||
x_43 = lean_ctor_get(x_4, 6);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_48 = lean_ctor_get(x_4, 8);
|
||||
x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_37);
|
||||
|
|
@ -17941,37 +17958,38 @@ lean_inc(x_36);
|
|||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_4);
|
||||
x_49 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_49, 0, x_34);
|
||||
lean_ctor_set(x_49, 1, x_35);
|
||||
lean_ctor_set(x_49, 2, x_36);
|
||||
lean_ctor_set(x_49, 3, x_37);
|
||||
lean_ctor_set(x_49, 4, x_41);
|
||||
lean_ctor_set(x_49, 5, x_42);
|
||||
lean_ctor_set(x_49, 6, x_26);
|
||||
lean_ctor_set(x_49, 7, x_47);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_38);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 3, x_43);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 4, x_44);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 5, x_45);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 6, x_46);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 7, x_48);
|
||||
x_50 = l_Lean_Elab_Term_resetMessageLog(x_49, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__2___boxed), 10, 1);
|
||||
lean_closure_set(x_52, 0, x_2);
|
||||
x_53 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_54 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_53, x_52, x_49, x_5, x_6, x_7, x_8, x_9, x_51);
|
||||
return x_54;
|
||||
x_50 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_50, 0, x_34);
|
||||
lean_ctor_set(x_50, 1, x_35);
|
||||
lean_ctor_set(x_50, 2, x_36);
|
||||
lean_ctor_set(x_50, 3, x_37);
|
||||
lean_ctor_set(x_50, 4, x_41);
|
||||
lean_ctor_set(x_50, 5, x_42);
|
||||
lean_ctor_set(x_50, 6, x_43);
|
||||
lean_ctor_set(x_50, 7, x_26);
|
||||
lean_ctor_set(x_50, 8, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9, x_38);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__2___boxed), 10, 1);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
x_54 = l_Lean_Elab_Command_elabVariable___lambda__3___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_54, x_53, x_50, x_5, x_6, x_7, x_8, x_9, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_55;
|
||||
uint8_t x_56;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -17980,23 +17998,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_55 = !lean_is_exclusive(x_12);
|
||||
if (x_55 == 0)
|
||||
x_56 = !lean_is_exclusive(x_12);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_12, 0);
|
||||
x_57 = lean_ctor_get(x_12, 1);
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_12, 0);
|
||||
x_58 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_12);
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
return x_58;
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
4
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
|
|
@ -2637,7 +2637,7 @@ x_14 = l_Lean_Name_isAnonymous(x_13);
|
|||
if (x_14 == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6);
|
||||
x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
|
|
@ -3290,7 +3290,7 @@ return x_167;
|
|||
else
|
||||
{
|
||||
uint8_t x_168;
|
||||
x_168 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6);
|
||||
x_168 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6);
|
||||
if (x_168 == 0)
|
||||
{
|
||||
uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175;
|
||||
|
|
|
|||
210
stage0/stdlib/Lean/Elab/Command.c
generated
210
stage0/stdlib/Lean/Elab/Command.c
generated
|
|
@ -86,6 +86,7 @@ static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__3;
|
|||
static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_liftIO(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1(lean_object*);
|
||||
static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_commandElabAttribute;
|
||||
extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
||||
|
|
@ -520,6 +521,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*,
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___lambda__1___closed__3;
|
||||
static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkInfoTree(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -595,6 +597,7 @@ static lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___closed__2;
|
|||
static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__1;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__1___closed__2;
|
||||
|
|
@ -14926,6 +14929,14 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds___spec
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = 0;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -15095,6 +15106,14 @@ return x_4;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -15118,41 +15137,41 @@ lean_ctor_set(x_15, 1, x_11);
|
|||
x_16 = 0;
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_32;
|
||||
lean_object* x_33;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
x_32 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_17 = x_32;
|
||||
goto block_31;
|
||||
x_33 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_17 = x_33;
|
||||
goto block_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
x_33 = lean_nat_dec_le(x_13, x_13);
|
||||
if (x_33 == 0)
|
||||
uint8_t x_34;
|
||||
x_34 = lean_nat_dec_le(x_13, x_13);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_object* x_35;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
x_34 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_17 = x_34;
|
||||
goto block_31;
|
||||
x_35 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_17 = x_35;
|
||||
goto block_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_usize_of_nat(x_13);
|
||||
size_t x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_36 = lean_usize_of_nat(x_13);
|
||||
lean_dec(x_13);
|
||||
x_36 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_37 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(x_12, x_16, x_35, x_36);
|
||||
x_37 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1;
|
||||
x_38 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(x_12, x_16, x_36, x_37);
|
||||
lean_dec(x_12);
|
||||
x_17 = x_37;
|
||||
goto block_31;
|
||||
x_17 = x_38;
|
||||
goto block_32;
|
||||
}
|
||||
}
|
||||
block_31:
|
||||
block_32:
|
||||
{
|
||||
lean_object* x_18; size_t 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; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_object* x_18; size_t 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; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_18 = lean_array_get_size(x_17);
|
||||
x_19 = lean_usize_of_nat(x_18);
|
||||
lean_dec(x_18);
|
||||
|
|
@ -15170,31 +15189,43 @@ lean_dec(x_6);
|
|||
x_27 = 1;
|
||||
x_28 = 0;
|
||||
x_29 = l_Lean_Elab_Command_State_messages___default___closed__3;
|
||||
x_30 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1;
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
x_30 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_30, 0, x_22);
|
||||
lean_ctor_set(x_30, 1, x_23);
|
||||
lean_ctor_set(x_30, 2, x_3);
|
||||
lean_ctor_set(x_30, 3, x_24);
|
||||
lean_ctor_set(x_30, 4, x_29);
|
||||
lean_ctor_set(x_30, 5, x_21);
|
||||
lean_ctor_set(x_30, 6, x_7);
|
||||
lean_ctor_set(x_30, 7, x_25);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_27);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_27);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_28);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_27);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_26);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_28);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_28);
|
||||
lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_27);
|
||||
return x_30;
|
||||
x_31 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_31, 0, x_22);
|
||||
lean_ctor_set(x_31, 1, x_23);
|
||||
lean_ctor_set(x_31, 2, x_3);
|
||||
lean_ctor_set(x_31, 3, x_24);
|
||||
lean_ctor_set(x_31, 4, x_29);
|
||||
lean_ctor_set(x_31, 5, x_30);
|
||||
lean_ctor_set(x_31, 6, x_21);
|
||||
lean_ctor_set(x_31, 7, x_7);
|
||||
lean_ctor_set(x_31, 8, x_25);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_27);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_27);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_28);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_27);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_26);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_28);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_28);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_27);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -17624,9 +17655,9 @@ x_27 = !lean_is_exclusive(x_4);
|
|||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_28 = lean_ctor_get(x_4, 6);
|
||||
x_28 = lean_ctor_get(x_4, 7);
|
||||
lean_dec(x_28);
|
||||
lean_ctor_set(x_4, 6, x_26);
|
||||
lean_ctor_set(x_4, 7, x_26);
|
||||
x_29 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -17639,23 +17670,25 @@ return x_33;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_34 = lean_ctor_get(x_4, 0);
|
||||
x_35 = lean_ctor_get(x_4, 1);
|
||||
x_36 = lean_ctor_get(x_4, 2);
|
||||
x_37 = lean_ctor_get(x_4, 3);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_41 = lean_ctor_get(x_4, 4);
|
||||
x_42 = lean_ctor_get(x_4, 5);
|
||||
x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_47 = lean_ctor_get(x_4, 7);
|
||||
x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_47);
|
||||
x_43 = lean_ctor_get(x_4, 6);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_48 = lean_ctor_get(x_4, 8);
|
||||
x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_37);
|
||||
|
|
@ -17663,37 +17696,38 @@ lean_inc(x_36);
|
|||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_4);
|
||||
x_49 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_49, 0, x_34);
|
||||
lean_ctor_set(x_49, 1, x_35);
|
||||
lean_ctor_set(x_49, 2, x_36);
|
||||
lean_ctor_set(x_49, 3, x_37);
|
||||
lean_ctor_set(x_49, 4, x_41);
|
||||
lean_ctor_set(x_49, 5, x_42);
|
||||
lean_ctor_set(x_49, 6, x_26);
|
||||
lean_ctor_set(x_49, 7, x_47);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_38);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 3, x_43);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 4, x_44);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 5, x_45);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 6, x_46);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 7, x_48);
|
||||
x_50 = l_Lean_Elab_Term_resetMessageLog(x_49, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runTermElabM___rarg___lambda__1___boxed), 10, 1);
|
||||
lean_closure_set(x_52, 0, x_2);
|
||||
x_53 = l_Lean_Elab_Command_runTermElabM___rarg___lambda__2___closed__1;
|
||||
x_54 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_53, x_52, x_49, x_5, x_6, x_7, x_8, x_9, x_51);
|
||||
return x_54;
|
||||
x_50 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_50, 0, x_34);
|
||||
lean_ctor_set(x_50, 1, x_35);
|
||||
lean_ctor_set(x_50, 2, x_36);
|
||||
lean_ctor_set(x_50, 3, x_37);
|
||||
lean_ctor_set(x_50, 4, x_41);
|
||||
lean_ctor_set(x_50, 5, x_42);
|
||||
lean_ctor_set(x_50, 6, x_43);
|
||||
lean_ctor_set(x_50, 7, x_26);
|
||||
lean_ctor_set(x_50, 8, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9, x_38);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runTermElabM___rarg___lambda__1___boxed), 10, 1);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
x_54 = l_Lean_Elab_Command_runTermElabM___rarg___lambda__2___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_54, x_53, x_50, x_5, x_6, x_7, x_8, x_9, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_55;
|
||||
uint8_t x_56;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -17702,23 +17736,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_55 = !lean_is_exclusive(x_12);
|
||||
if (x_55 == 0)
|
||||
x_56 = !lean_is_exclusive(x_12);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_12, 0);
|
||||
x_57 = lean_ctor_get(x_12, 1);
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_12, 0);
|
||||
x_58 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_12);
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
return x_58;
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22314,6 +22348,8 @@ l_Lean_Elab_Command_getBracketedBinderIds___closed__9 = _init_l_Lean_Elab_Comman
|
|||
lean_mark_persistent(l_Lean_Elab_Command_getBracketedBinderIds___closed__9);
|
||||
l_Lean_Elab_Command_getBracketedBinderIds___closed__10 = _init_l_Lean_Elab_Command_getBracketedBinderIds___closed__10();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_getBracketedBinderIds___closed__10);
|
||||
l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1 = _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1);
|
||||
l_Lean_Elab_Command_liftTermElabM___rarg___closed__1 = _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_liftTermElabM___rarg___closed__1);
|
||||
l_Lean_Elab_Command_liftTermElabM___rarg___closed__2 = _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__2();
|
||||
|
|
|
|||
117
stage0/stdlib/Lean/Elab/Declaration.c
generated
117
stage0/stdlib/Lean/Elab/Declaration.c
generated
|
|
@ -4244,9 +4244,9 @@ x_34 = !lean_is_exclusive(x_11);
|
|||
if (x_34 == 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;
|
||||
x_35 = lean_ctor_get(x_11, 6);
|
||||
x_35 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_35);
|
||||
lean_ctor_set(x_11, 6, x_33);
|
||||
lean_ctor_set(x_11, 7, x_33);
|
||||
x_36 = l_Lean_Elab_Term_resetMessageLog(x_11, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_37 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_37);
|
||||
|
|
@ -4266,23 +4266,25 @@ return x_40;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_41 = lean_ctor_get(x_11, 0);
|
||||
x_42 = lean_ctor_get(x_11, 1);
|
||||
x_43 = lean_ctor_get(x_11, 2);
|
||||
x_44 = lean_ctor_get(x_11, 3);
|
||||
x_45 = lean_ctor_get_uint8(x_11, sizeof(void*)*8);
|
||||
x_46 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 1);
|
||||
x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 2);
|
||||
x_45 = lean_ctor_get_uint8(x_11, sizeof(void*)*9);
|
||||
x_46 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 1);
|
||||
x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 2);
|
||||
x_48 = lean_ctor_get(x_11, 4);
|
||||
x_49 = lean_ctor_get(x_11, 5);
|
||||
x_50 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 3);
|
||||
x_51 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 4);
|
||||
x_52 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 5);
|
||||
x_53 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 6);
|
||||
x_54 = lean_ctor_get(x_11, 7);
|
||||
x_55 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_54);
|
||||
x_50 = lean_ctor_get(x_11, 6);
|
||||
x_51 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 3);
|
||||
x_52 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 4);
|
||||
x_53 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 5);
|
||||
x_54 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 6);
|
||||
x_55 = lean_ctor_get(x_11, 8);
|
||||
x_56 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_55);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_44);
|
||||
|
|
@ -4290,44 +4292,45 @@ lean_inc(x_43);
|
|||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_11);
|
||||
x_56 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_56, 0, x_41);
|
||||
lean_ctor_set(x_56, 1, x_42);
|
||||
lean_ctor_set(x_56, 2, x_43);
|
||||
lean_ctor_set(x_56, 3, x_44);
|
||||
lean_ctor_set(x_56, 4, x_48);
|
||||
lean_ctor_set(x_56, 5, x_49);
|
||||
lean_ctor_set(x_56, 6, x_33);
|
||||
lean_ctor_set(x_56, 7, x_54);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8, x_45);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 1, x_46);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 2, x_47);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 3, x_50);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 4, x_51);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 5, x_52);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 6, x_53);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 7, x_55);
|
||||
x_57 = l_Lean_Elab_Term_resetMessageLog(x_56, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_58 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_57);
|
||||
x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__5___boxed), 17, 8);
|
||||
lean_closure_set(x_59, 0, x_2);
|
||||
lean_closure_set(x_59, 1, x_3);
|
||||
lean_closure_set(x_59, 2, x_4);
|
||||
lean_closure_set(x_59, 3, x_5);
|
||||
lean_closure_set(x_59, 4, x_6);
|
||||
lean_closure_set(x_59, 5, x_7);
|
||||
lean_closure_set(x_59, 6, x_8);
|
||||
lean_closure_set(x_59, 7, x_9);
|
||||
x_60 = l_Lean_Elab_Command_elabAxiom___lambda__6___closed__1;
|
||||
x_61 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_10, x_60, x_59, x_56, x_12, x_13, x_14, x_15, x_16, x_58);
|
||||
return x_61;
|
||||
x_57 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_57, 0, x_41);
|
||||
lean_ctor_set(x_57, 1, x_42);
|
||||
lean_ctor_set(x_57, 2, x_43);
|
||||
lean_ctor_set(x_57, 3, x_44);
|
||||
lean_ctor_set(x_57, 4, x_48);
|
||||
lean_ctor_set(x_57, 5, x_49);
|
||||
lean_ctor_set(x_57, 6, x_50);
|
||||
lean_ctor_set(x_57, 7, x_33);
|
||||
lean_ctor_set(x_57, 8, x_55);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9, x_45);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 1, x_46);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 2, x_47);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 3, x_51);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 4, x_52);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 5, x_53);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 6, x_54);
|
||||
lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 7, x_56);
|
||||
x_58 = l_Lean_Elab_Term_resetMessageLog(x_57, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_59 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_58);
|
||||
x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__5___boxed), 17, 8);
|
||||
lean_closure_set(x_60, 0, x_2);
|
||||
lean_closure_set(x_60, 1, x_3);
|
||||
lean_closure_set(x_60, 2, x_4);
|
||||
lean_closure_set(x_60, 3, x_5);
|
||||
lean_closure_set(x_60, 4, x_6);
|
||||
lean_closure_set(x_60, 5, x_7);
|
||||
lean_closure_set(x_60, 6, x_8);
|
||||
lean_closure_set(x_60, 7, x_9);
|
||||
x_61 = l_Lean_Elab_Command_elabAxiom___lambda__6___closed__1;
|
||||
x_62 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_10, x_61, x_60, x_57, x_12, x_13, x_14, x_15, x_16, x_59);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_62;
|
||||
uint8_t x_63;
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -4343,23 +4346,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_62 = !lean_is_exclusive(x_19);
|
||||
if (x_62 == 0)
|
||||
x_63 = !lean_is_exclusive(x_19);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_63 = lean_ctor_get(x_19, 0);
|
||||
x_64 = lean_ctor_get(x_19, 1);
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_64 = lean_ctor_get(x_19, 0);
|
||||
x_65 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_65);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_19);
|
||||
x_65 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
return x_65;
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_64);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
105
stage0/stdlib/Lean/Elab/DefView.c
generated
105
stage0/stdlib/Lean/Elab/DefView.c
generated
|
|
@ -2067,9 +2067,9 @@ x_28 = !lean_is_exclusive(x_5);
|
|||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_29 = lean_ctor_get(x_5, 6);
|
||||
x_29 = lean_ctor_get(x_5, 7);
|
||||
lean_dec(x_29);
|
||||
lean_ctor_set(x_5, 6, x_27);
|
||||
lean_ctor_set(x_5, 7, x_27);
|
||||
x_30 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
|
|
@ -2083,23 +2083,25 @@ return x_34;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_35 = lean_ctor_get(x_5, 0);
|
||||
x_36 = lean_ctor_get(x_5, 1);
|
||||
x_37 = lean_ctor_get(x_5, 2);
|
||||
x_38 = lean_ctor_get(x_5, 3);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_42 = lean_ctor_get(x_5, 4);
|
||||
x_43 = lean_ctor_get(x_5, 5);
|
||||
x_44 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_48 = lean_ctor_get(x_5, 7);
|
||||
x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_48);
|
||||
x_44 = lean_ctor_get(x_5, 6);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_49 = lean_ctor_get(x_5, 8);
|
||||
x_50 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_38);
|
||||
|
|
@ -2107,38 +2109,39 @@ lean_inc(x_37);
|
|||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_5);
|
||||
x_50 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_50, 0, x_35);
|
||||
lean_ctor_set(x_50, 1, x_36);
|
||||
lean_ctor_set(x_50, 2, x_37);
|
||||
lean_ctor_set(x_50, 3, x_38);
|
||||
lean_ctor_set(x_50, 4, x_42);
|
||||
lean_ctor_set(x_50, 5, x_43);
|
||||
lean_ctor_set(x_50, 6, x_27);
|
||||
lean_ctor_set(x_50, 7, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkInstanceName___lambda__4___boxed), 11, 2);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
lean_closure_set(x_53, 1, x_3);
|
||||
x_54 = l_Lean_Elab_Command_mkInstanceName___lambda__5___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_54, x_53, x_50, x_6, x_7, x_8, x_9, x_10, x_52);
|
||||
return x_55;
|
||||
x_51 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_51, 0, x_35);
|
||||
lean_ctor_set(x_51, 1, x_36);
|
||||
lean_ctor_set(x_51, 2, x_37);
|
||||
lean_ctor_set(x_51, 3, x_38);
|
||||
lean_ctor_set(x_51, 4, x_42);
|
||||
lean_ctor_set(x_51, 5, x_43);
|
||||
lean_ctor_set(x_51, 6, x_44);
|
||||
lean_ctor_set(x_51, 7, x_27);
|
||||
lean_ctor_set(x_51, 8, x_49);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9, x_39);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 3, x_45);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 4, x_46);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 5, x_47);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 6, x_48);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 7, x_50);
|
||||
x_52 = l_Lean_Elab_Term_resetMessageLog(x_51, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_52);
|
||||
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkInstanceName___lambda__4___boxed), 11, 2);
|
||||
lean_closure_set(x_54, 0, x_2);
|
||||
lean_closure_set(x_54, 1, x_3);
|
||||
x_55 = l_Lean_Elab_Command_mkInstanceName___lambda__5___closed__1;
|
||||
x_56 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_55, x_54, x_51, x_6, x_7, x_8, x_9, x_10, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_56;
|
||||
uint8_t x_57;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -2148,23 +2151,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_56 = !lean_is_exclusive(x_13);
|
||||
if (x_56 == 0)
|
||||
x_57 = !lean_is_exclusive(x_13);
|
||||
if (x_57 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_13, 0);
|
||||
x_58 = lean_ctor_get(x_13, 1);
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_58 = lean_ctor_get(x_13, 0);
|
||||
x_59 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_13);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
return x_60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
614
stage0/stdlib/Lean/Elab/Inductive.c
generated
614
stage0/stdlib/Lean/Elab/Inductive.c
generated
File diff suppressed because it is too large
Load diff
350
stage0/stdlib/Lean/Elab/Match.c
generated
350
stage0/stdlib/Lean/Elab/Match.c
generated
|
|
@ -45,11 +45,11 @@ lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_
|
|||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_ToDepElimPattern_main___spec__4(size_t, lean_object*, lean_object*, lean_object*, 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* l_Lean_Elab_Term_expandMatchAlts_x3f(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch_declRange___closed__3;
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__4(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*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5;
|
||||
lean_object* l_Lean_mkSort(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__2;
|
||||
|
|
@ -71,6 +71,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch
|
|||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch_declRange(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_toPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3;
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop(lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
|
|
@ -79,7 +80,6 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Matc
|
|||
lean_object* l_Lean_Meta_getFVarsToGeneralize(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_updateMatchType___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -374,11 +374,11 @@ extern lean_object* l_Lean_Elab_Term_Quotation_precheckAttribute;
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___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*);
|
||||
static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__2___closed__2;
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__7___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_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_topSort_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_isNamedPattern_x3f(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_checkCompatibleApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_TopSort_State_visitedFVars___default;
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___closed__2;
|
||||
|
|
@ -696,7 +696,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch
|
|||
lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_unpack_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_isAtomicDiscr_x3f___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__2;
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch_declRange___closed__6;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -711,6 +710,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch
|
|||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__5___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_containsFVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -861,8 +861,8 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch_declRange(lea
|
|||
lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15840_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15842_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586_(lean_object*);
|
||||
lean_object* l_Lean_mkSimpleThunk(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_isAtomicDiscr_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabNoMatch___closed__4;
|
||||
|
|
@ -900,6 +900,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isPattern
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__1(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withoutAuxDiscrs(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1;
|
||||
lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__9;
|
||||
|
|
@ -907,7 +908,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPat
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_checkCompatibleApps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_unpackMatchTypePatterns(lean_object*);
|
||||
|
|
@ -11616,29 +11616,31 @@ if (x_9 == 0)
|
|||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = 1;
|
||||
lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 6, x_10);
|
||||
lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 6, x_10);
|
||||
x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29;
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t 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; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_12 = lean_ctor_get(x_2, 0);
|
||||
x_13 = lean_ctor_get(x_2, 1);
|
||||
x_14 = lean_ctor_get(x_2, 2);
|
||||
x_15 = lean_ctor_get(x_2, 3);
|
||||
x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8);
|
||||
x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1);
|
||||
x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2);
|
||||
x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9);
|
||||
x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1);
|
||||
x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2);
|
||||
x_19 = lean_ctor_get(x_2, 4);
|
||||
x_20 = lean_ctor_get(x_2, 5);
|
||||
x_21 = lean_ctor_get(x_2, 6);
|
||||
x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3);
|
||||
x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4);
|
||||
x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5);
|
||||
x_25 = lean_ctor_get(x_2, 7);
|
||||
x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_25);
|
||||
x_22 = lean_ctor_get(x_2, 7);
|
||||
x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3);
|
||||
x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4);
|
||||
x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5);
|
||||
x_26 = lean_ctor_get(x_2, 8);
|
||||
x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
|
|
@ -11647,26 +11649,27 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_2);
|
||||
x_27 = 1;
|
||||
x_28 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_28, 0, x_12);
|
||||
lean_ctor_set(x_28, 1, x_13);
|
||||
lean_ctor_set(x_28, 2, x_14);
|
||||
lean_ctor_set(x_28, 3, x_15);
|
||||
lean_ctor_set(x_28, 4, x_19);
|
||||
lean_ctor_set(x_28, 5, x_20);
|
||||
lean_ctor_set(x_28, 6, x_21);
|
||||
lean_ctor_set(x_28, 7, x_25);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8, x_16);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 1, x_17);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 2, x_18);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 3, x_22);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 4, x_23);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 5, x_24);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 6, x_27);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*8 + 7, x_26);
|
||||
x_29 = lean_apply_7(x_1, x_28, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_29;
|
||||
x_28 = 1;
|
||||
x_29 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_29, 0, x_12);
|
||||
lean_ctor_set(x_29, 1, x_13);
|
||||
lean_ctor_set(x_29, 2, x_14);
|
||||
lean_ctor_set(x_29, 3, x_15);
|
||||
lean_ctor_set(x_29, 4, x_19);
|
||||
lean_ctor_set(x_29, 5, x_20);
|
||||
lean_ctor_set(x_29, 6, x_21);
|
||||
lean_ctor_set(x_29, 7, x_22);
|
||||
lean_ctor_set(x_29, 8, x_26);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9, x_16);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 1, x_17);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 2, x_18);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 3, x_23);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 4, x_24);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 5, x_25);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 6, x_28);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 7, x_27);
|
||||
x_30 = lean_apply_7(x_1, x_29, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12272,7 +12275,7 @@ if (x_13 == 0)
|
|||
{
|
||||
uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_14 = 0;
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*8 + 3, x_14);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*9 + 3, x_14);
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = lean_unsigned_to_nat(1u);
|
||||
lean_inc(x_10);
|
||||
|
|
@ -12445,23 +12448,25 @@ return x_53;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73;
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_54 = lean_ctor_get(x_3, 0);
|
||||
x_55 = lean_ctor_get(x_3, 1);
|
||||
x_56 = lean_ctor_get(x_3, 2);
|
||||
x_57 = lean_ctor_get(x_3, 3);
|
||||
x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*8);
|
||||
x_59 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1);
|
||||
x_60 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2);
|
||||
x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*9);
|
||||
x_59 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1);
|
||||
x_60 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2);
|
||||
x_61 = lean_ctor_get(x_3, 4);
|
||||
x_62 = lean_ctor_get(x_3, 5);
|
||||
x_63 = lean_ctor_get(x_3, 6);
|
||||
x_64 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4);
|
||||
x_65 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5);
|
||||
x_66 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6);
|
||||
x_67 = lean_ctor_get(x_3, 7);
|
||||
x_68 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_67);
|
||||
x_64 = lean_ctor_get(x_3, 7);
|
||||
x_65 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4);
|
||||
x_66 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5);
|
||||
x_67 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6);
|
||||
x_68 = lean_ctor_get(x_3, 8);
|
||||
x_69 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_68);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_62);
|
||||
lean_inc(x_61);
|
||||
|
|
@ -12470,140 +12475,141 @@ lean_inc(x_56);
|
|||
lean_inc(x_55);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_3);
|
||||
x_69 = 0;
|
||||
x_70 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_70, 0, x_54);
|
||||
lean_ctor_set(x_70, 1, x_55);
|
||||
lean_ctor_set(x_70, 2, x_56);
|
||||
lean_ctor_set(x_70, 3, x_57);
|
||||
lean_ctor_set(x_70, 4, x_61);
|
||||
lean_ctor_set(x_70, 5, x_62);
|
||||
lean_ctor_set(x_70, 6, x_63);
|
||||
lean_ctor_set(x_70, 7, x_67);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8, x_58);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 1, x_59);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 2, x_60);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 3, x_69);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 4, x_64);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 5, x_65);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 6, x_66);
|
||||
lean_ctor_set_uint8(x_70, sizeof(void*)*8 + 7, x_68);
|
||||
x_71 = lean_unsigned_to_nat(0u);
|
||||
x_72 = lean_unsigned_to_nat(1u);
|
||||
x_70 = 0;
|
||||
x_71 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_71, 0, x_54);
|
||||
lean_ctor_set(x_71, 1, x_55);
|
||||
lean_ctor_set(x_71, 2, x_56);
|
||||
lean_ctor_set(x_71, 3, x_57);
|
||||
lean_ctor_set(x_71, 4, x_61);
|
||||
lean_ctor_set(x_71, 5, x_62);
|
||||
lean_ctor_set(x_71, 6, x_63);
|
||||
lean_ctor_set(x_71, 7, x_64);
|
||||
lean_ctor_set(x_71, 8, x_68);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9, x_58);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 1, x_59);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 2, x_60);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 3, x_70);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 4, x_65);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 5, x_66);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 6, x_67);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 7, x_69);
|
||||
x_72 = lean_unsigned_to_nat(0u);
|
||||
x_73 = lean_unsigned_to_nat(1u);
|
||||
lean_inc(x_10);
|
||||
x_73 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2(x_1, x_10, x_71, x_10, x_72, x_12, x_70, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_74 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2(x_1, x_10, x_72, x_10, x_73, x_12, x_71, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_10);
|
||||
if (lean_obj_tag(x_73) == 0)
|
||||
{
|
||||
lean_object* x_74;
|
||||
x_74 = lean_ctor_get(x_73, 0);
|
||||
lean_inc(x_74);
|
||||
if (lean_obj_tag(x_74) == 0)
|
||||
{
|
||||
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_75 = lean_ctor_get(x_73, 1);
|
||||
lean_object* x_75;
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
if (lean_is_exclusive(x_73)) {
|
||||
lean_ctor_release(x_73, 0);
|
||||
lean_ctor_release(x_73, 1);
|
||||
x_76 = x_73;
|
||||
} else {
|
||||
lean_dec_ref(x_73);
|
||||
x_76 = lean_box(0);
|
||||
}
|
||||
x_77 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_77);
|
||||
if (lean_obj_tag(x_75) == 0)
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
if (lean_is_exclusive(x_74)) {
|
||||
lean_ctor_release(x_74, 0);
|
||||
x_78 = x_74;
|
||||
lean_ctor_release(x_74, 1);
|
||||
x_77 = x_74;
|
||||
} else {
|
||||
lean_dec_ref(x_74);
|
||||
x_78 = lean_box(0);
|
||||
x_77 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_78)) {
|
||||
x_79 = lean_alloc_ctor(0, 1, 0);
|
||||
x_78 = lean_ctor_get(x_75, 0);
|
||||
lean_inc(x_78);
|
||||
if (lean_is_exclusive(x_75)) {
|
||||
lean_ctor_release(x_75, 0);
|
||||
x_79 = x_75;
|
||||
} else {
|
||||
x_79 = x_78;
|
||||
lean_dec_ref(x_75);
|
||||
x_79 = lean_box(0);
|
||||
}
|
||||
lean_ctor_set(x_79, 0, x_77);
|
||||
if (lean_is_scalar(x_76)) {
|
||||
x_80 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_79)) {
|
||||
x_80 = lean_alloc_ctor(0, 1, 0);
|
||||
} else {
|
||||
x_80 = x_76;
|
||||
x_80 = x_79;
|
||||
}
|
||||
lean_ctor_set(x_80, 0, x_79);
|
||||
lean_ctor_set(x_80, 1, x_75);
|
||||
return x_80;
|
||||
lean_ctor_set(x_80, 0, x_78);
|
||||
if (lean_is_scalar(x_77)) {
|
||||
x_81 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_81 = x_77;
|
||||
}
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
lean_ctor_set(x_81, 1, x_76);
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_81 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_81);
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
x_82 = lean_ctor_get(x_75, 0);
|
||||
lean_inc(x_82);
|
||||
if (lean_is_exclusive(x_75)) {
|
||||
lean_ctor_release(x_75, 0);
|
||||
x_83 = x_75;
|
||||
} else {
|
||||
lean_dec_ref(x_75);
|
||||
x_83 = lean_box(0);
|
||||
}
|
||||
x_84 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_84);
|
||||
if (lean_is_exclusive(x_74)) {
|
||||
lean_ctor_release(x_74, 0);
|
||||
x_82 = x_74;
|
||||
lean_ctor_release(x_74, 1);
|
||||
x_85 = x_74;
|
||||
} else {
|
||||
lean_dec_ref(x_74);
|
||||
x_82 = lean_box(0);
|
||||
x_85 = lean_box(0);
|
||||
}
|
||||
x_83 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_83);
|
||||
if (lean_is_exclusive(x_73)) {
|
||||
lean_ctor_release(x_73, 0);
|
||||
lean_ctor_release(x_73, 1);
|
||||
x_84 = x_73;
|
||||
} else {
|
||||
lean_dec_ref(x_73);
|
||||
x_84 = lean_box(0);
|
||||
}
|
||||
x_85 = lean_ctor_get(x_81, 0);
|
||||
lean_inc(x_85);
|
||||
x_86 = lean_ctor_get(x_81, 1);
|
||||
x_86 = lean_ctor_get(x_82, 0);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_81);
|
||||
x_87 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_86);
|
||||
lean_ctor_set(x_87, 1, x_85);
|
||||
if (lean_is_scalar(x_82)) {
|
||||
x_88 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_88 = x_82;
|
||||
}
|
||||
x_87 = lean_ctor_get(x_82, 1);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_82);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
if (lean_is_scalar(x_84)) {
|
||||
x_89 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 1, x_86);
|
||||
if (lean_is_scalar(x_83)) {
|
||||
x_89 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_89 = x_84;
|
||||
x_89 = x_83;
|
||||
}
|
||||
lean_ctor_set(x_89, 0, x_88);
|
||||
lean_ctor_set(x_89, 1, x_83);
|
||||
return x_89;
|
||||
if (lean_is_scalar(x_85)) {
|
||||
x_90 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_90 = x_85;
|
||||
}
|
||||
lean_ctor_set(x_90, 0, x_89);
|
||||
lean_ctor_set(x_90, 1, x_84);
|
||||
return x_90;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_90 = lean_ctor_get(x_73, 0);
|
||||
lean_inc(x_90);
|
||||
x_91 = lean_ctor_get(x_73, 1);
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94;
|
||||
x_91 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_91);
|
||||
if (lean_is_exclusive(x_73)) {
|
||||
lean_ctor_release(x_73, 0);
|
||||
lean_ctor_release(x_73, 1);
|
||||
x_92 = x_73;
|
||||
x_92 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_92);
|
||||
if (lean_is_exclusive(x_74)) {
|
||||
lean_ctor_release(x_74, 0);
|
||||
lean_ctor_release(x_74, 1);
|
||||
x_93 = x_74;
|
||||
} else {
|
||||
lean_dec_ref(x_73);
|
||||
x_92 = lean_box(0);
|
||||
lean_dec_ref(x_74);
|
||||
x_93 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_92)) {
|
||||
x_93 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_93)) {
|
||||
x_94 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_93 = x_92;
|
||||
x_94 = x_93;
|
||||
}
|
||||
lean_ctor_set(x_93, 0, x_90);
|
||||
lean_ctor_set(x_93, 1, x_91);
|
||||
return x_93;
|
||||
lean_ctor_set(x_94, 0, x_91);
|
||||
lean_ctor_set(x_94, 1, x_92);
|
||||
return x_94;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -29994,7 +30000,7 @@ lean_dec(x_2);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -30004,7 +30010,7 @@ 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_Match___hyg_12584____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -30012,17 +30018,17 @@ x_1 = lean_mk_string("ignoreUnusedAlts");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__2;
|
||||
x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2;
|
||||
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_Match___hyg_12584____closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -30030,13 +30036,13 @@ x_1 = lean_mk_string("if true, do not generate error if an alternative is not us
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5() {
|
||||
static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 0;
|
||||
x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__15;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__4;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4;
|
||||
x_4 = lean_box(x_1);
|
||||
x_5 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
|
|
@ -30045,12 +30051,12 @@ lean_ctor_set(x_5, 2, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586_(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_Match___hyg_12584____closed__3;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5;
|
||||
x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3;
|
||||
x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5;
|
||||
x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -33193,7 +33199,7 @@ if (lean_obj_tag(x_28) == 0)
|
|||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_21);
|
||||
x_30 = lean_array_get_size(x_22);
|
||||
x_31 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1;
|
||||
x_31 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1;
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
|
|
@ -37229,7 +37235,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15840_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15842_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -38008,17 +38014,17 @@ l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__1
|
|||
lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__1);
|
||||
l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__4);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584____closed__5);
|
||||
if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12584_(lean_io_mk_world());
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__1);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__2);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__3);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__4);
|
||||
l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586____closed__5);
|
||||
if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_12586_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Elab_Term_match_ignoreUnusedAlts = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Elab_Term_match_ignoreUnusedAlts);
|
||||
|
|
@ -38148,7 +38154,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch_declRange___closed_
|
|||
res = l___regBuiltin_Lean_Elab_Term_elabMatch_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15840_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_15842_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1();
|
||||
|
|
|
|||
1740
stage0/stdlib/Lean/Elab/MutualDef.c
generated
1740
stage0/stdlib/Lean/Elab/MutualDef.c
generated
File diff suppressed because it is too large
Load diff
2
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
2
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
|
|
@ -1674,7 +1674,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_14 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4);
|
||||
x_14 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4);
|
||||
lean_dec(x_2);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/Quotation.c
generated
2
stage0/stdlib/Lean/Elab/Quotation.c
generated
|
|
@ -7821,7 +7821,7 @@ lean_inc(x_13);
|
|||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = lean_ctor_get(x_5, 5);
|
||||
x_15 = lean_ctor_get(x_5, 6);
|
||||
lean_inc(x_1);
|
||||
x_16 = l_Lean_Elab_Term_Quotation_resolveSectionVariable(x_15, x_1);
|
||||
x_17 = l_List_appendTR___rarg(x_13, x_16);
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/Quotation/Precheck.c
generated
2
stage0/stdlib/Lean/Elab/Quotation/Precheck.c
generated
|
|
@ -2728,7 +2728,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_Precheck_0__Lean_Elab_T
|
|||
_start:
|
||||
{
|
||||
lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = lean_ctor_get(x_2, 6);
|
||||
x_9 = lean_ctor_get(x_2, 7);
|
||||
x_10 = l_Std_RBNode_any___at___private_Lean_Elab_Quotation_Precheck_0__Lean_Elab_Term_Quotation_isSectionVariable___spec__1(x_1, x_9);
|
||||
x_11 = lean_box(x_10);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
|
|||
353
stage0/stdlib/Lean/Elab/Structure.c
generated
353
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -43,12 +43,12 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_addTermInfo_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_erase_macro_scopes(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_325____closed__24;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1;
|
||||
lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___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_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___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* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2362_(lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -67,7 +67,7 @@ extern lean_object* l_Lean_nullKind;
|
|||
lean_object* l_Lean_NameSet_contains___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__13;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam_levelMVarToParamFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object*, lean_object*, lean_object*, uint8_t, 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*);
|
||||
uint8_t l_Lean_Elab_Modifiers_isPartial(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -97,6 +97,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_325____closed__7;
|
||||
lean_object* l_Lean_throwError___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -137,7 +138,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_pr
|
|||
static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__2___closed__1;
|
||||
lean_object* lean_environment_find(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_524____closed__22;
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3;
|
||||
static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__1;
|
||||
|
|
@ -173,10 +173,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Stru
|
|||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_524____boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__1(lean_object*);
|
||||
|
|
@ -244,6 +245,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStr
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_StructFieldKind_noConfusion___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__7(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__8;
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__9;
|
||||
|
|
@ -342,7 +344,7 @@ static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Le
|
|||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8___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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg(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*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__3;
|
||||
|
|
@ -350,7 +352,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registe
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___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_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -360,6 +362,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_de
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___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*);
|
||||
lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t);
|
||||
lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_elabStructure___closed__8;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__10;
|
||||
|
|
@ -479,7 +482,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure
|
|||
lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*);
|
||||
lean_object* l_Lean_addAndCompile___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_protectedExt;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, 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*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___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_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -527,6 +530,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Stru
|
|||
lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_325____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reduceProjs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(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*);
|
||||
static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__7;
|
||||
|
|
@ -551,6 +555,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Stru
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__2;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__4;
|
||||
lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__8;
|
||||
extern lean_object* l_Lean_NameSet_empty;
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___closed__1;
|
||||
|
|
@ -629,7 +634,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStr
|
|||
lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_toVisibility___closed__1;
|
||||
lean_object* l_Lean_Elab_getDeclarationRange___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_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__8___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_EXPORT lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6;
|
||||
|
|
@ -670,6 +675,7 @@ uint8_t l_Lean_BinderInfo_isExplicit(uint8_t);
|
|||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_EXPORT lean_object* l_Lean_Elab_Command_StructFieldKind_noConfusion(lean_object*);
|
||||
lean_object* l_Lean_Name_beq___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -700,7 +706,6 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f(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_EXPORT lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_325____closed__4;
|
||||
lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__3(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -769,8 +774,9 @@ lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___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*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__6;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__5___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10769_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10793_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_2497_(lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -915,7 +921,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_process
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__3;
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam_levelMVarToParam_x27___lambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -929,7 +935,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0_
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_ResolveName_resolveNamespaceUsingScope___spec__1(lean_object*);
|
||||
lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_go___spec__1(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_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__3___boxed(lean_object**);
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_2497____closed__4;
|
||||
|
|
@ -937,7 +943,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Stru
|
|||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__2___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7___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_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7___boxed(lean_object**);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_325____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateFieldInfoVal___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
|
||||
|
|
@ -4263,13 +4269,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean
|
|||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_11 = l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_11 = l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
x_14 = l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
|
|
@ -4278,7 +4284,7 @@ lean_dec(x_14);
|
|||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_12);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
x_18 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_1, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_16);
|
||||
x_18 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(x_1, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_16);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
|
|
@ -13191,7 +13197,16 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Co
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1() {
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = lean_ctor_get(x_1, 3);
|
||||
x_4 = lean_name_eq(x_3, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -13202,7 +13217,7 @@ lean_ctor_set(x_2, 1, x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___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* x_9) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
|
|
@ -13224,7 +13239,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1;
|
||||
x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1;
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_9);
|
||||
|
|
@ -14736,18 +14751,35 @@ return x_281;
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(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; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_9 = lean_ctor_get(x_1, 5);
|
||||
lean_inc(x_9);
|
||||
x_10 = l_Lean_Syntax_getArgs(x_9);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1), 9, 1);
|
||||
lean_closure_set(x_11, 0, x_1);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2);
|
||||
lean_closure_set(x_12, 0, x_10);
|
||||
lean_closure_set(x_12, 1, x_11);
|
||||
x_13 = l_Lean_Elab_Term_withAutoBoundImplicit___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_13;
|
||||
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_inc(x_1);
|
||||
x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___boxed), 2, 1);
|
||||
lean_closure_set(x_9, 0, x_1);
|
||||
x_10 = lean_ctor_get(x_1, 5);
|
||||
lean_inc(x_10);
|
||||
x_11 = l_Lean_Syntax_getArgs(x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2), 9, 1);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2);
|
||||
lean_closure_set(x_13, 0, x_11);
|
||||
lean_closure_set(x_13, 1, x_12);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg), 9, 2);
|
||||
lean_closure_set(x_14, 0, x_9);
|
||||
lean_closure_set(x_14, 1, x_13);
|
||||
x_15 = l_Lean_Elab_Term_withAutoBoundImplicit___rarg(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___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) {
|
||||
|
|
@ -19871,7 +19903,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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__1;
|
||||
x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(703u);
|
||||
x_3 = lean_unsigned_to_nat(704u);
|
||||
x_4 = lean_unsigned_to_nat(21u);
|
||||
x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -19892,7 +19924,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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__1;
|
||||
x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(702u);
|
||||
x_3 = lean_unsigned_to_nat(703u);
|
||||
x_4 = lean_unsigned_to_nat(23u);
|
||||
x_5 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__4;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -21990,7 +22022,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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__1;
|
||||
x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(750u);
|
||||
x_3 = lean_unsigned_to_nat(751u);
|
||||
x_4 = lean_unsigned_to_nat(79u);
|
||||
x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -22299,7 +22331,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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__1;
|
||||
x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent_copyFields___spec__1___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(741u);
|
||||
x_3 = lean_unsigned_to_nat(742u);
|
||||
x_4 = lean_unsigned_to_nat(72u);
|
||||
x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -22915,7 +22947,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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__1;
|
||||
x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(735u);
|
||||
x_3 = lean_unsigned_to_nat(736u);
|
||||
x_4 = lean_unsigned_to_nat(68u);
|
||||
x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -27550,7 +27582,36 @@ return x_38;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t 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, lean_object* x_17, lean_object* x_18) {
|
||||
_start:
|
||||
{
|
||||
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_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_19 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_1, x_2, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = lean_box(x_5);
|
||||
x_22 = lean_box(x_9);
|
||||
lean_inc(x_1);
|
||||
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__3___boxed), 18, 11);
|
||||
lean_closure_set(x_23, 0, x_2);
|
||||
lean_closure_set(x_23, 1, x_3);
|
||||
lean_closure_set(x_23, 2, x_1);
|
||||
lean_closure_set(x_23, 3, x_4);
|
||||
lean_closure_set(x_23, 4, x_21);
|
||||
lean_closure_set(x_23, 5, x_6);
|
||||
lean_closure_set(x_23, 6, x_7);
|
||||
lean_closure_set(x_23, 7, x_8);
|
||||
lean_closure_set(x_23, 8, x_22);
|
||||
lean_closure_set(x_23, 9, x_10);
|
||||
lean_closure_set(x_23, 10, x_11);
|
||||
x_24 = l_Lean_Elab_Term_withDeclName___rarg(x_1, x_23, x_12, x_13, x_14, x_15, x_16, x_17, x_20);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
|
|
@ -27579,24 +27640,21 @@ lean_inc(x_22);
|
|||
x_23 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_22, 2);
|
||||
x_25 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get(x_22, 2);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_22);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_24);
|
||||
x_26 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(x_24, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_23);
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
x_27 = lean_alloc_closure((void*)(l_Lean_Name_beq___boxed), 2, 1);
|
||||
lean_closure_set(x_27, 0, x_24);
|
||||
x_28 = lean_box(x_4);
|
||||
x_29 = lean_box(x_8);
|
||||
lean_inc(x_24);
|
||||
x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__3___boxed), 18, 11);
|
||||
lean_closure_set(x_30, 0, x_3);
|
||||
lean_closure_set(x_30, 1, x_2);
|
||||
lean_closure_set(x_30, 2, x_24);
|
||||
x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__4___boxed), 18, 11);
|
||||
lean_closure_set(x_30, 0, x_25);
|
||||
lean_closure_set(x_30, 1, x_3);
|
||||
lean_closure_set(x_30, 2, x_2);
|
||||
lean_closure_set(x_30, 3, x_18);
|
||||
lean_closure_set(x_30, 4, x_28);
|
||||
lean_closure_set(x_30, 5, x_5);
|
||||
|
|
@ -27604,8 +27662,8 @@ lean_closure_set(x_30, 6, x_6);
|
|||
lean_closure_set(x_30, 7, x_7);
|
||||
lean_closure_set(x_30, 8, x_29);
|
||||
lean_closure_set(x_30, 9, x_9);
|
||||
lean_closure_set(x_30, 10, x_25);
|
||||
x_31 = l_Lean_Elab_Term_withDeclName___rarg(x_24, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_27);
|
||||
lean_closure_set(x_30, 10, x_26);
|
||||
x_31 = l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg(x_27, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_23);
|
||||
return x_31;
|
||||
}
|
||||
else
|
||||
|
|
@ -27645,13 +27703,13 @@ return x_35;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, 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_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, 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_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_18 = lean_box(x_4);
|
||||
x_19 = lean_box(x_7);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__4___boxed), 16, 9);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__5___boxed), 16, 9);
|
||||
lean_closure_set(x_20, 0, x_1);
|
||||
lean_closure_set(x_20, 1, x_2);
|
||||
lean_closure_set(x_20, 2, x_3);
|
||||
|
|
@ -27665,7 +27723,7 @@ x_21 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_20, x_11, x_12, x_13,
|
|||
return x_21;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, 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, lean_object* x_17) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, 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, lean_object* x_17) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_18; lean_object* x_19;
|
||||
|
|
@ -27709,16 +27767,16 @@ x_34 = !lean_is_exclusive(x_11);
|
|||
if (x_34 == 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;
|
||||
x_35 = lean_ctor_get(x_11, 6);
|
||||
x_35 = lean_ctor_get(x_11, 7);
|
||||
lean_dec(x_35);
|
||||
lean_ctor_set(x_11, 6, x_33);
|
||||
lean_ctor_set(x_11, 7, x_33);
|
||||
x_36 = l_Lean_Elab_Term_resetMessageLog(x_11, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_37 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_36);
|
||||
x_38 = lean_box(x_5);
|
||||
x_39 = lean_box(x_8);
|
||||
x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__5___boxed), 17, 8);
|
||||
x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__6___boxed), 17, 8);
|
||||
lean_closure_set(x_40, 0, x_2);
|
||||
lean_closure_set(x_40, 1, x_3);
|
||||
lean_closure_set(x_40, 2, x_4);
|
||||
|
|
@ -27733,23 +27791,25 @@ return x_42;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_43 = lean_ctor_get(x_11, 0);
|
||||
x_44 = lean_ctor_get(x_11, 1);
|
||||
x_45 = lean_ctor_get(x_11, 2);
|
||||
x_46 = lean_ctor_get(x_11, 3);
|
||||
x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*8);
|
||||
x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 1);
|
||||
x_49 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 2);
|
||||
x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*9);
|
||||
x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 1);
|
||||
x_49 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 2);
|
||||
x_50 = lean_ctor_get(x_11, 4);
|
||||
x_51 = lean_ctor_get(x_11, 5);
|
||||
x_52 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 3);
|
||||
x_53 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 4);
|
||||
x_54 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 5);
|
||||
x_55 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 6);
|
||||
x_56 = lean_ctor_get(x_11, 7);
|
||||
x_57 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_56);
|
||||
x_52 = lean_ctor_get(x_11, 6);
|
||||
x_53 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 3);
|
||||
x_54 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 4);
|
||||
x_55 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 5);
|
||||
x_56 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 6);
|
||||
x_57 = lean_ctor_get(x_11, 8);
|
||||
x_58 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_52);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_46);
|
||||
|
|
@ -27757,46 +27817,47 @@ lean_inc(x_45);
|
|||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_11);
|
||||
x_58 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_58, 0, x_43);
|
||||
lean_ctor_set(x_58, 1, x_44);
|
||||
lean_ctor_set(x_58, 2, x_45);
|
||||
lean_ctor_set(x_58, 3, x_46);
|
||||
lean_ctor_set(x_58, 4, x_50);
|
||||
lean_ctor_set(x_58, 5, x_51);
|
||||
lean_ctor_set(x_58, 6, x_33);
|
||||
lean_ctor_set(x_58, 7, x_56);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8, x_47);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 1, x_48);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 2, x_49);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 3, x_52);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 4, x_53);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 5, x_54);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 6, x_55);
|
||||
lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 7, x_57);
|
||||
x_59 = l_Lean_Elab_Term_resetMessageLog(x_58, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_60 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_59);
|
||||
x_61 = lean_box(x_5);
|
||||
x_62 = lean_box(x_8);
|
||||
x_63 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__5___boxed), 17, 8);
|
||||
lean_closure_set(x_63, 0, x_2);
|
||||
lean_closure_set(x_63, 1, x_3);
|
||||
lean_closure_set(x_63, 2, x_4);
|
||||
lean_closure_set(x_63, 3, x_61);
|
||||
lean_closure_set(x_63, 4, x_6);
|
||||
lean_closure_set(x_63, 5, x_7);
|
||||
lean_closure_set(x_63, 6, x_62);
|
||||
lean_closure_set(x_63, 7, x_9);
|
||||
x_64 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__2___closed__3;
|
||||
x_65 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_10, x_64, x_63, x_58, x_12, x_13, x_14, x_15, x_16, x_60);
|
||||
return x_65;
|
||||
x_59 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_59, 0, x_43);
|
||||
lean_ctor_set(x_59, 1, x_44);
|
||||
lean_ctor_set(x_59, 2, x_45);
|
||||
lean_ctor_set(x_59, 3, x_46);
|
||||
lean_ctor_set(x_59, 4, x_50);
|
||||
lean_ctor_set(x_59, 5, x_51);
|
||||
lean_ctor_set(x_59, 6, x_52);
|
||||
lean_ctor_set(x_59, 7, x_33);
|
||||
lean_ctor_set(x_59, 8, x_57);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9, x_47);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 1, x_48);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 2, x_49);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 3, x_53);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 4, x_54);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 5, x_55);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 6, x_56);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*9 + 7, x_58);
|
||||
x_60 = l_Lean_Elab_Term_resetMessageLog(x_59, x_12, x_13, x_14, x_15, x_16, x_32);
|
||||
x_61 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_60);
|
||||
x_62 = lean_box(x_5);
|
||||
x_63 = lean_box(x_8);
|
||||
x_64 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__6___boxed), 17, 8);
|
||||
lean_closure_set(x_64, 0, x_2);
|
||||
lean_closure_set(x_64, 1, x_3);
|
||||
lean_closure_set(x_64, 2, x_4);
|
||||
lean_closure_set(x_64, 3, x_62);
|
||||
lean_closure_set(x_64, 4, x_6);
|
||||
lean_closure_set(x_64, 5, x_7);
|
||||
lean_closure_set(x_64, 6, x_63);
|
||||
lean_closure_set(x_64, 7, x_9);
|
||||
x_65 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__2___closed__3;
|
||||
x_66 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_10, x_65, x_64, x_59, x_12, x_13, x_14, x_15, x_16, x_61);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_66;
|
||||
uint8_t x_67;
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -27810,28 +27871,28 @@ lean_dec(x_6);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_66 = !lean_is_exclusive(x_19);
|
||||
if (x_66 == 0)
|
||||
x_67 = !lean_is_exclusive(x_19);
|
||||
if (x_67 == 0)
|
||||
{
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69;
|
||||
x_67 = lean_ctor_get(x_19, 0);
|
||||
x_68 = lean_ctor_get(x_19, 1);
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_68 = lean_ctor_get(x_19, 0);
|
||||
x_69 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_69);
|
||||
lean_inc(x_68);
|
||||
lean_inc(x_67);
|
||||
lean_dec(x_19);
|
||||
x_69 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_68);
|
||||
return x_69;
|
||||
x_70 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_70, 0, x_68);
|
||||
lean_ctor_set(x_70, 1, x_69);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, uint8_t 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) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, uint8_t 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_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
|
|
@ -27846,7 +27907,7 @@ x_17 = lean_ctor_get(x_15, 5);
|
|||
lean_inc(x_17);
|
||||
x_18 = lean_box(x_4);
|
||||
x_19 = lean_box(x_6);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__6___boxed), 17, 9);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabStructure___lambda__7___boxed), 17, 9);
|
||||
lean_closure_set(x_20, 0, x_15);
|
||||
lean_closure_set(x_20, 1, x_1);
|
||||
lean_closure_set(x_20, 2, x_2);
|
||||
|
|
@ -28299,7 +28360,7 @@ x_32 = l_Lean_Syntax_getArg(x_22, x_8);
|
|||
lean_dec(x_22);
|
||||
x_33 = l_Lean_Syntax_getArg(x_32, x_13);
|
||||
lean_dec(x_32);
|
||||
x_34 = l_Lean_Elab_Command_elabStructure___lambda__7(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_33, x_3, x_4, x_30);
|
||||
x_34 = l_Lean_Elab_Command_elabStructure___lambda__8(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_33, x_3, x_4, x_30);
|
||||
return x_34;
|
||||
}
|
||||
else
|
||||
|
|
@ -28351,7 +28412,7 @@ x_58 = lean_alloc_ctor(1, 3, 0);
|
|||
lean_ctor_set(x_58, 0, x_48);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
lean_ctor_set(x_58, 2, x_56);
|
||||
x_59 = l_Lean_Elab_Command_elabStructure___lambda__7(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_58, x_3, x_4, x_41);
|
||||
x_59 = l_Lean_Elab_Command_elabStructure___lambda__8(x_14, x_27, x_2, x_12, x_28, x_26, x_17, x_29, x_58, x_3, x_4, x_41);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
|
|
@ -28517,7 +28578,37 @@ x_21 = l_Lean_Elab_Command_elabStructure___lambda__3(x_1, x_2, x_3, x_4, x_19, x
|
|||
return x_21;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__4___boxed(lean_object** _args) {
|
||||
lean_object* x_1 = _args[0];
|
||||
lean_object* x_2 = _args[1];
|
||||
lean_object* x_3 = _args[2];
|
||||
lean_object* x_4 = _args[3];
|
||||
lean_object* x_5 = _args[4];
|
||||
lean_object* x_6 = _args[5];
|
||||
lean_object* x_7 = _args[6];
|
||||
lean_object* x_8 = _args[7];
|
||||
lean_object* x_9 = _args[8];
|
||||
lean_object* x_10 = _args[9];
|
||||
lean_object* x_11 = _args[10];
|
||||
lean_object* x_12 = _args[11];
|
||||
lean_object* x_13 = _args[12];
|
||||
lean_object* x_14 = _args[13];
|
||||
lean_object* x_15 = _args[14];
|
||||
lean_object* x_16 = _args[15];
|
||||
lean_object* x_17 = _args[16];
|
||||
lean_object* x_18 = _args[17];
|
||||
_start:
|
||||
{
|
||||
uint8_t x_19; uint8_t x_20; lean_object* x_21;
|
||||
x_19 = lean_unbox(x_5);
|
||||
lean_dec(x_5);
|
||||
x_20 = lean_unbox(x_9);
|
||||
lean_dec(x_9);
|
||||
x_21 = l_Lean_Elab_Command_elabStructure___lambda__4(x_1, x_2, x_3, x_4, x_19, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_17; uint8_t x_18; lean_object* x_19;
|
||||
|
|
@ -28525,11 +28616,11 @@ x_17 = lean_unbox(x_4);
|
|||
lean_dec(x_4);
|
||||
x_18 = lean_unbox(x_8);
|
||||
lean_dec(x_8);
|
||||
x_19 = l_Lean_Elab_Command_elabStructure___lambda__4(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
x_19 = l_Lean_Elab_Command_elabStructure___lambda__5(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__5___boxed(lean_object** _args) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6___boxed(lean_object** _args) {
|
||||
lean_object* x_1 = _args[0];
|
||||
lean_object* x_2 = _args[1];
|
||||
lean_object* x_3 = _args[2];
|
||||
|
|
@ -28554,12 +28645,12 @@ x_18 = lean_unbox(x_4);
|
|||
lean_dec(x_4);
|
||||
x_19 = lean_unbox(x_7);
|
||||
lean_dec(x_7);
|
||||
x_20 = l_Lean_Elab_Command_elabStructure___lambda__5(x_1, x_2, x_3, x_18, x_5, x_6, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
|
||||
x_20 = l_Lean_Elab_Command_elabStructure___lambda__6(x_1, x_2, x_3, x_18, x_5, x_6, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
|
||||
lean_dec(x_10);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__6___boxed(lean_object** _args) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7___boxed(lean_object** _args) {
|
||||
lean_object* x_1 = _args[0];
|
||||
lean_object* x_2 = _args[1];
|
||||
lean_object* x_3 = _args[2];
|
||||
|
|
@ -28584,12 +28675,12 @@ x_18 = lean_unbox(x_5);
|
|||
lean_dec(x_5);
|
||||
x_19 = lean_unbox(x_8);
|
||||
lean_dec(x_8);
|
||||
x_20 = l_Lean_Elab_Command_elabStructure___lambda__6(x_1, x_2, x_3, x_4, x_18, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
|
||||
x_20 = l_Lean_Elab_Command_elabStructure___lambda__7(x_1, x_2, x_3, x_4, x_18, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
|
||||
lean_dec(x_1);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__7___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) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__8___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_13; uint8_t x_14; lean_object* x_15;
|
||||
|
|
@ -28597,11 +28688,11 @@ x_13 = lean_unbox(x_4);
|
|||
lean_dec(x_4);
|
||||
x_14 = lean_unbox(x_6);
|
||||
lean_dec(x_6);
|
||||
x_15 = l_Lean_Elab_Command_elabStructure___lambda__7(x_1, x_2, x_3, x_13, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_15 = l_Lean_Elab_Command_elabStructure___lambda__8(x_1, x_2, x_3, x_13, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10769_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10793_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -29081,8 +29172,8 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName___closed__1
|
|||
lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName___closed__1);
|
||||
l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1);
|
||||
l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1);
|
||||
l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__2___closed__1);
|
||||
l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__1);
|
||||
l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4___closed__2();
|
||||
|
|
@ -29283,7 +29374,7 @@ l_Lean_Elab_Command_elabStructure___closed__12 = _init_l_Lean_Elab_Command_elabS
|
|||
lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__12);
|
||||
l_Lean_Elab_Command_elabStructure___closed__13 = _init_l_Lean_Elab_Command_elabStructure___closed__13();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__13);
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10769_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_10793_(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));
|
||||
|
|
|
|||
208
stage0/stdlib/Lean/Elab/Syntax.c
generated
208
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -14752,9 +14752,9 @@ x_28 = !lean_is_exclusive(x_5);
|
|||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_29 = lean_ctor_get(x_5, 6);
|
||||
x_29 = lean_ctor_get(x_5, 7);
|
||||
lean_dec(x_29);
|
||||
lean_ctor_set(x_5, 6, x_27);
|
||||
lean_ctor_set(x_5, 7, x_27);
|
||||
x_30 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
|
|
@ -14768,23 +14768,25 @@ return x_34;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_35 = lean_ctor_get(x_5, 0);
|
||||
x_36 = lean_ctor_get(x_5, 1);
|
||||
x_37 = lean_ctor_get(x_5, 2);
|
||||
x_38 = lean_ctor_get(x_5, 3);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_42 = lean_ctor_get(x_5, 4);
|
||||
x_43 = lean_ctor_get(x_5, 5);
|
||||
x_44 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_48 = lean_ctor_get(x_5, 7);
|
||||
x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_48);
|
||||
x_44 = lean_ctor_get(x_5, 6);
|
||||
x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_46 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_49 = lean_ctor_get(x_5, 8);
|
||||
x_50 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_38);
|
||||
|
|
@ -14792,38 +14794,39 @@ lean_inc(x_37);
|
|||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_5);
|
||||
x_50 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_50, 0, x_35);
|
||||
lean_ctor_set(x_50, 1, x_36);
|
||||
lean_ctor_set(x_50, 2, x_37);
|
||||
lean_ctor_set(x_50, 3, x_38);
|
||||
lean_ctor_set(x_50, 4, x_42);
|
||||
lean_ctor_set(x_50, 5, x_43);
|
||||
lean_ctor_set(x_50, 6, x_27);
|
||||
lean_ctor_set(x_50, 7, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax___lambda__2___boxed), 11, 2);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
lean_closure_set(x_53, 1, x_3);
|
||||
x_54 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_54, x_53, x_50, x_6, x_7, x_8, x_9, x_10, x_52);
|
||||
return x_55;
|
||||
x_51 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_51, 0, x_35);
|
||||
lean_ctor_set(x_51, 1, x_36);
|
||||
lean_ctor_set(x_51, 2, x_37);
|
||||
lean_ctor_set(x_51, 3, x_38);
|
||||
lean_ctor_set(x_51, 4, x_42);
|
||||
lean_ctor_set(x_51, 5, x_43);
|
||||
lean_ctor_set(x_51, 6, x_44);
|
||||
lean_ctor_set(x_51, 7, x_27);
|
||||
lean_ctor_set(x_51, 8, x_49);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9, x_39);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 1, x_40);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 2, x_41);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 3, x_45);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 4, x_46);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 5, x_47);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 6, x_48);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 7, x_50);
|
||||
x_52 = l_Lean_Elab_Term_resetMessageLog(x_51, x_6, x_7, x_8, x_9, x_10, x_26);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_52);
|
||||
x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax___lambda__2___boxed), 11, 2);
|
||||
lean_closure_set(x_54, 0, x_2);
|
||||
lean_closure_set(x_54, 1, x_3);
|
||||
x_55 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1;
|
||||
x_56 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_4, x_55, x_54, x_51, x_6, x_7, x_8, x_9, x_10, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_56;
|
||||
uint8_t x_57;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -14833,23 +14836,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_56 = !lean_is_exclusive(x_13);
|
||||
if (x_56 == 0)
|
||||
x_57 = !lean_is_exclusive(x_13);
|
||||
if (x_57 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_13, 0);
|
||||
x_58 = lean_ctor_get(x_13, 1);
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_58 = lean_ctor_get(x_13, 0);
|
||||
x_59 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_13);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
return x_60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17633,9 +17636,9 @@ x_27 = !lean_is_exclusive(x_4);
|
|||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_28 = lean_ctor_get(x_4, 6);
|
||||
x_28 = lean_ctor_get(x_4, 7);
|
||||
lean_dec(x_28);
|
||||
lean_ctor_set(x_4, 6, x_26);
|
||||
lean_ctor_set(x_4, 7, x_26);
|
||||
x_29 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -17648,23 +17651,25 @@ return x_33;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_34 = lean_ctor_get(x_4, 0);
|
||||
x_35 = lean_ctor_get(x_4, 1);
|
||||
x_36 = lean_ctor_get(x_4, 2);
|
||||
x_37 = lean_ctor_get(x_4, 3);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_41 = lean_ctor_get(x_4, 4);
|
||||
x_42 = lean_ctor_get(x_4, 5);
|
||||
x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_47 = lean_ctor_get(x_4, 7);
|
||||
x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_47);
|
||||
x_43 = lean_ctor_get(x_4, 6);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_48 = lean_ctor_get(x_4, 8);
|
||||
x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_37);
|
||||
|
|
@ -17672,37 +17677,38 @@ lean_inc(x_36);
|
|||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_4);
|
||||
x_49 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_49, 0, x_34);
|
||||
lean_ctor_set(x_49, 1, x_35);
|
||||
lean_ctor_set(x_49, 2, x_36);
|
||||
lean_ctor_set(x_49, 3, x_37);
|
||||
lean_ctor_set(x_49, 4, x_41);
|
||||
lean_ctor_set(x_49, 5, x_42);
|
||||
lean_ctor_set(x_49, 6, x_26);
|
||||
lean_ctor_set(x_49, 7, x_47);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8, x_38);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 3, x_43);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 4, x_44);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 5, x_45);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 6, x_46);
|
||||
lean_ctor_set_uint8(x_49, sizeof(void*)*8 + 7, x_48);
|
||||
x_50 = l_Lean_Elab_Term_resetMessageLog(x_49, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed), 10, 1);
|
||||
lean_closure_set(x_52, 0, x_2);
|
||||
x_53 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1;
|
||||
x_54 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_53, x_52, x_49, x_5, x_6, x_7, x_8, x_9, x_51);
|
||||
return x_54;
|
||||
x_50 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_50, 0, x_34);
|
||||
lean_ctor_set(x_50, 1, x_35);
|
||||
lean_ctor_set(x_50, 2, x_36);
|
||||
lean_ctor_set(x_50, 3, x_37);
|
||||
lean_ctor_set(x_50, 4, x_41);
|
||||
lean_ctor_set(x_50, 5, x_42);
|
||||
lean_ctor_set(x_50, 6, x_43);
|
||||
lean_ctor_set(x_50, 7, x_26);
|
||||
lean_ctor_set(x_50, 8, x_48);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9, x_38);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 1, x_39);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 2, x_40);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 3, x_44);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 4, x_45);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 5, x_46);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 6, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 7, x_49);
|
||||
x_51 = l_Lean_Elab_Term_resetMessageLog(x_50, x_5, x_6, x_7, x_8, x_9, x_25);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_51);
|
||||
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed), 10, 1);
|
||||
lean_closure_set(x_53, 0, x_2);
|
||||
x_54 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1;
|
||||
x_55 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_54, x_53, x_50, x_5, x_6, x_7, x_8, x_9, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_55;
|
||||
uint8_t x_56;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -17711,23 +17717,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_55 = !lean_is_exclusive(x_12);
|
||||
if (x_55 == 0)
|
||||
x_56 = !lean_is_exclusive(x_12);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_12, 0);
|
||||
x_57 = lean_ctor_get(x_12, 1);
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_12, 0);
|
||||
x_58 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_12);
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
return x_58;
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
178
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
178
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
|
|
@ -136,7 +136,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__14___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___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4349_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4350_(lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Level_instHashableLevel;
|
||||
lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -342,7 +342,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_
|
|||
_start:
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
|
|
@ -351,30 +351,32 @@ if (x_12 == 0)
|
|||
{
|
||||
uint8_t x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_13 = 0;
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*8 + 1, x_13);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*9 + 1, x_13);
|
||||
x_14 = 1;
|
||||
x_15 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34;
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35;
|
||||
x_16 = lean_ctor_get(x_4, 0);
|
||||
x_17 = lean_ctor_get(x_4, 1);
|
||||
x_18 = lean_ctor_get(x_4, 2);
|
||||
x_19 = lean_ctor_get(x_4, 3);
|
||||
x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_22 = lean_ctor_get(x_4, 4);
|
||||
x_23 = lean_ctor_get(x_4, 5);
|
||||
x_24 = lean_ctor_get(x_4, 6);
|
||||
x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_29 = lean_ctor_get(x_4, 7);
|
||||
x_30 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_29);
|
||||
x_25 = lean_ctor_get(x_4, 7);
|
||||
x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_30 = lean_ctor_get(x_4, 8);
|
||||
x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
|
|
@ -383,90 +385,94 @@ lean_inc(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_4);
|
||||
x_31 = 0;
|
||||
x_32 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_32, 0, x_16);
|
||||
lean_ctor_set(x_32, 1, x_17);
|
||||
lean_ctor_set(x_32, 2, x_18);
|
||||
lean_ctor_set(x_32, 3, x_19);
|
||||
lean_ctor_set(x_32, 4, x_22);
|
||||
lean_ctor_set(x_32, 5, x_23);
|
||||
lean_ctor_set(x_32, 6, x_24);
|
||||
lean_ctor_set(x_32, 7, x_29);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8, x_20);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 1, x_31);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 2, x_21);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 3, x_25);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 4, x_26);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 5, x_27);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 6, x_28);
|
||||
lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 7, x_30);
|
||||
x_33 = 1;
|
||||
x_34 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_31, x_33, x_32, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_34;
|
||||
x_32 = 0;
|
||||
x_33 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_33, 0, x_16);
|
||||
lean_ctor_set(x_33, 1, x_17);
|
||||
lean_ctor_set(x_33, 2, x_18);
|
||||
lean_ctor_set(x_33, 3, x_19);
|
||||
lean_ctor_set(x_33, 4, x_22);
|
||||
lean_ctor_set(x_33, 5, x_23);
|
||||
lean_ctor_set(x_33, 6, x_24);
|
||||
lean_ctor_set(x_33, 7, x_25);
|
||||
lean_ctor_set(x_33, 8, x_30);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9, x_20);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 1, x_32);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 2, x_21);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 3, x_26);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 4, x_27);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 5, x_28);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 6, x_29);
|
||||
lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 7, x_31);
|
||||
x_34 = 1;
|
||||
x_35 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_32, x_34, x_33, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_35;
|
||||
x_35 = !lean_is_exclusive(x_4);
|
||||
if (x_35 == 0)
|
||||
uint8_t x_36;
|
||||
x_36 = !lean_is_exclusive(x_4);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
uint8_t x_36; uint8_t x_37; lean_object* x_38;
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*8 + 1, x_3);
|
||||
x_36 = 0;
|
||||
x_37 = 1;
|
||||
x_38 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_36, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_38;
|
||||
uint8_t x_37; uint8_t x_38; lean_object* x_39;
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*9 + 1, x_3);
|
||||
x_37 = 0;
|
||||
x_38 = 1;
|
||||
x_39 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_37, x_38, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_39;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57;
|
||||
x_39 = lean_ctor_get(x_4, 0);
|
||||
x_40 = lean_ctor_get(x_4, 1);
|
||||
x_41 = lean_ctor_get(x_4, 2);
|
||||
x_42 = lean_ctor_get(x_4, 3);
|
||||
x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_45 = lean_ctor_get(x_4, 4);
|
||||
x_46 = lean_ctor_get(x_4, 5);
|
||||
x_47 = lean_ctor_get(x_4, 6);
|
||||
x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5);
|
||||
x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_52 = lean_ctor_get(x_4, 7);
|
||||
x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_52);
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59;
|
||||
x_40 = lean_ctor_get(x_4, 0);
|
||||
x_41 = lean_ctor_get(x_4, 1);
|
||||
x_42 = lean_ctor_get(x_4, 2);
|
||||
x_43 = lean_ctor_get(x_4, 3);
|
||||
x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_46 = lean_ctor_get(x_4, 4);
|
||||
x_47 = lean_ctor_get(x_4, 5);
|
||||
x_48 = lean_ctor_get(x_4, 6);
|
||||
x_49 = lean_ctor_get(x_4, 7);
|
||||
x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5);
|
||||
x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_54 = lean_ctor_get(x_4, 8);
|
||||
x_55 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_54);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_40);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_4);
|
||||
x_54 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_54, 0, x_39);
|
||||
lean_ctor_set(x_54, 1, x_40);
|
||||
lean_ctor_set(x_54, 2, x_41);
|
||||
lean_ctor_set(x_54, 3, x_42);
|
||||
lean_ctor_set(x_54, 4, x_45);
|
||||
lean_ctor_set(x_54, 5, x_46);
|
||||
lean_ctor_set(x_54, 6, x_47);
|
||||
lean_ctor_set(x_54, 7, x_52);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8, x_43);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 1, x_3);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 2, x_44);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 3, x_48);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 4, x_49);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 5, x_50);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 6, x_51);
|
||||
lean_ctor_set_uint8(x_54, sizeof(void*)*8 + 7, x_53);
|
||||
x_55 = 0;
|
||||
x_56 = 1;
|
||||
x_57 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_55, x_56, x_54, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_57;
|
||||
x_56 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_56, 0, x_40);
|
||||
lean_ctor_set(x_56, 1, x_41);
|
||||
lean_ctor_set(x_56, 2, x_42);
|
||||
lean_ctor_set(x_56, 3, x_43);
|
||||
lean_ctor_set(x_56, 4, x_46);
|
||||
lean_ctor_set(x_56, 5, x_47);
|
||||
lean_ctor_set(x_56, 6, x_48);
|
||||
lean_ctor_set(x_56, 7, x_49);
|
||||
lean_ctor_set(x_56, 8, x_54);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9, x_44);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 1, x_3);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 2, x_45);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 3, x_50);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 4, x_51);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 5, x_52);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 6, x_53);
|
||||
lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 7, x_55);
|
||||
x_57 = 0;
|
||||
x_58 = 1;
|
||||
x_59 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_57, x_58, x_56, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10274,7 +10280,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_
|
|||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*8);
|
||||
x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*9);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
if (x_2 == 0)
|
||||
|
|
@ -14459,7 +14465,7 @@ return x_45;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4349_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4350_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -14645,7 +14651,7 @@ l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar__
|
|||
lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1);
|
||||
l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1 = _init_l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1);
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4349_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4350_(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));
|
||||
|
|
|
|||
166
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
166
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
|
|
@ -314,7 +314,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoal(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245_(lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___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_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -326,6 +326,7 @@ static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT 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*);
|
||||
|
|
@ -362,7 +363,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainModule(lean_object*, lean_obj
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_instAlternativeTacticM___spec__1___rarg___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_indentExpr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -9683,24 +9683,26 @@ return x_17;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_18 = lean_ctor_get(x_6, 0);
|
||||
x_19 = lean_ctor_get(x_6, 1);
|
||||
x_20 = lean_ctor_get(x_6, 2);
|
||||
x_21 = lean_ctor_get(x_6, 3);
|
||||
x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*8);
|
||||
x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1);
|
||||
x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2);
|
||||
x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*9);
|
||||
x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1);
|
||||
x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2);
|
||||
x_25 = lean_ctor_get(x_6, 4);
|
||||
x_26 = lean_ctor_get(x_6, 5);
|
||||
x_27 = lean_ctor_get(x_6, 6);
|
||||
x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 3);
|
||||
x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 4);
|
||||
x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 5);
|
||||
x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 6);
|
||||
x_32 = lean_ctor_get(x_6, 7);
|
||||
x_33 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_32);
|
||||
x_28 = lean_ctor_get(x_6, 7);
|
||||
x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3);
|
||||
x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4);
|
||||
x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5);
|
||||
x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6);
|
||||
x_33 = lean_ctor_get(x_6, 8);
|
||||
x_34 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
|
|
@ -9709,31 +9711,32 @@ lean_inc(x_20);
|
|||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_6);
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_1);
|
||||
lean_ctor_set(x_34, 1, x_2);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_21);
|
||||
x_36 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_36, 0, x_18);
|
||||
lean_ctor_set(x_36, 1, x_19);
|
||||
lean_ctor_set(x_36, 2, x_20);
|
||||
lean_ctor_set(x_36, 3, x_35);
|
||||
lean_ctor_set(x_36, 4, x_25);
|
||||
lean_ctor_set(x_36, 5, x_26);
|
||||
lean_ctor_set(x_36, 6, x_27);
|
||||
lean_ctor_set(x_36, 7, x_32);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_22);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_23);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_24);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 3, x_28);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 4, x_29);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 5, x_30);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 6, x_31);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 7, x_33);
|
||||
x_37 = lean_apply_9(x_3, x_4, x_5, x_36, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_37;
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_1);
|
||||
lean_ctor_set(x_35, 1, x_2);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_21);
|
||||
x_37 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_37, 0, x_18);
|
||||
lean_ctor_set(x_37, 1, x_19);
|
||||
lean_ctor_set(x_37, 2, x_20);
|
||||
lean_ctor_set(x_37, 3, x_36);
|
||||
lean_ctor_set(x_37, 4, x_25);
|
||||
lean_ctor_set(x_37, 5, x_26);
|
||||
lean_ctor_set(x_37, 6, x_27);
|
||||
lean_ctor_set(x_37, 7, x_28);
|
||||
lean_ctor_set(x_37, 8, x_33);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_22);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_23);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 2, x_24);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 3, x_29);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 4, x_30);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 5, x_31);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 6, x_32);
|
||||
lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 7, x_34);
|
||||
x_38 = lean_apply_9(x_3, x_4, x_5, x_37, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9808,24 +9811,26 @@ return x_16;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_17 = lean_ctor_get(x_5, 0);
|
||||
x_18 = lean_ctor_get(x_5, 1);
|
||||
x_19 = lean_ctor_get(x_5, 2);
|
||||
x_20 = lean_ctor_get(x_5, 3);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_24 = lean_ctor_get(x_5, 4);
|
||||
x_25 = lean_ctor_get(x_5, 5);
|
||||
x_26 = lean_ctor_get(x_5, 6);
|
||||
x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_31 = lean_ctor_get(x_5, 7);
|
||||
x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_31);
|
||||
x_27 = lean_ctor_get(x_5, 7);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_32 = lean_ctor_get(x_5, 8);
|
||||
x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
|
|
@ -9835,31 +9840,32 @@ lean_inc(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_dec(x_5);
|
||||
lean_inc(x_2);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_1);
|
||||
lean_ctor_set(x_33, 1, x_2);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_20);
|
||||
x_35 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_35, 0, x_17);
|
||||
lean_ctor_set(x_35, 1, x_18);
|
||||
lean_ctor_set(x_35, 2, x_19);
|
||||
lean_ctor_set(x_35, 3, x_34);
|
||||
lean_ctor_set(x_35, 4, x_24);
|
||||
lean_ctor_set(x_35, 5, x_25);
|
||||
lean_ctor_set(x_35, 6, x_26);
|
||||
lean_ctor_set(x_35, 7, x_31);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8, x_21);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 3, x_27);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 4, x_28);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 5, x_29);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 6, x_30);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 7, x_32);
|
||||
x_36 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_35, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_36;
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_1);
|
||||
lean_ctor_set(x_34, 1, x_2);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_20);
|
||||
x_36 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_36, 0, x_17);
|
||||
lean_ctor_set(x_36, 1, x_18);
|
||||
lean_ctor_set(x_36, 2, x_19);
|
||||
lean_ctor_set(x_36, 3, x_35);
|
||||
lean_ctor_set(x_36, 4, x_24);
|
||||
lean_ctor_set(x_36, 5, x_25);
|
||||
lean_ctor_set(x_36, 6, x_26);
|
||||
lean_ctor_set(x_36, 7, x_27);
|
||||
lean_ctor_set(x_36, 8, x_32);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_21);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 3, x_28);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 4, x_29);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 5, x_30);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 6, x_31);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 7, x_33);
|
||||
x_37 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12220,7 +12226,7 @@ lean_dec(x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -12230,11 +12236,11 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -12483,9 +12489,9 @@ l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2 = _init_l_Lean_Elab_Tactic_get
|
|||
lean_mark_persistent(l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2);
|
||||
l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1 = _init_l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244____closed__1);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3244_(lean_io_mk_world());
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245____closed__1);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_3245_(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));
|
||||
|
|
|
|||
75
stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c
generated
75
stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c
generated
|
|
@ -14700,24 +14700,26 @@ return x_16;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_17 = lean_ctor_get(x_5, 0);
|
||||
x_18 = lean_ctor_get(x_5, 1);
|
||||
x_19 = lean_ctor_get(x_5, 2);
|
||||
x_20 = lean_ctor_get(x_5, 3);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_24 = lean_ctor_get(x_5, 4);
|
||||
x_25 = lean_ctor_get(x_5, 5);
|
||||
x_26 = lean_ctor_get(x_5, 6);
|
||||
x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_31 = lean_ctor_get(x_5, 7);
|
||||
x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_31);
|
||||
x_27 = lean_ctor_get(x_5, 7);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_32 = lean_ctor_get(x_5, 8);
|
||||
x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
|
|
@ -14727,31 +14729,32 @@ lean_inc(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_dec(x_5);
|
||||
lean_inc(x_2);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_1);
|
||||
lean_ctor_set(x_33, 1, x_2);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_20);
|
||||
x_35 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_35, 0, x_17);
|
||||
lean_ctor_set(x_35, 1, x_18);
|
||||
lean_ctor_set(x_35, 2, x_19);
|
||||
lean_ctor_set(x_35, 3, x_34);
|
||||
lean_ctor_set(x_35, 4, x_24);
|
||||
lean_ctor_set(x_35, 5, x_25);
|
||||
lean_ctor_set(x_35, 6, x_26);
|
||||
lean_ctor_set(x_35, 7, x_31);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8, x_21);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 3, x_27);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 4, x_28);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 5, x_29);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 6, x_30);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 7, x_32);
|
||||
x_36 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_35, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_36;
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_1);
|
||||
lean_ctor_set(x_34, 1, x_2);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_20);
|
||||
x_36 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_36, 0, x_17);
|
||||
lean_ctor_set(x_36, 1, x_18);
|
||||
lean_ctor_set(x_36, 2, x_19);
|
||||
lean_ctor_set(x_36, 3, x_35);
|
||||
lean_ctor_set(x_36, 4, x_24);
|
||||
lean_ctor_set(x_36, 5, x_25);
|
||||
lean_ctor_set(x_36, 6, x_26);
|
||||
lean_ctor_set(x_36, 7, x_27);
|
||||
lean_ctor_set(x_36, 8, x_32);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_21);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 3, x_28);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 4, x_29);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 5, x_30);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 6, x_31);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 7, x_33);
|
||||
x_37 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/Tactic/Cache.c
generated
2
stage0/stdlib/Lean/Elab/Tactic/Cache.c
generated
|
|
@ -1907,7 +1907,7 @@ x_11 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_
|
|||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = lean_ctor_get(x_4, 7);
|
||||
x_12 = lean_ctor_get(x_4, 8);
|
||||
lean_inc(x_12);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
|
|
|
|||
633
stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c
generated
633
stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c
generated
|
|
@ -1624,7 +1624,7 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3(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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_11 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_4, 1);
|
||||
|
|
@ -1633,53 +1633,56 @@ x_13 = lean_ctor_get(x_4, 2);
|
|||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_4, 3);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get_uint8(x_4, sizeof(void*)*8);
|
||||
x_16 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1);
|
||||
x_17 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2);
|
||||
x_15 = lean_ctor_get_uint8(x_4, sizeof(void*)*9);
|
||||
x_16 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1);
|
||||
x_17 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2);
|
||||
x_18 = lean_ctor_get(x_4, 4);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_4, 5);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_4, 6);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3);
|
||||
x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4);
|
||||
x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6);
|
||||
x_24 = lean_ctor_get(x_4, 7);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7);
|
||||
x_26 = 1;
|
||||
x_27 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_27, 0, x_11);
|
||||
lean_ctor_set(x_27, 1, x_12);
|
||||
lean_ctor_set(x_27, 2, x_13);
|
||||
lean_ctor_set(x_27, 3, x_14);
|
||||
lean_ctor_set(x_27, 4, x_18);
|
||||
lean_ctor_set(x_27, 5, x_19);
|
||||
lean_ctor_set(x_27, 6, x_20);
|
||||
lean_ctor_set(x_27, 7, x_24);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8, x_15);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 1, x_16);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 2, x_17);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 3, x_21);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 4, x_22);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 5, x_26);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 6, x_23);
|
||||
lean_ctor_set_uint8(x_27, sizeof(void*)*8 + 7, x_25);
|
||||
x_21 = lean_ctor_get(x_4, 7);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3);
|
||||
x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4);
|
||||
x_24 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6);
|
||||
x_25 = lean_ctor_get(x_4, 8);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7);
|
||||
x_27 = 1;
|
||||
x_28 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_28, 0, x_11);
|
||||
lean_ctor_set(x_28, 1, x_12);
|
||||
lean_ctor_set(x_28, 2, x_13);
|
||||
lean_ctor_set(x_28, 3, x_14);
|
||||
lean_ctor_set(x_28, 4, x_18);
|
||||
lean_ctor_set(x_28, 5, x_19);
|
||||
lean_ctor_set(x_28, 6, x_20);
|
||||
lean_ctor_set(x_28, 7, x_21);
|
||||
lean_ctor_set(x_28, 8, x_25);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9, x_15);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 1, x_16);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 2, x_17);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 3, x_22);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 4, x_23);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 5, x_27);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 6, x_24);
|
||||
lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 7, x_26);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_28 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_1, x_27, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_28) == 0)
|
||||
x_29 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_1, x_28, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_28, 0);
|
||||
lean_inc(x_29);
|
||||
x_30 = lean_ctor_get(x_28, 1);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_28);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_29);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
|
|
@ -1688,272 +1691,142 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_31 = l_Lean_Elab_Tactic_Conv_getLhs(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
x_32 = l_Lean_Elab_Tactic_Conv_getLhs(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_31);
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_32);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_29);
|
||||
x_34 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f(x_29, x_32, x_6, x_7, x_8, x_9, x_33);
|
||||
if (lean_obj_tag(x_34) == 0)
|
||||
{
|
||||
lean_object* x_35;
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_30);
|
||||
x_35 = l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f(x_30, x_33, x_6, x_7, x_8, x_9, x_34);
|
||||
if (lean_obj_tag(x_35) == 0)
|
||||
{
|
||||
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;
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_object* x_36;
|
||||
x_36 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_34);
|
||||
x_37 = lean_ctor_get(x_29, 2);
|
||||
if (lean_obj_tag(x_36) == 0)
|
||||
{
|
||||
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;
|
||||
x_37 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_29);
|
||||
x_38 = l_Lean_indentExpr(x_37);
|
||||
x_39 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__2;
|
||||
x_40 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
lean_ctor_set(x_40, 1, x_38);
|
||||
x_41 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__4;
|
||||
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_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36);
|
||||
lean_dec(x_9);
|
||||
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);
|
||||
return x_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
lean_dec(x_29);
|
||||
x_44 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_35);
|
||||
x_45 = lean_ctor_get(x_34, 1);
|
||||
x_38 = lean_ctor_get(x_30, 2);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_30);
|
||||
x_39 = l_Lean_indentExpr(x_38);
|
||||
x_40 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__2;
|
||||
x_41 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
lean_ctor_set(x_41, 1, x_39);
|
||||
x_42 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__4;
|
||||
x_43 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
lean_ctor_set(x_43, 1, x_42);
|
||||
x_44 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_37);
|
||||
lean_dec(x_9);
|
||||
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);
|
||||
return x_44;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
lean_dec(x_30);
|
||||
x_45 = lean_ctor_get(x_36, 0);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_34);
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_dec(x_36);
|
||||
x_46 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_44, 1);
|
||||
lean_dec(x_35);
|
||||
x_47 = lean_ctor_get(x_45, 0);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_44);
|
||||
x_48 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_45);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_47);
|
||||
x_48 = l_Lean_Meta_Simp_Result_getProof(x_47, x_6, x_7, x_8, x_9, x_45);
|
||||
if (lean_obj_tag(x_48) == 0)
|
||||
lean_inc(x_48);
|
||||
x_49 = l_Lean_Meta_Simp_Result_getProof(x_48, x_6, x_7, x_8, x_9, x_46);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_49 = lean_ctor_get(x_48, 0);
|
||||
lean_inc(x_49);
|
||||
x_50 = lean_ctor_get(x_48, 1);
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53;
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_48);
|
||||
x_51 = lean_ctor_get(x_47, 0);
|
||||
x_51 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_47);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_52 = l_Lean_Elab_Tactic_Conv_updateLhs(x_51, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_50);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54;
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_52);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_54 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_54);
|
||||
x_57 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__7;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_58 = l_Lean_Meta_applyRefl(x_55, x_57, x_6, x_7, x_8, x_9, x_56);
|
||||
if (lean_obj_tag(x_58) == 0)
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_59 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_58);
|
||||
x_60 = lean_box(0);
|
||||
x_61 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_46);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
x_62 = l_Lean_Elab_Tactic_replaceMainGoal(x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_59);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_63;
|
||||
lean_dec(x_46);
|
||||
lean_dec(x_9);
|
||||
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_63 = !lean_is_exclusive(x_58);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
return x_58;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_64 = lean_ctor_get(x_58, 0);
|
||||
x_65 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_65);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_58);
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_64);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_67;
|
||||
lean_dec(x_46);
|
||||
lean_dec(x_9);
|
||||
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_67 = !lean_is_exclusive(x_54);
|
||||
if (x_67 == 0)
|
||||
{
|
||||
return x_54;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_68 = lean_ctor_get(x_54, 0);
|
||||
x_69 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_69);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_54);
|
||||
x_70 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_70, 0, x_68);
|
||||
lean_ctor_set(x_70, 1, x_69);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_71;
|
||||
lean_dec(x_46);
|
||||
lean_dec(x_9);
|
||||
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_71 = !lean_is_exclusive(x_52);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
return x_52;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_52, 0);
|
||||
x_73 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_52);
|
||||
x_74 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_74, 0, x_72);
|
||||
lean_ctor_set(x_74, 1, x_73);
|
||||
return x_74;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_75;
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_46);
|
||||
lean_dec(x_9);
|
||||
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_75 = !lean_is_exclusive(x_48);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78;
|
||||
x_76 = lean_ctor_get(x_48, 0);
|
||||
x_77 = lean_ctor_get(x_48, 1);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_49);
|
||||
x_52 = lean_ctor_get(x_48, 0);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_48);
|
||||
x_78 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_78, 0, x_76);
|
||||
lean_ctor_set(x_78, 1, x_77);
|
||||
return x_78;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_53 = l_Lean_Elab_Tactic_Conv_updateLhs(x_52, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55;
|
||||
x_54 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_53);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_55 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_54);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_56 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_56);
|
||||
x_57 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_55);
|
||||
x_58 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__7;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_59 = l_Lean_Meta_applyRefl(x_56, x_58, x_6, x_7, x_8, x_9, x_57);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63;
|
||||
x_60 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_59);
|
||||
x_61 = lean_box(0);
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_47);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
x_63 = l_Lean_Elab_Tactic_replaceMainGoal(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_60);
|
||||
return x_63;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_79;
|
||||
lean_dec(x_29);
|
||||
uint8_t x_64;
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1962,30 +1835,160 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_79 = !lean_is_exclusive(x_34);
|
||||
if (x_79 == 0)
|
||||
x_64 = !lean_is_exclusive(x_59);
|
||||
if (x_64 == 0)
|
||||
{
|
||||
return x_34;
|
||||
return x_59;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82;
|
||||
x_80 = lean_ctor_get(x_34, 0);
|
||||
x_81 = lean_ctor_get(x_34, 1);
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_65 = lean_ctor_get(x_59, 0);
|
||||
x_66 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_66);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_59);
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_68;
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_9);
|
||||
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_68 = !lean_is_exclusive(x_55);
|
||||
if (x_68 == 0)
|
||||
{
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_69 = lean_ctor_get(x_55, 0);
|
||||
x_70 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_55);
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
return x_71;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_72;
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_9);
|
||||
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_72 = !lean_is_exclusive(x_53);
|
||||
if (x_72 == 0)
|
||||
{
|
||||
return x_53;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_73 = lean_ctor_get(x_53, 0);
|
||||
x_74 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_53);
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_73);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
return x_75;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_76;
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_9);
|
||||
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_76 = !lean_is_exclusive(x_49);
|
||||
if (x_76 == 0)
|
||||
{
|
||||
return x_49;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
x_77 = lean_ctor_get(x_49, 0);
|
||||
x_78 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_dec(x_49);
|
||||
x_79 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_79, 0, x_77);
|
||||
lean_ctor_set(x_79, 1, x_78);
|
||||
return x_79;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_80;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_9);
|
||||
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_80 = !lean_is_exclusive(x_35);
|
||||
if (x_80 == 0)
|
||||
{
|
||||
return x_35;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_81 = lean_ctor_get(x_35, 0);
|
||||
x_82 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_34);
|
||||
x_82 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_80);
|
||||
lean_ctor_set(x_82, 1, x_81);
|
||||
return x_82;
|
||||
lean_dec(x_35);
|
||||
x_83 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_81);
|
||||
lean_ctor_set(x_83, 1, x_82);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_83;
|
||||
lean_dec(x_29);
|
||||
uint8_t x_84;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1994,29 +1997,29 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_83 = !lean_is_exclusive(x_31);
|
||||
if (x_83 == 0)
|
||||
x_84 = !lean_is_exclusive(x_32);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
return x_31;
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86;
|
||||
x_84 = lean_ctor_get(x_31, 0);
|
||||
x_85 = lean_ctor_get(x_31, 1);
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_85 = lean_ctor_get(x_32, 0);
|
||||
x_86 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_84);
|
||||
lean_dec(x_31);
|
||||
x_86 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_86, 0, x_84);
|
||||
lean_ctor_set(x_86, 1, x_85);
|
||||
return x_86;
|
||||
lean_dec(x_32);
|
||||
x_87 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_85);
|
||||
lean_ctor_set(x_87, 1, x_86);
|
||||
return x_87;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_87;
|
||||
uint8_t x_88;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2025,23 +2028,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_87 = !lean_is_exclusive(x_28);
|
||||
if (x_87 == 0)
|
||||
x_88 = !lean_is_exclusive(x_29);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
return x_28;
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
x_88 = lean_ctor_get(x_28, 0);
|
||||
x_89 = lean_ctor_get(x_28, 1);
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_89 = lean_ctor_get(x_29, 0);
|
||||
x_90 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_89);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_28);
|
||||
x_90 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_90, 0, x_88);
|
||||
lean_ctor_set(x_90, 1, x_89);
|
||||
return x_90;
|
||||
lean_dec(x_29);
|
||||
x_91 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_91, 0, x_89);
|
||||
lean_ctor_set(x_91, 1, x_90);
|
||||
return x_91;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
75
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
75
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
|
|
@ -2461,24 +2461,26 @@ return x_16;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_17 = lean_ctor_get(x_5, 0);
|
||||
x_18 = lean_ctor_get(x_5, 1);
|
||||
x_19 = lean_ctor_get(x_5, 2);
|
||||
x_20 = lean_ctor_get(x_5, 3);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2);
|
||||
x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9);
|
||||
x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1);
|
||||
x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2);
|
||||
x_24 = lean_ctor_get(x_5, 4);
|
||||
x_25 = lean_ctor_get(x_5, 5);
|
||||
x_26 = lean_ctor_get(x_5, 6);
|
||||
x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6);
|
||||
x_31 = lean_ctor_get(x_5, 7);
|
||||
x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7);
|
||||
lean_inc(x_31);
|
||||
x_27 = lean_ctor_get(x_5, 7);
|
||||
x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3);
|
||||
x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4);
|
||||
x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5);
|
||||
x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6);
|
||||
x_32 = lean_ctor_get(x_5, 8);
|
||||
x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
|
|
@ -2488,31 +2490,32 @@ lean_inc(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_dec(x_5);
|
||||
lean_inc(x_2);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_1);
|
||||
lean_ctor_set(x_33, 1, x_2);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_20);
|
||||
x_35 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_35, 0, x_17);
|
||||
lean_ctor_set(x_35, 1, x_18);
|
||||
lean_ctor_set(x_35, 2, x_19);
|
||||
lean_ctor_set(x_35, 3, x_34);
|
||||
lean_ctor_set(x_35, 4, x_24);
|
||||
lean_ctor_set(x_35, 5, x_25);
|
||||
lean_ctor_set(x_35, 6, x_26);
|
||||
lean_ctor_set(x_35, 7, x_31);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8, x_21);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 3, x_27);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 4, x_28);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 5, x_29);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 6, x_30);
|
||||
lean_ctor_set_uint8(x_35, sizeof(void*)*8 + 7, x_32);
|
||||
x_36 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_35, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_36;
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_1);
|
||||
lean_ctor_set(x_34, 1, x_2);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_20);
|
||||
x_36 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_36, 0, x_17);
|
||||
lean_ctor_set(x_36, 1, x_18);
|
||||
lean_ctor_set(x_36, 2, x_19);
|
||||
lean_ctor_set(x_36, 3, x_35);
|
||||
lean_ctor_set(x_36, 4, x_24);
|
||||
lean_ctor_set(x_36, 5, x_25);
|
||||
lean_ctor_set(x_36, 6, x_26);
|
||||
lean_ctor_set(x_36, 7, x_27);
|
||||
lean_ctor_set(x_36, 8, x_32);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_21);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_22);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 2, x_23);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 3, x_28);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 4, x_29);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 5, x_30);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 6, x_31);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 7, x_33);
|
||||
x_37 = l_Lean_Elab_Tactic_evalTacticAux(x_2, x_3, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
73
stage0/stdlib/Lean/Elab/Tactic/Meta.c
generated
73
stage0/stdlib/Lean/Elab/Tactic/Meta.c
generated
|
|
@ -21,6 +21,8 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Elab_Term_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_runTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1___boxed(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -28,12 +30,21 @@ static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_def
|
|||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__4;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__7;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__2;
|
||||
lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext;
|
||||
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*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = 0;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -111,7 +122,15 @@ return x_1;
|
|||
static lean_object* _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_box(0);
|
||||
x_3 = lean_box(0);
|
||||
|
|
@ -120,34 +139,46 @@ x_5 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___
|
|||
x_6 = 1;
|
||||
x_7 = 0;
|
||||
x_8 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__6;
|
||||
x_9 = lean_alloc_ctor(0, 8, 8);
|
||||
lean_ctor_set(x_9, 0, x_4);
|
||||
lean_ctor_set(x_9, 1, x_5);
|
||||
lean_ctor_set(x_9, 2, x_1);
|
||||
lean_ctor_set(x_9, 3, x_2);
|
||||
lean_ctor_set(x_9, 4, x_8);
|
||||
lean_ctor_set(x_9, 5, x_3);
|
||||
lean_ctor_set(x_9, 6, x_3);
|
||||
lean_ctor_set(x_9, 7, x_1);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8, x_6);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 1, x_6);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 2, x_7);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 3, x_6);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 4, x_7);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 5, x_7);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 6, x_7);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 7, x_6);
|
||||
return x_9;
|
||||
x_9 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8;
|
||||
x_10 = lean_alloc_ctor(0, 9, 8);
|
||||
lean_ctor_set(x_10, 0, x_4);
|
||||
lean_ctor_set(x_10, 1, x_5);
|
||||
lean_ctor_set(x_10, 2, x_1);
|
||||
lean_ctor_set(x_10, 3, x_2);
|
||||
lean_ctor_set(x_10, 4, x_8);
|
||||
lean_ctor_set(x_10, 5, x_9);
|
||||
lean_ctor_set(x_10, 6, x_3);
|
||||
lean_ctor_set(x_10, 7, x_3);
|
||||
lean_ctor_set(x_10, 8, x_1);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9, x_6);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 1, x_6);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 2, x_7);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 3, x_6);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 4, x_7);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 5, x_7);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 6, x_7);
|
||||
lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 7, x_6);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8;
|
||||
x_1 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___elambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_runTactic___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* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -326,6 +357,8 @@ l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed
|
|||
lean_mark_persistent(l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__7);
|
||||
l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8 = _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__8);
|
||||
l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9 = _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext___closed__9);
|
||||
l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext = _init_l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Tactic_Meta_0__Lean_Elab_runTactic_defaultContext);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
1140
stage0/stdlib/Lean/Elab/Term.c
generated
1140
stage0/stdlib/Lean/Elab/Term.c
generated
File diff suppressed because it is too large
Load diff
204
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
204
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
|
|
@ -28,7 +28,6 @@ lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_o
|
|||
lean_object* l_Lean_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkImpCongrCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -73,7 +72,6 @@ lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congrDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__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_EXPORT lean_object* l_Lean_Meta_simpGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -162,8 +160,6 @@ static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___
|
|||
LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_cacheResult___spec__6(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__4;
|
||||
lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
|
||||
|
|
@ -336,6 +332,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_process
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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_st_mk_ref(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8;
|
||||
lean_object* l_Lean_getConstInfo___at_Lean_Meta_isRflTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__4(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3;
|
||||
|
|
@ -383,7 +380,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpApp(lean_object*, lean_object
|
|||
static lean_object* l_Lean_Meta_Simp_Config_updateArith___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpLetCase___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congrArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3;
|
||||
static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8(lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -488,7 +484,6 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_trySimp
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SimpTheoremsArray_eraseTheorem(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4;
|
||||
static lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__6(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*);
|
||||
|
|
@ -579,7 +574,6 @@ static lean_object* l_Lean_Meta_Simp_simp___closed__1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__5(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_mkFalseElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
|
|
@ -592,7 +586,6 @@ LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp___sp
|
|||
uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow___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_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1(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*);
|
||||
|
|
@ -691,7 +684,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAu
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___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*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkOfEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__3;
|
||||
|
|
@ -4016,175 +4008,11 @@ x_4 = lean_box(x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
x_5 = lean_ctor_get(x_2, 3);
|
||||
x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4);
|
||||
x_7 = !lean_is_exclusive(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_5);
|
||||
x_9 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_5);
|
||||
lean_ctor_set(x_9, 1, x_8);
|
||||
lean_ctor_set_tag(x_6, 1);
|
||||
lean_ctor_set(x_6, 0, x_9);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_ctor_get(x_6, 0);
|
||||
x_11 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_6);
|
||||
lean_inc(x_5);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_5);
|
||||
lean_ctor_set(x_12, 1, x_10);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("unknown constant '");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("'");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6;
|
||||
x_5 = lean_st_ref_get(x_3, x_4);
|
||||
x_6 = !lean_is_exclusive(x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = lean_ctor_get(x_5, 0);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_environment_find(x_9, x_1);
|
||||
if (lean_obj_tag(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; lean_object* x_17; lean_object* x_18;
|
||||
lean_free_object(x_5);
|
||||
x_11 = lean_box(0);
|
||||
x_12 = l_Lean_mkConst(x_1, x_11);
|
||||
x_13 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
x_14 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2;
|
||||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_14);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
x_16 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4;
|
||||
x_17 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_15);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
x_18 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2(x_17, x_2, x_3, x_8);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19;
|
||||
lean_dec(x_1);
|
||||
x_19 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_10);
|
||||
lean_ctor_set(x_5, 0, x_19);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_20 = lean_ctor_get(x_5, 0);
|
||||
x_21 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_5);
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_20);
|
||||
lean_inc(x_1);
|
||||
x_23 = lean_environment_find(x_22, x_1);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
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_24 = lean_box(0);
|
||||
x_25 = l_Lean_mkConst(x_1, x_24);
|
||||
x_26 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
x_27 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2;
|
||||
x_28 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_26);
|
||||
x_29 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4;
|
||||
x_30 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
x_31 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2(x_30, x_2, x_3, x_21);
|
||||
return x_31;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
lean_dec(x_1);
|
||||
x_32 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_23);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_21);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1(x_1, x_2, x_3, x_4);
|
||||
x_5 = l_Lean_getConstInfo___at_Lean_Meta_isRflTheorem___spec__1(x_1, x_2, x_3, x_4);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
|
|
@ -4292,26 +4120,6 @@ return x_34;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__2(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -43356,14 +43164,6 @@ l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean
|
|||
lean_mark_persistent(l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1___closed__1);
|
||||
l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1);
|
||||
l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__1);
|
||||
l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__2);
|
||||
l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__3);
|
||||
l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4 = _init_l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4();
|
||||
lean_mark_persistent(l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_isMatchDef___spec__1___closed__4);
|
||||
l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__1);
|
||||
l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__2();
|
||||
|
|
|
|||
2286
stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c
generated
2286
stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c
generated
File diff suppressed because it is too large
Load diff
751
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
751
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
File diff suppressed because it is too large
Load diff
803
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
803
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
|
|
@ -100,6 +100,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean
|
|||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_getSimpMatchContext(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isRflTheorem(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(lean_object*, lean_object*);
|
||||
|
|
@ -233,7 +234,7 @@ static lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__7___closed__2
|
|||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_substDiscrEqs___spec__1___closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___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_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__5(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_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3518_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3536_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
||||
|
|
@ -864,425 +865,438 @@ x_17 = lean_ctor_get(x_16, 0);
|
|||
lean_inc(x_17);
|
||||
if (lean_obj_tag(x_17) == 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; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27;
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_box(0);
|
||||
lean_inc(x_2);
|
||||
x_20 = l_Lean_mkConst(x_2, x_19);
|
||||
x_21 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_21, 0, x_2);
|
||||
x_22 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1;
|
||||
x_23 = lean_unsigned_to_nat(1000u);
|
||||
x_24 = 1;
|
||||
x_25 = 0;
|
||||
x_26 = lean_alloc_ctor(0, 5, 2);
|
||||
lean_ctor_set(x_26, 0, x_22);
|
||||
lean_ctor_set(x_26, 1, x_22);
|
||||
lean_ctor_set(x_26, 2, x_20);
|
||||
lean_ctor_set(x_26, 3, x_23);
|
||||
lean_ctor_set(x_26, 4, x_21);
|
||||
lean_ctor_set_uint8(x_26, sizeof(void*)*5, x_24);
|
||||
lean_ctor_set_uint8(x_26, sizeof(void*)*5 + 1, x_25);
|
||||
x_27 = !lean_is_exclusive(x_6);
|
||||
if (x_27 == 0)
|
||||
x_19 = l_Lean_Meta_isRflTheorem(x_2, x_8, x_9, x_18);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_28; uint8_t x_29;
|
||||
x_28 = lean_ctor_get(x_6, 0);
|
||||
x_29 = !lean_is_exclusive(x_28);
|
||||
if (x_29 == 0)
|
||||
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; uint8_t x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_box(0);
|
||||
lean_inc(x_2);
|
||||
x_23 = l_Lean_mkConst(x_2, x_22);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_2);
|
||||
x_25 = l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__1;
|
||||
x_26 = lean_unsigned_to_nat(1000u);
|
||||
x_27 = 1;
|
||||
x_28 = 0;
|
||||
x_29 = lean_alloc_ctor(0, 5, 3);
|
||||
lean_ctor_set(x_29, 0, x_25);
|
||||
lean_ctor_set(x_29, 1, x_25);
|
||||
lean_ctor_set(x_29, 2, x_23);
|
||||
lean_ctor_set(x_29, 3, x_26);
|
||||
lean_ctor_set(x_29, 4, x_24);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_27);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_28);
|
||||
x_30 = lean_unbox(x_20);
|
||||
lean_dec(x_20);
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 2, x_30);
|
||||
x_31 = !lean_is_exclusive(x_6);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
uint8_t x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = 2;
|
||||
lean_ctor_set_uint8(x_28, 5, x_30);
|
||||
x_31 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
lean_object* x_32; uint8_t x_33;
|
||||
x_32 = lean_ctor_get(x_6, 0);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
uint8_t x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = 2;
|
||||
lean_ctor_set_uint8(x_32, 5, x_34);
|
||||
x_35 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_32 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_26, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_18);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
x_36 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_21);
|
||||
if (lean_obj_tag(x_36) == 0)
|
||||
{
|
||||
lean_object* x_33;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
lean_object* x_37;
|
||||
x_37 = lean_ctor_get(x_36, 0);
|
||||
lean_inc(x_37);
|
||||
if (lean_obj_tag(x_37) == 0)
|
||||
{
|
||||
uint8_t x_34;
|
||||
x_34 = !lean_is_exclusive(x_32);
|
||||
if (x_34 == 0)
|
||||
uint8_t x_38;
|
||||
x_38 = !lean_is_exclusive(x_36);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_35 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_35);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_3);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
x_38 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_32, 0, x_38);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_39 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_32);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_39 = lean_ctor_get(x_36, 0);
|
||||
lean_dec(x_39);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_3);
|
||||
lean_ctor_set(x_41, 1, x_40);
|
||||
x_42 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
x_43 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
lean_ctor_set(x_43, 1, x_39);
|
||||
return x_43;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_42);
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_44;
|
||||
lean_dec(x_3);
|
||||
x_44 = !lean_is_exclusive(x_32);
|
||||
if (x_44 == 0)
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_45 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_45);
|
||||
x_46 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_33);
|
||||
x_47 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_43 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_36);
|
||||
x_44 = lean_box(0);
|
||||
x_45 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_3);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
x_46 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_32, 0, x_47);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_48 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_32);
|
||||
x_49 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_33);
|
||||
x_50 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_50, 0, x_49);
|
||||
x_51 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_48);
|
||||
return x_51;
|
||||
}
|
||||
lean_ctor_set(x_47, 1, x_43);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_52;
|
||||
uint8_t x_48;
|
||||
lean_dec(x_3);
|
||||
x_52 = !lean_is_exclusive(x_32);
|
||||
if (x_52 == 0)
|
||||
x_48 = !lean_is_exclusive(x_36);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
return x_32;
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_36, 0);
|
||||
lean_dec(x_49);
|
||||
x_50 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_37);
|
||||
x_51 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_36, 0, x_51);
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_53 = lean_ctor_get(x_32, 0);
|
||||
x_54 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_54);
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_52 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_36);
|
||||
x_53 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_32);
|
||||
x_55 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
lean_ctor_set(x_55, 1, x_54);
|
||||
lean_dec(x_37);
|
||||
x_54 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_54, 0, x_53);
|
||||
x_55 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
lean_ctor_set(x_55, 1, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_56 = lean_ctor_get_uint8(x_28, 0);
|
||||
x_57 = lean_ctor_get_uint8(x_28, 1);
|
||||
x_58 = lean_ctor_get_uint8(x_28, 2);
|
||||
x_59 = lean_ctor_get_uint8(x_28, 3);
|
||||
x_60 = lean_ctor_get_uint8(x_28, 4);
|
||||
x_61 = lean_ctor_get_uint8(x_28, 6);
|
||||
x_62 = lean_ctor_get_uint8(x_28, 7);
|
||||
x_63 = lean_ctor_get_uint8(x_28, 8);
|
||||
x_64 = lean_ctor_get_uint8(x_28, 9);
|
||||
x_65 = lean_ctor_get_uint8(x_28, 10);
|
||||
x_66 = lean_ctor_get_uint8(x_28, 11);
|
||||
x_67 = lean_ctor_get_uint8(x_28, 12);
|
||||
x_68 = lean_ctor_get_uint8(x_28, 13);
|
||||
lean_dec(x_28);
|
||||
x_69 = 2;
|
||||
x_70 = lean_alloc_ctor(0, 0, 14);
|
||||
lean_ctor_set_uint8(x_70, 0, x_56);
|
||||
lean_ctor_set_uint8(x_70, 1, x_57);
|
||||
lean_ctor_set_uint8(x_70, 2, x_58);
|
||||
lean_ctor_set_uint8(x_70, 3, x_59);
|
||||
lean_ctor_set_uint8(x_70, 4, x_60);
|
||||
lean_ctor_set_uint8(x_70, 5, x_69);
|
||||
lean_ctor_set_uint8(x_70, 6, x_61);
|
||||
lean_ctor_set_uint8(x_70, 7, x_62);
|
||||
lean_ctor_set_uint8(x_70, 8, x_63);
|
||||
lean_ctor_set_uint8(x_70, 9, x_64);
|
||||
lean_ctor_set_uint8(x_70, 10, x_65);
|
||||
lean_ctor_set_uint8(x_70, 11, x_66);
|
||||
lean_ctor_set_uint8(x_70, 12, x_67);
|
||||
lean_ctor_set_uint8(x_70, 13, x_68);
|
||||
lean_ctor_set(x_6, 0, x_70);
|
||||
x_71 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
uint8_t x_56;
|
||||
lean_dec(x_3);
|
||||
x_56 = !lean_is_exclusive(x_36);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
x_57 = lean_ctor_get(x_36, 0);
|
||||
x_58 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_36);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76;
|
||||
x_60 = lean_ctor_get_uint8(x_32, 0);
|
||||
x_61 = lean_ctor_get_uint8(x_32, 1);
|
||||
x_62 = lean_ctor_get_uint8(x_32, 2);
|
||||
x_63 = lean_ctor_get_uint8(x_32, 3);
|
||||
x_64 = lean_ctor_get_uint8(x_32, 4);
|
||||
x_65 = lean_ctor_get_uint8(x_32, 6);
|
||||
x_66 = lean_ctor_get_uint8(x_32, 7);
|
||||
x_67 = lean_ctor_get_uint8(x_32, 8);
|
||||
x_68 = lean_ctor_get_uint8(x_32, 9);
|
||||
x_69 = lean_ctor_get_uint8(x_32, 10);
|
||||
x_70 = lean_ctor_get_uint8(x_32, 11);
|
||||
x_71 = lean_ctor_get_uint8(x_32, 12);
|
||||
x_72 = lean_ctor_get_uint8(x_32, 13);
|
||||
lean_dec(x_32);
|
||||
x_73 = 2;
|
||||
x_74 = lean_alloc_ctor(0, 0, 14);
|
||||
lean_ctor_set_uint8(x_74, 0, x_60);
|
||||
lean_ctor_set_uint8(x_74, 1, x_61);
|
||||
lean_ctor_set_uint8(x_74, 2, x_62);
|
||||
lean_ctor_set_uint8(x_74, 3, x_63);
|
||||
lean_ctor_set_uint8(x_74, 4, x_64);
|
||||
lean_ctor_set_uint8(x_74, 5, x_73);
|
||||
lean_ctor_set_uint8(x_74, 6, x_65);
|
||||
lean_ctor_set_uint8(x_74, 7, x_66);
|
||||
lean_ctor_set_uint8(x_74, 8, x_67);
|
||||
lean_ctor_set_uint8(x_74, 9, x_68);
|
||||
lean_ctor_set_uint8(x_74, 10, x_69);
|
||||
lean_ctor_set_uint8(x_74, 11, x_70);
|
||||
lean_ctor_set_uint8(x_74, 12, x_71);
|
||||
lean_ctor_set_uint8(x_74, 13, x_72);
|
||||
lean_ctor_set(x_6, 0, x_74);
|
||||
x_75 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_72 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_26, x_71, x_4, x_5, x_6, x_7, x_8, x_9, x_18);
|
||||
if (lean_obj_tag(x_72) == 0)
|
||||
x_76 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_75, x_4, x_5, x_6, x_7, x_8, x_9, x_21);
|
||||
if (lean_obj_tag(x_76) == 0)
|
||||
{
|
||||
lean_object* x_73;
|
||||
x_73 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_73);
|
||||
if (lean_obj_tag(x_73) == 0)
|
||||
lean_object* x_77;
|
||||
x_77 = lean_ctor_get(x_76, 0);
|
||||
lean_inc(x_77);
|
||||
if (lean_obj_tag(x_77) == 0)
|
||||
{
|
||||
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
x_74 = lean_ctor_get(x_72, 1);
|
||||
lean_inc(x_74);
|
||||
if (lean_is_exclusive(x_72)) {
|
||||
lean_ctor_release(x_72, 0);
|
||||
lean_ctor_release(x_72, 1);
|
||||
x_75 = x_72;
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_78 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_78);
|
||||
if (lean_is_exclusive(x_76)) {
|
||||
lean_ctor_release(x_76, 0);
|
||||
lean_ctor_release(x_76, 1);
|
||||
x_79 = x_76;
|
||||
} else {
|
||||
lean_dec_ref(x_72);
|
||||
x_75 = lean_box(0);
|
||||
lean_dec_ref(x_76);
|
||||
x_79 = lean_box(0);
|
||||
}
|
||||
x_76 = lean_box(0);
|
||||
x_77 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_3);
|
||||
lean_ctor_set(x_77, 1, x_76);
|
||||
x_78 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_78, 0, x_77);
|
||||
if (lean_is_scalar(x_75)) {
|
||||
x_79 = lean_alloc_ctor(0, 2, 0);
|
||||
x_80 = lean_box(0);
|
||||
x_81 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_3);
|
||||
lean_ctor_set(x_81, 1, x_80);
|
||||
x_82 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_82, 0, x_81);
|
||||
if (lean_is_scalar(x_79)) {
|
||||
x_83 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_79 = x_75;
|
||||
x_83 = x_79;
|
||||
}
|
||||
lean_ctor_set(x_79, 0, x_78);
|
||||
lean_ctor_set(x_79, 1, x_74);
|
||||
return x_79;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84;
|
||||
lean_dec(x_3);
|
||||
x_80 = lean_ctor_get(x_72, 1);
|
||||
lean_inc(x_80);
|
||||
if (lean_is_exclusive(x_72)) {
|
||||
lean_ctor_release(x_72, 0);
|
||||
lean_ctor_release(x_72, 1);
|
||||
x_81 = x_72;
|
||||
} else {
|
||||
lean_dec_ref(x_72);
|
||||
x_81 = lean_box(0);
|
||||
}
|
||||
x_82 = lean_ctor_get(x_73, 0);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_73);
|
||||
x_83 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_83, 0, x_82);
|
||||
if (lean_is_scalar(x_81)) {
|
||||
x_84 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_84 = x_81;
|
||||
}
|
||||
lean_ctor_set(x_84, 0, x_83);
|
||||
lean_ctor_set(x_84, 1, x_80);
|
||||
return x_84;
|
||||
}
|
||||
lean_ctor_set(x_83, 1, x_78);
|
||||
return x_83;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
lean_dec(x_3);
|
||||
x_85 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_85);
|
||||
x_86 = lean_ctor_get(x_72, 1);
|
||||
x_84 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_84);
|
||||
if (lean_is_exclusive(x_76)) {
|
||||
lean_ctor_release(x_76, 0);
|
||||
lean_ctor_release(x_76, 1);
|
||||
x_85 = x_76;
|
||||
} else {
|
||||
lean_dec_ref(x_76);
|
||||
x_85 = lean_box(0);
|
||||
}
|
||||
x_86 = lean_ctor_get(x_77, 0);
|
||||
lean_inc(x_86);
|
||||
if (lean_is_exclusive(x_72)) {
|
||||
lean_ctor_release(x_72, 0);
|
||||
lean_ctor_release(x_72, 1);
|
||||
x_87 = x_72;
|
||||
lean_dec(x_77);
|
||||
x_87 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_87, 0, x_86);
|
||||
if (lean_is_scalar(x_85)) {
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
lean_dec_ref(x_72);
|
||||
x_87 = lean_box(0);
|
||||
x_88 = x_85;
|
||||
}
|
||||
if (lean_is_scalar(x_87)) {
|
||||
x_88 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_88 = x_87;
|
||||
}
|
||||
lean_ctor_set(x_88, 0, x_85);
|
||||
lean_ctor_set(x_88, 1, x_86);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
lean_ctor_set(x_88, 1, x_84);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
lean_dec(x_3);
|
||||
x_89 = lean_ctor_get(x_76, 0);
|
||||
lean_inc(x_89);
|
||||
x_90 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_90);
|
||||
if (lean_is_exclusive(x_76)) {
|
||||
lean_ctor_release(x_76, 0);
|
||||
lean_ctor_release(x_76, 1);
|
||||
x_91 = x_76;
|
||||
} else {
|
||||
lean_dec_ref(x_76);
|
||||
x_91 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_91)) {
|
||||
x_92 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_92 = x_91;
|
||||
}
|
||||
lean_ctor_set(x_92, 0, x_89);
|
||||
lean_ctor_set(x_92, 1, x_90);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113;
|
||||
x_89 = lean_ctor_get(x_6, 0);
|
||||
x_90 = lean_ctor_get(x_6, 1);
|
||||
x_91 = lean_ctor_get(x_6, 2);
|
||||
x_92 = lean_ctor_get(x_6, 3);
|
||||
x_93 = lean_ctor_get(x_6, 4);
|
||||
x_94 = lean_ctor_get(x_6, 5);
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
x_93 = lean_ctor_get(x_6, 0);
|
||||
x_94 = lean_ctor_get(x_6, 1);
|
||||
x_95 = lean_ctor_get(x_6, 2);
|
||||
x_96 = lean_ctor_get(x_6, 3);
|
||||
x_97 = lean_ctor_get(x_6, 4);
|
||||
x_98 = lean_ctor_get(x_6, 5);
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_97);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_92);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_6);
|
||||
x_95 = lean_ctor_get_uint8(x_89, 0);
|
||||
x_96 = lean_ctor_get_uint8(x_89, 1);
|
||||
x_97 = lean_ctor_get_uint8(x_89, 2);
|
||||
x_98 = lean_ctor_get_uint8(x_89, 3);
|
||||
x_99 = lean_ctor_get_uint8(x_89, 4);
|
||||
x_100 = lean_ctor_get_uint8(x_89, 6);
|
||||
x_101 = lean_ctor_get_uint8(x_89, 7);
|
||||
x_102 = lean_ctor_get_uint8(x_89, 8);
|
||||
x_103 = lean_ctor_get_uint8(x_89, 9);
|
||||
x_104 = lean_ctor_get_uint8(x_89, 10);
|
||||
x_105 = lean_ctor_get_uint8(x_89, 11);
|
||||
x_106 = lean_ctor_get_uint8(x_89, 12);
|
||||
x_107 = lean_ctor_get_uint8(x_89, 13);
|
||||
if (lean_is_exclusive(x_89)) {
|
||||
x_108 = x_89;
|
||||
x_99 = lean_ctor_get_uint8(x_93, 0);
|
||||
x_100 = lean_ctor_get_uint8(x_93, 1);
|
||||
x_101 = lean_ctor_get_uint8(x_93, 2);
|
||||
x_102 = lean_ctor_get_uint8(x_93, 3);
|
||||
x_103 = lean_ctor_get_uint8(x_93, 4);
|
||||
x_104 = lean_ctor_get_uint8(x_93, 6);
|
||||
x_105 = lean_ctor_get_uint8(x_93, 7);
|
||||
x_106 = lean_ctor_get_uint8(x_93, 8);
|
||||
x_107 = lean_ctor_get_uint8(x_93, 9);
|
||||
x_108 = lean_ctor_get_uint8(x_93, 10);
|
||||
x_109 = lean_ctor_get_uint8(x_93, 11);
|
||||
x_110 = lean_ctor_get_uint8(x_93, 12);
|
||||
x_111 = lean_ctor_get_uint8(x_93, 13);
|
||||
if (lean_is_exclusive(x_93)) {
|
||||
x_112 = x_93;
|
||||
} else {
|
||||
lean_dec_ref(x_89);
|
||||
x_108 = lean_box(0);
|
||||
lean_dec_ref(x_93);
|
||||
x_112 = lean_box(0);
|
||||
}
|
||||
x_109 = 2;
|
||||
if (lean_is_scalar(x_108)) {
|
||||
x_110 = lean_alloc_ctor(0, 0, 14);
|
||||
x_113 = 2;
|
||||
if (lean_is_scalar(x_112)) {
|
||||
x_114 = lean_alloc_ctor(0, 0, 14);
|
||||
} else {
|
||||
x_110 = x_108;
|
||||
x_114 = x_112;
|
||||
}
|
||||
lean_ctor_set_uint8(x_110, 0, x_95);
|
||||
lean_ctor_set_uint8(x_110, 1, x_96);
|
||||
lean_ctor_set_uint8(x_110, 2, x_97);
|
||||
lean_ctor_set_uint8(x_110, 3, x_98);
|
||||
lean_ctor_set_uint8(x_110, 4, x_99);
|
||||
lean_ctor_set_uint8(x_110, 5, x_109);
|
||||
lean_ctor_set_uint8(x_110, 6, x_100);
|
||||
lean_ctor_set_uint8(x_110, 7, x_101);
|
||||
lean_ctor_set_uint8(x_110, 8, x_102);
|
||||
lean_ctor_set_uint8(x_110, 9, x_103);
|
||||
lean_ctor_set_uint8(x_110, 10, x_104);
|
||||
lean_ctor_set_uint8(x_110, 11, x_105);
|
||||
lean_ctor_set_uint8(x_110, 12, x_106);
|
||||
lean_ctor_set_uint8(x_110, 13, x_107);
|
||||
x_111 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_111, 0, x_110);
|
||||
lean_ctor_set(x_111, 1, x_90);
|
||||
lean_ctor_set(x_111, 2, x_91);
|
||||
lean_ctor_set(x_111, 3, x_92);
|
||||
lean_ctor_set(x_111, 4, x_93);
|
||||
lean_ctor_set(x_111, 5, x_94);
|
||||
x_112 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
lean_ctor_set_uint8(x_114, 0, x_99);
|
||||
lean_ctor_set_uint8(x_114, 1, x_100);
|
||||
lean_ctor_set_uint8(x_114, 2, x_101);
|
||||
lean_ctor_set_uint8(x_114, 3, x_102);
|
||||
lean_ctor_set_uint8(x_114, 4, x_103);
|
||||
lean_ctor_set_uint8(x_114, 5, x_113);
|
||||
lean_ctor_set_uint8(x_114, 6, x_104);
|
||||
lean_ctor_set_uint8(x_114, 7, x_105);
|
||||
lean_ctor_set_uint8(x_114, 8, x_106);
|
||||
lean_ctor_set_uint8(x_114, 9, x_107);
|
||||
lean_ctor_set_uint8(x_114, 10, x_108);
|
||||
lean_ctor_set_uint8(x_114, 11, x_109);
|
||||
lean_ctor_set_uint8(x_114, 12, x_110);
|
||||
lean_ctor_set_uint8(x_114, 13, x_111);
|
||||
x_115 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_115, 0, x_114);
|
||||
lean_ctor_set(x_115, 1, x_94);
|
||||
lean_ctor_set(x_115, 2, x_95);
|
||||
lean_ctor_set(x_115, 3, x_96);
|
||||
lean_ctor_set(x_115, 4, x_97);
|
||||
lean_ctor_set(x_115, 5, x_98);
|
||||
x_116 = l_Lean_Meta_Split_simpMatch_pre___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_113 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_26, x_112, x_4, x_5, x_111, x_7, x_8, x_9, x_18);
|
||||
if (lean_obj_tag(x_113) == 0)
|
||||
x_117 = l_Lean_Meta_Simp_tryTheorem_x3f(x_3, x_29, x_116, x_4, x_5, x_115, x_7, x_8, x_9, x_21);
|
||||
if (lean_obj_tag(x_117) == 0)
|
||||
{
|
||||
lean_object* x_114;
|
||||
x_114 = lean_ctor_get(x_113, 0);
|
||||
lean_inc(x_114);
|
||||
if (lean_obj_tag(x_114) == 0)
|
||||
lean_object* x_118;
|
||||
x_118 = lean_ctor_get(x_117, 0);
|
||||
lean_inc(x_118);
|
||||
if (lean_obj_tag(x_118) == 0)
|
||||
{
|
||||
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120;
|
||||
x_115 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_115);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_116 = x_113;
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124;
|
||||
x_119 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_119);
|
||||
if (lean_is_exclusive(x_117)) {
|
||||
lean_ctor_release(x_117, 0);
|
||||
lean_ctor_release(x_117, 1);
|
||||
x_120 = x_117;
|
||||
} else {
|
||||
lean_dec_ref(x_113);
|
||||
x_116 = lean_box(0);
|
||||
lean_dec_ref(x_117);
|
||||
x_120 = lean_box(0);
|
||||
}
|
||||
x_117 = lean_box(0);
|
||||
x_118 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_118, 0, x_3);
|
||||
lean_ctor_set(x_118, 1, x_117);
|
||||
x_119 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_119, 0, x_118);
|
||||
if (lean_is_scalar(x_116)) {
|
||||
x_120 = lean_alloc_ctor(0, 2, 0);
|
||||
x_121 = lean_box(0);
|
||||
x_122 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_122, 0, x_3);
|
||||
lean_ctor_set(x_122, 1, x_121);
|
||||
x_123 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_123, 0, x_122);
|
||||
if (lean_is_scalar(x_120)) {
|
||||
x_124 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_120 = x_116;
|
||||
x_124 = x_120;
|
||||
}
|
||||
lean_ctor_set(x_120, 0, x_119);
|
||||
lean_ctor_set(x_120, 1, x_115);
|
||||
return x_120;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125;
|
||||
lean_dec(x_3);
|
||||
x_121 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_121);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_122 = x_113;
|
||||
} else {
|
||||
lean_dec_ref(x_113);
|
||||
x_122 = lean_box(0);
|
||||
}
|
||||
x_123 = lean_ctor_get(x_114, 0);
|
||||
lean_inc(x_123);
|
||||
lean_dec(x_114);
|
||||
x_124 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_124, 0, x_123);
|
||||
if (lean_is_scalar(x_122)) {
|
||||
x_125 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_125 = x_122;
|
||||
}
|
||||
lean_ctor_set(x_125, 0, x_124);
|
||||
lean_ctor_set(x_125, 1, x_121);
|
||||
return x_125;
|
||||
}
|
||||
lean_ctor_set(x_124, 1, x_119);
|
||||
return x_124;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129;
|
||||
lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129;
|
||||
lean_dec(x_3);
|
||||
x_126 = lean_ctor_get(x_113, 0);
|
||||
lean_inc(x_126);
|
||||
x_127 = lean_ctor_get(x_113, 1);
|
||||
x_125 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_125);
|
||||
if (lean_is_exclusive(x_117)) {
|
||||
lean_ctor_release(x_117, 0);
|
||||
lean_ctor_release(x_117, 1);
|
||||
x_126 = x_117;
|
||||
} else {
|
||||
lean_dec_ref(x_117);
|
||||
x_126 = lean_box(0);
|
||||
}
|
||||
x_127 = lean_ctor_get(x_118, 0);
|
||||
lean_inc(x_127);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_128 = x_113;
|
||||
lean_dec(x_118);
|
||||
x_128 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_128, 0, x_127);
|
||||
if (lean_is_scalar(x_126)) {
|
||||
x_129 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
lean_dec_ref(x_113);
|
||||
x_128 = lean_box(0);
|
||||
x_129 = x_126;
|
||||
}
|
||||
if (lean_is_scalar(x_128)) {
|
||||
x_129 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_129 = x_128;
|
||||
}
|
||||
lean_ctor_set(x_129, 0, x_126);
|
||||
lean_ctor_set(x_129, 1, x_127);
|
||||
lean_ctor_set(x_129, 0, x_128);
|
||||
lean_ctor_set(x_129, 1, x_125);
|
||||
return x_129;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133;
|
||||
lean_dec(x_3);
|
||||
x_130 = lean_ctor_get(x_117, 0);
|
||||
lean_inc(x_130);
|
||||
x_131 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_131);
|
||||
if (lean_is_exclusive(x_117)) {
|
||||
lean_ctor_release(x_117, 0);
|
||||
lean_ctor_release(x_117, 1);
|
||||
x_132 = x_117;
|
||||
} else {
|
||||
lean_dec_ref(x_117);
|
||||
x_132 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_132)) {
|
||||
x_133 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_133 = x_132;
|
||||
}
|
||||
lean_ctor_set(x_133, 0, x_130);
|
||||
lean_ctor_set(x_133, 1, x_131);
|
||||
return x_133;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_130;
|
||||
uint8_t x_134;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1291,49 +1305,29 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_130 = !lean_is_exclusive(x_16);
|
||||
if (x_130 == 0)
|
||||
x_134 = !lean_is_exclusive(x_19);
|
||||
if (x_134 == 0)
|
||||
{
|
||||
lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135;
|
||||
x_131 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_131);
|
||||
x_132 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_132);
|
||||
lean_dec(x_17);
|
||||
x_133 = lean_box(0);
|
||||
x_134 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_134, 0, x_132);
|
||||
lean_ctor_set(x_134, 1, x_133);
|
||||
x_135 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_135, 0, x_134);
|
||||
lean_ctor_set(x_16, 0, x_135);
|
||||
return x_16;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141;
|
||||
x_136 = lean_ctor_get(x_16, 1);
|
||||
lean_object* x_135; lean_object* x_136; lean_object* x_137;
|
||||
x_135 = lean_ctor_get(x_19, 0);
|
||||
x_136 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_136);
|
||||
lean_dec(x_16);
|
||||
x_137 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_137);
|
||||
lean_dec(x_17);
|
||||
x_138 = lean_box(0);
|
||||
x_139 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_139, 0, x_137);
|
||||
lean_ctor_set(x_139, 1, x_138);
|
||||
x_140 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_140, 0, x_139);
|
||||
x_141 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_141, 0, x_140);
|
||||
lean_ctor_set(x_141, 1, x_136);
|
||||
return x_141;
|
||||
lean_inc(x_135);
|
||||
lean_dec(x_19);
|
||||
x_137 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_137, 0, x_135);
|
||||
lean_ctor_set(x_137, 1, x_136);
|
||||
return x_137;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_142;
|
||||
uint8_t x_138;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1342,23 +1336,74 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_142 = !lean_is_exclusive(x_16);
|
||||
if (x_142 == 0)
|
||||
x_138 = !lean_is_exclusive(x_16);
|
||||
if (x_138 == 0)
|
||||
{
|
||||
lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143;
|
||||
x_139 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_139);
|
||||
x_140 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_140);
|
||||
lean_dec(x_17);
|
||||
x_141 = lean_box(0);
|
||||
x_142 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_142, 0, x_140);
|
||||
lean_ctor_set(x_142, 1, x_141);
|
||||
x_143 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_143, 0, x_142);
|
||||
lean_ctor_set(x_16, 0, x_143);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_143; lean_object* x_144; lean_object* x_145;
|
||||
x_143 = lean_ctor_get(x_16, 0);
|
||||
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149;
|
||||
x_144 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_144);
|
||||
lean_inc(x_143);
|
||||
lean_dec(x_16);
|
||||
x_145 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_145, 0, x_143);
|
||||
lean_ctor_set(x_145, 1, x_144);
|
||||
return x_145;
|
||||
x_145 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_145);
|
||||
lean_dec(x_17);
|
||||
x_146 = lean_box(0);
|
||||
x_147 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_147, 0, x_145);
|
||||
lean_ctor_set(x_147, 1, x_146);
|
||||
x_148 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_148, 0, x_147);
|
||||
x_149 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_149, 0, x_148);
|
||||
lean_ctor_set(x_149, 1, x_144);
|
||||
return x_149;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_150;
|
||||
lean_dec(x_9);
|
||||
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_150 = !lean_is_exclusive(x_16);
|
||||
if (x_150 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_151; lean_object* x_152; lean_object* x_153;
|
||||
x_151 = lean_ctor_get(x_16, 0);
|
||||
x_152 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_152);
|
||||
lean_inc(x_151);
|
||||
lean_dec(x_16);
|
||||
x_153 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_153, 0, x_151);
|
||||
lean_ctor_set(x_153, 1, x_152);
|
||||
return x_153;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -8603,7 +8648,7 @@ x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(x_9, x
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3518_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3536_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -8751,7 +8796,7 @@ l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Met
|
|||
lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1);
|
||||
l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1 = _init_l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1);
|
||||
res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3518_(lean_io_mk_world());
|
||||
res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_3536_(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));
|
||||
|
|
|
|||
503
stage0/stdlib/Lean/Meta/Tactic/Unfold.c
generated
503
stage0/stdlib/Lean/Meta/Tactic/Unfold.c
generated
|
|
@ -24,6 +24,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_unfoldTarget___lambda__1(lean_object*, lean
|
|||
static lean_object* l_Lean_Meta_unfold___closed__1;
|
||||
static lean_object* l_Lean_Meta_unfoldLocalDecl___lambda__1___closed__3;
|
||||
static lean_object* l_panic___at_Lean_Meta_unfoldLocalDecl___spec__1___closed__1;
|
||||
lean_object* l_Lean_Meta_isRflTheorem(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_Simp_neutralConfig;
|
||||
lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_unfold_pre___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -182,257 +183,235 @@ return x_1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_unfold_pre(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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_10 = lean_box(0);
|
||||
lean_object* x_10;
|
||||
lean_inc(x_1);
|
||||
x_11 = l_Lean_mkConst(x_1, x_10);
|
||||
x_12 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
x_13 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1;
|
||||
x_14 = lean_unsigned_to_nat(1000u);
|
||||
x_15 = 1;
|
||||
x_16 = 0;
|
||||
x_17 = lean_alloc_ctor(0, 5, 2);
|
||||
lean_ctor_set(x_17, 0, x_13);
|
||||
lean_ctor_set(x_17, 1, x_13);
|
||||
lean_ctor_set(x_17, 2, x_11);
|
||||
lean_ctor_set(x_17, 3, x_14);
|
||||
lean_ctor_set(x_17, 4, x_12);
|
||||
lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_15);
|
||||
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 1, x_16);
|
||||
x_18 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_5, 2);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_5, 3);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_5, 4);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_5, 5);
|
||||
lean_inc(x_23);
|
||||
x_24 = !lean_is_exclusive(x_18);
|
||||
if (x_24 == 0)
|
||||
x_10 = l_Lean_Meta_isRflTheorem(x_1, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_25 = 2;
|
||||
lean_ctor_set_uint8(x_18, 5, x_25);
|
||||
x_26 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_26, 0, x_18);
|
||||
lean_ctor_set(x_26, 1, x_19);
|
||||
lean_ctor_set(x_26, 2, x_20);
|
||||
lean_ctor_set(x_26, 3, x_21);
|
||||
lean_ctor_set(x_26, 4, x_22);
|
||||
lean_ctor_set(x_26, 5, x_23);
|
||||
x_27 = l_Lean_Meta_unfold_pre___closed__1;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; uint8_t 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; uint8_t x_28;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_box(0);
|
||||
lean_inc(x_1);
|
||||
x_14 = l_Lean_mkConst(x_1, x_13);
|
||||
x_15 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_15, 0, x_1);
|
||||
x_16 = l___private_Lean_Meta_Tactic_Unfold_0__Lean_Meta_getSimpUnfoldContext___rarg___closed__1;
|
||||
x_17 = lean_unsigned_to_nat(1000u);
|
||||
x_18 = 1;
|
||||
x_19 = 0;
|
||||
x_20 = lean_alloc_ctor(0, 5, 3);
|
||||
lean_ctor_set(x_20, 0, x_16);
|
||||
lean_ctor_set(x_20, 1, x_16);
|
||||
lean_ctor_set(x_20, 2, x_14);
|
||||
lean_ctor_set(x_20, 3, x_17);
|
||||
lean_ctor_set(x_20, 4, x_15);
|
||||
lean_ctor_set_uint8(x_20, sizeof(void*)*5, x_18);
|
||||
lean_ctor_set_uint8(x_20, sizeof(void*)*5 + 1, x_19);
|
||||
x_21 = lean_unbox(x_11);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set_uint8(x_20, sizeof(void*)*5 + 2, x_21);
|
||||
x_22 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_ctor_get(x_5, 2);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_5, 3);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get(x_5, 4);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_5, 5);
|
||||
lean_inc(x_27);
|
||||
x_28 = !lean_is_exclusive(x_22);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_29 = 2;
|
||||
lean_ctor_set_uint8(x_22, 5, x_29);
|
||||
x_30 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_30, 0, x_22);
|
||||
lean_ctor_set(x_30, 1, x_23);
|
||||
lean_ctor_set(x_30, 2, x_24);
|
||||
lean_ctor_set(x_30, 3, x_25);
|
||||
lean_ctor_set(x_30, 4, x_26);
|
||||
lean_ctor_set(x_30, 5, x_27);
|
||||
x_31 = l_Lean_Meta_unfold_pre___closed__1;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_28 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_17, x_27, x_3, x_4, x_26, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_28) == 0)
|
||||
x_32 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_20, x_31, x_3, x_4, x_30, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_29;
|
||||
x_29 = lean_ctor_get(x_28, 0);
|
||||
lean_inc(x_29);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
lean_object* x_33;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_28);
|
||||
x_31 = lean_box(0);
|
||||
x_32 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_32);
|
||||
x_35 = lean_box(0);
|
||||
x_36 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_34);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
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_37 = !lean_is_exclusive(x_32);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_38 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_38);
|
||||
x_39 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_33);
|
||||
x_40 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
lean_ctor_set(x_32, 0, x_40);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
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_33 = !lean_is_exclusive(x_28);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_28, 0);
|
||||
lean_dec(x_34);
|
||||
x_35 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_29);
|
||||
x_36 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_28, 0, x_36);
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_37 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_28);
|
||||
x_38 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_29);
|
||||
x_39 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_39, 0, x_38);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
lean_ctor_set(x_40, 1, x_37);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_41;
|
||||
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_41 = !lean_is_exclusive(x_28);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_42 = lean_ctor_get(x_28, 0);
|
||||
x_43 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_43);
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_41 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_32);
|
||||
x_42 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_28);
|
||||
x_44 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
lean_ctor_set(x_44, 1, x_43);
|
||||
lean_dec(x_33);
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_41);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_45 = lean_ctor_get_uint8(x_18, 0);
|
||||
x_46 = lean_ctor_get_uint8(x_18, 1);
|
||||
x_47 = lean_ctor_get_uint8(x_18, 2);
|
||||
x_48 = lean_ctor_get_uint8(x_18, 3);
|
||||
x_49 = lean_ctor_get_uint8(x_18, 4);
|
||||
x_50 = lean_ctor_get_uint8(x_18, 6);
|
||||
x_51 = lean_ctor_get_uint8(x_18, 7);
|
||||
x_52 = lean_ctor_get_uint8(x_18, 8);
|
||||
x_53 = lean_ctor_get_uint8(x_18, 9);
|
||||
x_54 = lean_ctor_get_uint8(x_18, 10);
|
||||
x_55 = lean_ctor_get_uint8(x_18, 11);
|
||||
x_56 = lean_ctor_get_uint8(x_18, 12);
|
||||
x_57 = lean_ctor_get_uint8(x_18, 13);
|
||||
lean_dec(x_18);
|
||||
x_58 = 2;
|
||||
x_59 = lean_alloc_ctor(0, 0, 14);
|
||||
lean_ctor_set_uint8(x_59, 0, x_45);
|
||||
lean_ctor_set_uint8(x_59, 1, x_46);
|
||||
lean_ctor_set_uint8(x_59, 2, x_47);
|
||||
lean_ctor_set_uint8(x_59, 3, x_48);
|
||||
lean_ctor_set_uint8(x_59, 4, x_49);
|
||||
lean_ctor_set_uint8(x_59, 5, x_58);
|
||||
lean_ctor_set_uint8(x_59, 6, x_50);
|
||||
lean_ctor_set_uint8(x_59, 7, x_51);
|
||||
lean_ctor_set_uint8(x_59, 8, x_52);
|
||||
lean_ctor_set_uint8(x_59, 9, x_53);
|
||||
lean_ctor_set_uint8(x_59, 10, x_54);
|
||||
lean_ctor_set_uint8(x_59, 11, x_55);
|
||||
lean_ctor_set_uint8(x_59, 12, x_56);
|
||||
lean_ctor_set_uint8(x_59, 13, x_57);
|
||||
x_60 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_19);
|
||||
lean_ctor_set(x_60, 2, x_20);
|
||||
lean_ctor_set(x_60, 3, x_21);
|
||||
lean_ctor_set(x_60, 4, x_22);
|
||||
lean_ctor_set(x_60, 5, x_23);
|
||||
x_61 = l_Lean_Meta_unfold_pre___closed__1;
|
||||
uint8_t x_45;
|
||||
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_45 = !lean_is_exclusive(x_32);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_46 = lean_ctor_get(x_32, 0);
|
||||
x_47 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_32);
|
||||
x_48 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_46);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_49 = lean_ctor_get_uint8(x_22, 0);
|
||||
x_50 = lean_ctor_get_uint8(x_22, 1);
|
||||
x_51 = lean_ctor_get_uint8(x_22, 2);
|
||||
x_52 = lean_ctor_get_uint8(x_22, 3);
|
||||
x_53 = lean_ctor_get_uint8(x_22, 4);
|
||||
x_54 = lean_ctor_get_uint8(x_22, 6);
|
||||
x_55 = lean_ctor_get_uint8(x_22, 7);
|
||||
x_56 = lean_ctor_get_uint8(x_22, 8);
|
||||
x_57 = lean_ctor_get_uint8(x_22, 9);
|
||||
x_58 = lean_ctor_get_uint8(x_22, 10);
|
||||
x_59 = lean_ctor_get_uint8(x_22, 11);
|
||||
x_60 = lean_ctor_get_uint8(x_22, 12);
|
||||
x_61 = lean_ctor_get_uint8(x_22, 13);
|
||||
lean_dec(x_22);
|
||||
x_62 = 2;
|
||||
x_63 = lean_alloc_ctor(0, 0, 14);
|
||||
lean_ctor_set_uint8(x_63, 0, x_49);
|
||||
lean_ctor_set_uint8(x_63, 1, x_50);
|
||||
lean_ctor_set_uint8(x_63, 2, x_51);
|
||||
lean_ctor_set_uint8(x_63, 3, x_52);
|
||||
lean_ctor_set_uint8(x_63, 4, x_53);
|
||||
lean_ctor_set_uint8(x_63, 5, x_62);
|
||||
lean_ctor_set_uint8(x_63, 6, x_54);
|
||||
lean_ctor_set_uint8(x_63, 7, x_55);
|
||||
lean_ctor_set_uint8(x_63, 8, x_56);
|
||||
lean_ctor_set_uint8(x_63, 9, x_57);
|
||||
lean_ctor_set_uint8(x_63, 10, x_58);
|
||||
lean_ctor_set_uint8(x_63, 11, x_59);
|
||||
lean_ctor_set_uint8(x_63, 12, x_60);
|
||||
lean_ctor_set_uint8(x_63, 13, x_61);
|
||||
x_64 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_23);
|
||||
lean_ctor_set(x_64, 2, x_24);
|
||||
lean_ctor_set(x_64, 3, x_25);
|
||||
lean_ctor_set(x_64, 4, x_26);
|
||||
lean_ctor_set(x_64, 5, x_27);
|
||||
x_65 = l_Lean_Meta_unfold_pre___closed__1;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_62 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_17, x_61, x_3, x_4, x_60, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_62) == 0)
|
||||
x_66 = l_Lean_Meta_Simp_tryTheorem_x3f(x_2, x_20, x_65, x_3, x_4, x_64, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_66) == 0)
|
||||
{
|
||||
lean_object* x_63;
|
||||
x_63 = lean_ctor_get(x_62, 0);
|
||||
lean_inc(x_63);
|
||||
if (lean_obj_tag(x_63) == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_64 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_62);
|
||||
x_65 = lean_box(0);
|
||||
x_66 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_64);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_66;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
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_67 = lean_ctor_get(x_62, 1);
|
||||
lean_object* x_67;
|
||||
x_67 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_67);
|
||||
if (lean_is_exclusive(x_62)) {
|
||||
lean_ctor_release(x_62, 0);
|
||||
lean_ctor_release(x_62, 1);
|
||||
x_68 = x_62;
|
||||
} else {
|
||||
lean_dec_ref(x_62);
|
||||
x_68 = lean_box(0);
|
||||
}
|
||||
x_69 = lean_ctor_get(x_63, 0);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_63);
|
||||
x_70 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_70, 0, x_69);
|
||||
if (lean_is_scalar(x_68)) {
|
||||
x_71 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_71 = x_68;
|
||||
}
|
||||
lean_ctor_set(x_71, 0, x_70);
|
||||
lean_ctor_set(x_71, 1, x_67);
|
||||
return x_71;
|
||||
}
|
||||
if (lean_obj_tag(x_67) == 0)
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_68 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_66);
|
||||
x_69 = lean_box(0);
|
||||
x_70 = l_Lean_Meta_unfold_pre___lambda__2(x_2, x_69, x_3, x_4, x_5, x_6, x_7, x_8, x_68);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_70;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -440,28 +419,94 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_72 = lean_ctor_get(x_62, 0);
|
||||
lean_inc(x_72);
|
||||
x_73 = lean_ctor_get(x_62, 1);
|
||||
x_71 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_71);
|
||||
if (lean_is_exclusive(x_66)) {
|
||||
lean_ctor_release(x_66, 0);
|
||||
lean_ctor_release(x_66, 1);
|
||||
x_72 = x_66;
|
||||
} else {
|
||||
lean_dec_ref(x_66);
|
||||
x_72 = lean_box(0);
|
||||
}
|
||||
x_73 = lean_ctor_get(x_67, 0);
|
||||
lean_inc(x_73);
|
||||
if (lean_is_exclusive(x_62)) {
|
||||
lean_ctor_release(x_62, 0);
|
||||
lean_ctor_release(x_62, 1);
|
||||
x_74 = x_62;
|
||||
lean_dec(x_67);
|
||||
x_74 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_74, 0, x_73);
|
||||
if (lean_is_scalar(x_72)) {
|
||||
x_75 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
lean_dec_ref(x_62);
|
||||
x_74 = lean_box(0);
|
||||
x_75 = x_72;
|
||||
}
|
||||
if (lean_is_scalar(x_74)) {
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_75 = x_74;
|
||||
}
|
||||
lean_ctor_set(x_75, 0, x_72);
|
||||
lean_ctor_set(x_75, 1, x_73);
|
||||
lean_ctor_set(x_75, 0, x_74);
|
||||
lean_ctor_set(x_75, 1, x_71);
|
||||
return x_75;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
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_76 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_76);
|
||||
x_77 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_77);
|
||||
if (lean_is_exclusive(x_66)) {
|
||||
lean_ctor_release(x_66, 0);
|
||||
lean_ctor_release(x_66, 1);
|
||||
x_78 = x_66;
|
||||
} else {
|
||||
lean_dec_ref(x_66);
|
||||
x_78 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_78)) {
|
||||
x_79 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_79 = x_78;
|
||||
}
|
||||
lean_ctor_set(x_79, 0, x_76);
|
||||
lean_ctor_set(x_79, 1, x_77);
|
||||
return x_79;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_80;
|
||||
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);
|
||||
lean_dec(x_1);
|
||||
x_80 = !lean_is_exclusive(x_10);
|
||||
if (x_80 == 0)
|
||||
{
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_81 = lean_ctor_get(x_10, 0);
|
||||
x_82 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_10);
|
||||
x_83 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_81);
|
||||
lean_ctor_set(x_83, 1, x_82);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_unfold_pre___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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue