chore: update stage0
This commit is contained in:
parent
d20081c548
commit
a042212909
7 changed files with 2606 additions and 944 deletions
28
stage0/src/Lean/Meta/GeneralizeTelescope.lean
generated
28
stage0/src/Lean/Meta/GeneralizeTelescope.lean
generated
|
|
@ -28,25 +28,25 @@ partial def updateTypes (e eNew : Expr) (entries : Array Entry) (i : Nat) : Meta
|
|||
else
|
||||
pure entries
|
||||
|
||||
partial def generalizeTelescopeAux {α} (prefixForNewVars : Name) (k : Array Expr → MetaM α)
|
||||
(entries : Array Entry) (i : Nat) (nextVarIdx : Nat) (fvars : Array Expr) : MetaM α := do
|
||||
partial def generalizeTelescopeAux {α} (k : Array Expr → MetaM α)
|
||||
(entries : Array Entry) (i : Nat) (fvars : Array Expr) : MetaM α := do
|
||||
if h : i < entries.size then
|
||||
let replace (e : Expr) (type : Expr) : MetaM α := do
|
||||
let userName := prefixForNewVars.appendIndexAfter nextVarIdx
|
||||
let replace (baseUserName : Name) (e : Expr) (type : Expr) : MetaM α := do
|
||||
let userName ← mkFreshUserName baseUserName
|
||||
withLocalDeclD userName type fun x => do
|
||||
entries ← updateTypes e x entries (i+1)
|
||||
generalizeTelescopeAux prefixForNewVars k entries (i+1) (nextVarIdx+1) (fvars.push x)
|
||||
generalizeTelescopeAux k entries (i+1) (fvars.push x)
|
||||
match entries.get ⟨i, h⟩ with
|
||||
| ⟨e@(Expr.fvar fvarId _), type, false⟩ =>
|
||||
let localDecl ← getLocalDecl fvarId
|
||||
match localDecl with
|
||||
| LocalDecl.cdecl .. => generalizeTelescopeAux prefixForNewVars k entries (i+1) nextVarIdx (fvars.push e)
|
||||
| LocalDecl.ldecl .. => replace e type
|
||||
| LocalDecl.cdecl .. => generalizeTelescopeAux k entries (i+1) (fvars.push e)
|
||||
| LocalDecl.ldecl .. => replace localDecl.userName e type
|
||||
| ⟨e, type, modified⟩ =>
|
||||
if modified then
|
||||
unless (← isTypeCorrect type) do
|
||||
throwError! "failed to create telescope generalizing {entries.map Entry.expr}"
|
||||
replace e type
|
||||
replace `x e type
|
||||
else
|
||||
k fvars
|
||||
|
||||
|
|
@ -71,25 +71,23 @@ open GeneralizeTelescope
|
|||
Moreover, for any type correct lambda abstraction `f` constructed using `mkForall #[x_1, ..., x_n] ...`,
|
||||
The application `f e_1 ... e_n` is also type correct.
|
||||
|
||||
The parameter `prefixForNewVars` is used to create new user facing names for the (new) variables `x_i`.
|
||||
|
||||
The `kabstract` method is used to "locate" and abstract forward dependencies.
|
||||
That is, an occurrence of `e_i` in the of `e_j` for `j > i`.
|
||||
|
||||
The method checks whether the abstract types `A_i` are type correct. Here is an example
|
||||
where `generalizeTelescope` fails to create the telescope `x_1 ... x_n`.
|
||||
Assume the local context contains `(n : Nat := 10) (xs : Vec Nat n) (ys : Vec Nat 10) (h : xs = ys)`.
|
||||
Then, assume we invoke `generalizeTelescope` with `es := #[10, xs, ys, h]` and `prefixForNewVars := aux`.
|
||||
Then, assume we invoke `generalizeTelescope` with `es := #[10, xs, ys, h]`
|
||||
A type error is detected when processing `h`'s type. At this point, the method had successfully produced
|
||||
```
|
||||
(aux_1 : Nat) (xs : Vec Nat n) (aux_2 : Vec Nat aux_1)
|
||||
(x_1 : Nat) (xs : Vec Nat n) (x_2 : Vec Nat x_1)
|
||||
```
|
||||
and the type for the new variable abstracting `h` is `xs = aux_2` which is not type correct. -/
|
||||
def generalizeTelescope {α} (es : Array Expr) (prefixForNewVars : Name) (k : Array Expr → MetaM α) : MetaM α := do
|
||||
and the type for the new variable abstracting `h` is `xs = x_2` which is not type correct. -/
|
||||
def generalizeTelescope {α} (es : Array Expr) (k : Array Expr → MetaM α) : MetaM α := do
|
||||
let es ← es.mapM fun e => do
|
||||
let type ← inferType e
|
||||
let type ← instantiateMVars type
|
||||
pure { expr := e, type := type, modified := false : Entry }
|
||||
generalizeTelescopeAux prefixForNewVars k es 0 1 #[]
|
||||
generalizeTelescopeAux k es 0 #[]
|
||||
|
||||
end Lean.Meta
|
||||
|
|
|
|||
7
stage0/src/Lean/Meta/Tactic/Rewrite.lean
generated
7
stage0/src/Lean/Meta/Tactic/Rewrite.lean
generated
|
|
@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Meta.AppBuilder
|
||||
import Lean.Meta.MatchUtil
|
||||
import Lean.Meta.KAbstract
|
||||
import Lean.Meta.Check
|
||||
import Lean.Meta.Tactic.Apply
|
||||
|
|
@ -21,9 +22,9 @@ def rewrite (mvarId : MVarId) (e : Expr) (heq : Expr) (symm : Bool := false) (oc
|
|||
let heqType ← inferType heq
|
||||
let (newMVars, binderInfos, heqType) ← forallMetaTelescopeReducing heqType
|
||||
let heq := mkAppN heq newMVars
|
||||
let cont (heq heqType : Expr) : MetaM RewriteResult :=
|
||||
match heqType.eq? with
|
||||
| none => throwTacticEx `rewrite mvarId msg!"equality of iff proof expected{indentExpr heqType}"
|
||||
let cont (heq heqType : Expr) : MetaM RewriteResult := do
|
||||
match (← matchEq? heqType) with
|
||||
| none => throwTacticEx `rewrite mvarId msg!"equality or iff proof expected{indentExpr heqType}"
|
||||
| some (α, lhs, rhs) =>
|
||||
let cont (heq heqType lhs rhs : Expr) : MetaM RewriteResult := do
|
||||
if lhs.getAppFn.isMVar then
|
||||
|
|
|
|||
8
stage0/src/Lean/Parser/Do.lean
generated
8
stage0/src/Lean/Parser/Do.lean
generated
|
|
@ -23,7 +23,7 @@ def doSeqBracketed := parser! "{" >> withoutPosition (many1 (group (doElemParser
|
|||
def doSeq := doSeqBracketed <|> doSeqIndent
|
||||
|
||||
def notFollowedByRedefinedTermToken :=
|
||||
notFollowedBy ("if" <|> "match" <|> "let" <|> "have" <|> "do" <|> "dbgTrace!" <|> "assert!") "token at 'do' element"
|
||||
notFollowedBy ("if" <|> "match" <|> "let" <|> "have" <|> "do" <|> "dbgTrace!" <|> "assert!" <|> "for" <|> "unless" <|> "return" <|> "try") "token at 'do' element"
|
||||
|
||||
@[builtinDoElemParser] def doLet := parser! "let " >> letDecl
|
||||
@[builtinDoElemParser] def doLetRec := parser! group ("let " >> nonReservedSymbol "rec ") >> letRecDecls
|
||||
|
|
@ -99,6 +99,12 @@ parser is succeeding.
|
|||
|
||||
@[builtinTermParser] def doElem.quot : Parser := parser! "`(doElem|" >> toggleInsideQuot doElemParser >> ")"
|
||||
|
||||
/- macros for using `unless`, `for`, `try`, `return` as terms. They expand into `do unless ...`, `do for ...`, `do try ...`, and `do return ...` -/
|
||||
@[builtinTermParser] def termUnless := parser! "unless " >> withForbidden "do" termParser >> "do " >> doSeq
|
||||
@[builtinTermParser] def termFor := parser! "for " >> termParser >> " in " >> withForbidden "do" termParser >> "do " >> doSeq
|
||||
@[builtinTermParser] def termTry := parser! "try " >> doSeq >> many (doCatch <|> doCatchMatch) >> optional doFinally
|
||||
@[builtinTermParser] def termReturn := parser!:leadPrec withPosition ("return " >> optional (checkLineEq >> termParser))
|
||||
|
||||
end Term
|
||||
end Parser
|
||||
end Lean
|
||||
|
|
|
|||
659
stage0/stdlib/Lean/Meta/GeneralizeTelescope.c
generated
659
stage0/stdlib/Lean/Meta/GeneralizeTelescope.c
generated
|
|
@ -16,6 +16,7 @@ extern "C" {
|
|||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux_match__2(lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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_array_uget(lean_object*, size_t);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_generalizeTelescope___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -36,12 +37,12 @@ lean_object* lean_nat_add(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__1;
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Occurrences_beq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2(size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_generalizeTelescope___rarg___boxed__const__1;
|
||||
|
|
@ -53,9 +54,9 @@ lean_object* l_Lean_Meta_GeneralizeTelescope_updateTypes_match__1___rarg(lean_ob
|
|||
lean_object* l___private_Lean_HeadIndex_0__Lean_Expr_headNumArgsAux(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1;
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_updateTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_kabstract_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_updateTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -68,15 +69,16 @@ lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_GeneralizeTelescope_updateType
|
|||
extern lean_object* l_Lean_mkOptionalNode___closed__2;
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux_match__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_GeneralizeTelescope_updateTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___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* l_Lean_Meta_GeneralizeTelescope_updateTypes_match__1(lean_object*);
|
||||
lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux(lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_mkArrow___rarg___closed__2;
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_updateTypes_match__1___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -909,82 +911,82 @@ goto _start;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___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, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = lean_nat_add(x_1, x_14);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = lean_nat_add(x_1, x_12);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_15);
|
||||
x_16 = l_Lean_Meta_GeneralizeTelescope_updateTypes(x_2, x_8, x_3, x_15, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_13);
|
||||
x_14 = l_Lean_Meta_GeneralizeTelescope_updateTypes(x_2, x_6, x_3, x_13, x_7, x_8, x_9, x_10, x_11);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_nat_add(x_4, x_14);
|
||||
x_20 = lean_array_push(x_5, x_8);
|
||||
x_21 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(x_6, x_7, x_17, x_15, x_19, x_20, x_9, x_10, x_11, x_12, x_18);
|
||||
return x_21;
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
x_17 = lean_array_push(x_4, x_6);
|
||||
x_18 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(x_5, x_15, x_13, x_17, x_7, x_8, x_9, x_10, x_16);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
uint8_t x_19;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_22 = !lean_is_exclusive(x_16);
|
||||
if (x_22 == 0)
|
||||
lean_dec(x_4);
|
||||
x_19 = !lean_is_exclusive(x_14);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
return x_16;
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_16, 0);
|
||||
x_24 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_16);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_14, 0);
|
||||
x_21 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_14);
|
||||
x_22 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_20);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18;
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_15 = l_Lean_Name_appendIndexAfter(x_1, x_2);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed), 13, 7);
|
||||
lean_closure_set(x_16, 0, x_3);
|
||||
lean_closure_set(x_16, 1, x_4);
|
||||
lean_closure_set(x_16, 2, x_5);
|
||||
lean_closure_set(x_16, 3, x_2);
|
||||
lean_closure_set(x_16, 4, x_6);
|
||||
lean_closure_set(x_16, 5, x_1);
|
||||
lean_closure_set(x_16, 6, x_7);
|
||||
x_17 = 0;
|
||||
x_18 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_15, x_17, x_8, x_16, x_10, x_11, x_12, x_13, x_14);
|
||||
return x_18;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_13 = l_Lean_Meta_mkArrow___rarg___closed__2;
|
||||
x_14 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_13, x_10, x_11, x_12);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed), 11, 5);
|
||||
lean_closure_set(x_17, 0, x_1);
|
||||
lean_closure_set(x_17, 1, x_2);
|
||||
lean_closure_set(x_17, 2, x_3);
|
||||
lean_closure_set(x_17, 3, x_4);
|
||||
lean_closure_set(x_17, 4, x_5);
|
||||
x_18 = 0;
|
||||
x_19 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_15, x_18, x_6, x_17, x_8, x_9, x_10, x_11, x_16);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__1() {
|
||||
|
|
@ -1004,96 +1006,94 @@ x_2 = l_Lean_stringToMessageData(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13;
|
||||
x_12 = lean_array_get_size(x_3);
|
||||
x_13 = lean_nat_dec_lt(x_4, x_12);
|
||||
if (x_13 == 0)
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_array_get_size(x_2);
|
||||
x_11 = lean_nat_dec_lt(x_3, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_object* x_12;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_14 = lean_apply_6(x_2, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_14;
|
||||
lean_dec(x_2);
|
||||
x_12 = lean_apply_6(x_1, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_array_fget(x_3, x_4);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_array_fget(x_2, x_3);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 1)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*2);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
lean_dec(x_10);
|
||||
x_16 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_16);
|
||||
if (lean_obj_tag(x_16) == 1)
|
||||
lean_dec(x_13);
|
||||
x_17 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_5);
|
||||
x_18 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_17, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
uint8_t x_17;
|
||||
x_17 = lean_ctor_get_uint8(x_15, sizeof(void*)*2);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_12);
|
||||
x_18 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_15);
|
||||
x_19 = lean_ctor_get(x_16, 0);
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_7);
|
||||
x_20 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_19, x_7, x_8, x_9, x_10, x_11);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_21;
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
lean_dec(x_21);
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_20);
|
||||
x_23 = lean_unsigned_to_nat(1u);
|
||||
x_24 = lean_nat_add(x_4, x_23);
|
||||
lean_dec(x_4);
|
||||
x_25 = lean_array_push(x_6, x_16);
|
||||
x_4 = x_24;
|
||||
x_6 = x_25;
|
||||
x_11 = x_22;
|
||||
x_21 = lean_unsigned_to_nat(1u);
|
||||
x_22 = lean_nat_add(x_3, x_21);
|
||||
lean_dec(x_3);
|
||||
x_23 = lean_array_push(x_4, x_14);
|
||||
x_3 = x_22;
|
||||
x_4 = x_23;
|
||||
x_9 = x_20;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31;
|
||||
lean_dec(x_21);
|
||||
x_27 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_20);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_1);
|
||||
x_28 = l_Lean_Name_appendIndexAfter(x_1, x_5);
|
||||
x_29 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed), 13, 7);
|
||||
lean_closure_set(x_29, 0, x_4);
|
||||
lean_closure_set(x_29, 1, x_16);
|
||||
lean_closure_set(x_29, 2, x_3);
|
||||
lean_closure_set(x_29, 3, x_5);
|
||||
lean_closure_set(x_29, 4, x_6);
|
||||
lean_closure_set(x_29, 5, x_1);
|
||||
lean_closure_set(x_29, 6, x_2);
|
||||
x_30 = 0;
|
||||
x_31 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_28, x_30, x_18, x_29, x_7, x_8, x_9, x_10, x_27);
|
||||
return x_31;
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32;
|
||||
x_25 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_18);
|
||||
x_26 = l_Lean_LocalDecl_userName(x_19);
|
||||
lean_dec(x_19);
|
||||
x_27 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_26, x_7, x_8, x_25);
|
||||
x_28 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_27);
|
||||
x_30 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed), 11, 5);
|
||||
lean_closure_set(x_30, 0, x_3);
|
||||
lean_closure_set(x_30, 1, x_14);
|
||||
lean_closure_set(x_30, 2, x_2);
|
||||
lean_closure_set(x_30, 3, x_4);
|
||||
lean_closure_set(x_30, 4, x_1);
|
||||
x_31 = 0;
|
||||
x_32 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_28, x_31, x_16, x_30, x_5, x_6, x_7, x_8, x_29);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_32;
|
||||
lean_dec(x_18);
|
||||
uint8_t x_33;
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -1102,208 +1102,204 @@ lean_dec(x_4);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_32 = !lean_is_exclusive(x_20);
|
||||
if (x_32 == 0)
|
||||
x_33 = !lean_is_exclusive(x_18);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_20;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_33 = lean_ctor_get(x_20, 0);
|
||||
x_34 = lean_ctor_get(x_20, 1);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_18, 0);
|
||||
x_35 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_20);
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
return x_35;
|
||||
lean_dec(x_18);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
|
||||
x_36 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_15);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40;
|
||||
x_37 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_36);
|
||||
x_37 = l_Lean_Meta_isTypeCorrect(x_36, x_7, x_8, x_9, x_10, x_11);
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_unbox(x_38);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_37);
|
||||
x_38 = l_Lean_Meta_isTypeCorrect(x_37, x_5, x_6, x_7, x_8, x_9);
|
||||
x_39 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_39);
|
||||
x_40 = lean_unbox(x_39);
|
||||
lean_dec(x_39);
|
||||
if (x_40 == 0)
|
||||
{
|
||||
lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
lean_dec(x_37);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_41 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_38);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54;
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_40 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_37);
|
||||
x_41 = lean_usize_of_nat(x_12);
|
||||
lean_dec(x_12);
|
||||
x_42 = 0;
|
||||
x_43 = x_3;
|
||||
x_44 = l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2(x_41, x_42, x_43);
|
||||
x_45 = x_44;
|
||||
x_46 = l_Array_toList___rarg(x_45);
|
||||
lean_dec(x_45);
|
||||
x_47 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_46);
|
||||
x_48 = l_Lean_MessageData_ofList(x_47);
|
||||
lean_dec(x_47);
|
||||
x_49 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2;
|
||||
x_50 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_49);
|
||||
lean_ctor_set(x_50, 1, x_48);
|
||||
x_51 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1;
|
||||
x_52 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_50);
|
||||
lean_ctor_set(x_52, 1, x_51);
|
||||
x_53 = l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(x_52, x_7, x_8, x_9, x_10, x_40);
|
||||
x_42 = lean_usize_of_nat(x_10);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
x_43 = 0;
|
||||
x_44 = x_2;
|
||||
x_45 = l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2(x_42, x_43, x_44);
|
||||
x_46 = x_45;
|
||||
x_47 = l_Array_toList___rarg(x_46);
|
||||
lean_dec(x_46);
|
||||
x_48 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_47);
|
||||
x_49 = l_Lean_MessageData_ofList(x_48);
|
||||
lean_dec(x_48);
|
||||
x_50 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2;
|
||||
x_51 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
x_52 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1;
|
||||
x_53 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_51);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
x_54 = l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(x_53, x_5, x_6, x_7, x_8, x_41);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
x_54 = !lean_is_exclusive(x_53);
|
||||
if (x_54 == 0)
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_55 = !lean_is_exclusive(x_54);
|
||||
if (x_55 == 0)
|
||||
{
|
||||
return x_53;
|
||||
return x_54;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57;
|
||||
x_55 = lean_ctor_get(x_53, 0);
|
||||
x_56 = lean_ctor_get(x_53, 1);
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_54, 0);
|
||||
x_57 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_53);
|
||||
x_57 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_57, 0, x_55);
|
||||
lean_ctor_set(x_57, 1, x_56);
|
||||
return x_57;
|
||||
lean_dec(x_54);
|
||||
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;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
lean_dec(x_12);
|
||||
x_58 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_37);
|
||||
x_59 = lean_box(0);
|
||||
x_60 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_1, x_5, x_4, x_16, x_3, x_6, x_2, x_36, x_59, x_7, x_8, x_9, x_10, x_58);
|
||||
return x_60;
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
lean_dec(x_10);
|
||||
x_59 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_38);
|
||||
x_60 = lean_box(0);
|
||||
x_61 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_3, x_14, x_2, x_4, x_1, x_37, x_60, x_5, x_6, x_7, x_8, x_59);
|
||||
return x_61;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_61;
|
||||
x_61 = lean_ctor_get_uint8(x_15, sizeof(void*)*2);
|
||||
if (x_61 == 0)
|
||||
uint8_t x_62;
|
||||
x_62 = lean_ctor_get_uint8(x_13, sizeof(void*)*2);
|
||||
if (x_62 == 0)
|
||||
{
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
lean_dec(x_12);
|
||||
x_62 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_15);
|
||||
x_63 = lean_box(0);
|
||||
x_64 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_1, x_5, x_4, x_16, x_3, x_6, x_2, x_62, x_63, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_64;
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
lean_dec(x_10);
|
||||
x_63 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_13);
|
||||
x_64 = lean_box(0);
|
||||
x_65 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_3, x_14, x_2, x_4, x_1, x_63, x_64, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_65;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68;
|
||||
x_65 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_15);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69;
|
||||
x_66 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_65);
|
||||
x_66 = l_Lean_Meta_isTypeCorrect(x_65, x_7, x_8, x_9, x_10, x_11);
|
||||
x_67 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_unbox(x_67);
|
||||
lean_dec(x_67);
|
||||
if (x_68 == 0)
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_66);
|
||||
x_67 = l_Lean_Meta_isTypeCorrect(x_66, x_5, x_6, x_7, x_8, x_9);
|
||||
x_68 = lean_ctor_get(x_67, 0);
|
||||
lean_inc(x_68);
|
||||
x_69 = lean_unbox(x_68);
|
||||
lean_dec(x_68);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
lean_object* x_69; size_t x_70; size_t 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; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83;
|
||||
lean_dec(x_65);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_69 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_69);
|
||||
lean_object* x_70; size_t x_71; size_t 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; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84;
|
||||
lean_dec(x_66);
|
||||
x_70 = lean_usize_of_nat(x_12);
|
||||
lean_dec(x_12);
|
||||
x_71 = 0;
|
||||
x_72 = x_3;
|
||||
x_73 = l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2(x_70, x_71, x_72);
|
||||
x_74 = x_73;
|
||||
x_75 = l_Array_toList___rarg(x_74);
|
||||
lean_dec(x_74);
|
||||
x_76 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_75);
|
||||
x_77 = l_Lean_MessageData_ofList(x_76);
|
||||
lean_dec(x_76);
|
||||
x_78 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2;
|
||||
x_79 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_79, 0, x_78);
|
||||
lean_ctor_set(x_79, 1, x_77);
|
||||
x_80 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1;
|
||||
x_81 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_79);
|
||||
lean_ctor_set(x_81, 1, x_80);
|
||||
x_82 = l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(x_81, x_7, x_8, x_9, x_10, x_69);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_70 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_67);
|
||||
x_71 = lean_usize_of_nat(x_10);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
x_72 = 0;
|
||||
x_73 = x_2;
|
||||
x_74 = l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__2(x_71, x_72, x_73);
|
||||
x_75 = x_74;
|
||||
x_76 = l_Array_toList___rarg(x_75);
|
||||
lean_dec(x_75);
|
||||
x_77 = l_List_map___at_Lean_MessageData_Lean_Message___instance__12___spec__1(x_76);
|
||||
x_78 = l_Lean_MessageData_ofList(x_77);
|
||||
lean_dec(x_77);
|
||||
x_79 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___closed__2;
|
||||
x_80 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_79);
|
||||
lean_ctor_set(x_80, 1, x_78);
|
||||
x_81 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1;
|
||||
x_82 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_80);
|
||||
lean_ctor_set(x_82, 1, x_81);
|
||||
x_83 = l_Lean_throwError___at_Lean_Meta_getMVarDecl___spec__1___rarg(x_82, x_5, x_6, x_7, x_8, x_70);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
x_83 = !lean_is_exclusive(x_82);
|
||||
if (x_83 == 0)
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_84 = !lean_is_exclusive(x_83);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
return x_82;
|
||||
return x_83;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86;
|
||||
x_84 = lean_ctor_get(x_82, 0);
|
||||
x_85 = lean_ctor_get(x_82, 1);
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_85 = lean_ctor_get(x_83, 0);
|
||||
x_86 = lean_ctor_get(x_83, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_84);
|
||||
lean_dec(x_82);
|
||||
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_83);
|
||||
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
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
lean_dec(x_12);
|
||||
x_87 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_66);
|
||||
x_88 = lean_box(0);
|
||||
x_89 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_1, x_5, x_4, x_16, x_3, x_6, x_2, x_65, x_88, x_7, x_8, x_9, x_10, x_87);
|
||||
return x_89;
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
lean_dec(x_10);
|
||||
x_88 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_67);
|
||||
x_89 = lean_box(0);
|
||||
x_90 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_3, x_14, x_2, x_4, x_1, x_66, x_89, x_5, x_6, x_7, x_8, x_88);
|
||||
return x_90;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1314,7 +1310,7 @@ lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux(lean_object*
|
|||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg), 11, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg), 9, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -1340,23 +1336,22 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Meta_GeneralizeTelescope_generalizeTelesc
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
lean_dec(x_4);
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_1);
|
||||
return x_14;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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* l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_15;
|
||||
x_15 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
lean_dec(x_9);
|
||||
return x_15;
|
||||
lean_object* x_13;
|
||||
x_13 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_7);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_generalizeTelescope___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
|
|
@ -1494,66 +1489,64 @@ x_2 = lean_box_usize(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_9 = lean_array_get_size(x_1);
|
||||
x_10 = lean_usize_of_nat(x_9);
|
||||
lean_dec(x_9);
|
||||
x_11 = x_1;
|
||||
x_12 = lean_box_usize(x_10);
|
||||
x_13 = l_Lean_Meta_generalizeTelescope___rarg___boxed__const__1;
|
||||
x_14 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Meta_generalizeTelescope___spec__1___boxed), 8, 3);
|
||||
lean_closure_set(x_14, 0, x_12);
|
||||
lean_closure_set(x_14, 1, x_13);
|
||||
lean_closure_set(x_14, 2, x_11);
|
||||
x_15 = x_14;
|
||||
lean_inc(x_7);
|
||||
lean_object* x_8; size_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;
|
||||
x_8 = lean_array_get_size(x_1);
|
||||
x_9 = lean_usize_of_nat(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = x_1;
|
||||
x_11 = lean_box_usize(x_9);
|
||||
x_12 = l_Lean_Meta_generalizeTelescope___rarg___boxed__const__1;
|
||||
x_13 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Meta_generalizeTelescope___spec__1___boxed), 8, 3);
|
||||
lean_closure_set(x_13, 0, x_11);
|
||||
lean_closure_set(x_13, 1, x_12);
|
||||
lean_closure_set(x_13, 2, x_10);
|
||||
x_14 = x_13;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_16 = lean_apply_5(x_15, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
lean_inc(x_3);
|
||||
x_15 = lean_apply_5(x_14, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_unsigned_to_nat(0u);
|
||||
x_20 = lean_unsigned_to_nat(1u);
|
||||
x_21 = l_Array_empty___closed__1;
|
||||
x_22 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(x_2, x_3, x_17, x_19, x_20, x_21, x_4, x_5, x_6, x_7, x_18);
|
||||
return x_22;
|
||||
lean_dec(x_15);
|
||||
x_18 = lean_unsigned_to_nat(0u);
|
||||
x_19 = l_Array_empty___closed__1;
|
||||
x_20 = l_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___rarg(x_2, x_16, x_18, x_19, x_3, x_4, x_5, x_6, x_17);
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_23;
|
||||
lean_dec(x_7);
|
||||
uint8_t x_21;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_23 = !lean_is_exclusive(x_16);
|
||||
if (x_23 == 0)
|
||||
x_21 = !lean_is_exclusive(x_15);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_16;
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_16, 0);
|
||||
x_25 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_16);
|
||||
x_26 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
return x_26;
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_15, 0);
|
||||
x_23 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_15);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1562,7 +1555,7 @@ lean_object* l_Lean_Meta_generalizeTelescope(lean_object* x_1) {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeTelescope___rarg), 8, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeTelescope___rarg), 7, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1138
stage0/stdlib/Lean/Meta/Tactic/Rewrite.c
generated
1138
stage0/stdlib/Lean/Meta/Tactic/Rewrite.c
generated
File diff suppressed because it is too large
Load diff
1620
stage0/stdlib/Lean/Parser/Do.c
generated
1620
stage0/stdlib/Lean/Parser/Do.c
generated
File diff suppressed because it is too large
Load diff
90
stage0/stdlib/Lean/Parser/Syntax.c
generated
90
stage0/stdlib/Lean/Parser/Syntax.c
generated
|
|
@ -437,7 +437,6 @@ lean_object* l_Lean_Parser_Command_infix_formatter___closed__3;
|
|||
lean_object* l_Lean_Parser_Syntax_char___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_postfix___elambda__1___closed__8;
|
||||
extern lean_object* l_Lean_Parser_Term_syntheticHole___closed__1;
|
||||
lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Syntax_noWs_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_parserKindPrio___closed__2;
|
||||
lean_object* l_Lean_Parser_checkPrecFn(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1705,6 +1704,7 @@ lean_object* l_Lean_Parser_Command_macroTail___closed__3;
|
|||
lean_object* l_Lean_Parser_Command_macroTail___closed__1;
|
||||
lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_mixfixKind_formatter___closed__4;
|
||||
extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_identEq_parenthesizer___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_infixl_formatter___closed__3;
|
||||
lean_object* l___regBuiltin_Lean_Parser_Command_macro_parenthesizer(lean_object*);
|
||||
|
|
@ -5616,43 +5616,35 @@ return x_5;
|
|||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("try");
|
||||
return x_1;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_paren___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_paren___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__4() {
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = 1;
|
||||
x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__5() {
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -5662,13 +5654,25 @@ lean_closure_set(x_2, 0, x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__4;
|
||||
x_2 = l_Lean_Parser_Syntax_interpolatedStr___elambda__1___closed__7;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__5;
|
||||
x_2 = l_Lean_Parser_Syntax_interpolatedStr___elambda__1___closed__7;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__5;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -5678,20 +5682,8 @@ static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__7() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__6;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Level_paren___elambda__1___closed__8;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__7;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__6;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -5702,10 +5694,10 @@ lean_object* l_Lean_Parser_Syntax_try___elambda__1(lean_object* x_1, lean_object
|
|||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__4;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__3;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
x_5 = l_Lean_Parser_Syntax_try___elambda__1___closed__8;
|
||||
x_5 = l_Lean_Parser_Syntax_try___elambda__1___closed__7;
|
||||
x_6 = 1;
|
||||
x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2);
|
||||
return x_7;
|
||||
|
|
@ -5737,7 +5729,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try___closed__3() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Syntax_try___closed__2;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
return x_3;
|
||||
|
|
@ -5757,7 +5749,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try___closed__5() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__4;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__3;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Syntax_try___closed__4;
|
||||
|
|
@ -5798,7 +5790,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_2 = l_Lean_Parser_categoryParserFnImpl___closed__4;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_4 = 1;
|
||||
x_5 = l_Lean_Parser_Syntax_try;
|
||||
x_6 = lean_unsigned_to_nat(0u);
|
||||
|
|
@ -5810,8 +5802,8 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_formatter___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = 1;
|
||||
x_4 = lean_box(x_3);
|
||||
x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3);
|
||||
|
|
@ -5847,7 +5839,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_formatter___closed__4() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Syntax_try_formatter___closed__3;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
|
|
@ -5880,7 +5872,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_formatterAttribute;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_4 = l___regBuiltin_Lean_Parser_Syntax_try_formatter___closed__1;
|
||||
x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -5890,8 +5882,8 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_parenthesizer___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__3;
|
||||
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
|
||||
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = 1;
|
||||
x_4 = lean_box(x_3);
|
||||
x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___boxed), 8, 3);
|
||||
|
|
@ -5930,7 +5922,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_parenthesizer___closed__4() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Syntax_try_parenthesizer___closed__3;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3);
|
||||
|
|
@ -5963,7 +5955,7 @@ _start:
|
|||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
|
||||
x_3 = l_Lean_Parser_Syntax_try___elambda__1___closed__1;
|
||||
x_4 = l___regBuiltin_Lean_Parser_Syntax_try_parenthesizer___closed__1;
|
||||
x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -19789,8 +19781,6 @@ l_Lean_Parser_Syntax_try___elambda__1___closed__6 = _init_l_Lean_Parser_Syntax_t
|
|||
lean_mark_persistent(l_Lean_Parser_Syntax_try___elambda__1___closed__6);
|
||||
l_Lean_Parser_Syntax_try___elambda__1___closed__7 = _init_l_Lean_Parser_Syntax_try___elambda__1___closed__7();
|
||||
lean_mark_persistent(l_Lean_Parser_Syntax_try___elambda__1___closed__7);
|
||||
l_Lean_Parser_Syntax_try___elambda__1___closed__8 = _init_l_Lean_Parser_Syntax_try___elambda__1___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Syntax_try___elambda__1___closed__8);
|
||||
l_Lean_Parser_Syntax_try___closed__1 = _init_l_Lean_Parser_Syntax_try___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Syntax_try___closed__1);
|
||||
l_Lean_Parser_Syntax_try___closed__2 = _init_l_Lean_Parser_Syntax_try___closed__2();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue