chore: update stage0
This commit is contained in:
parent
ce76ad44ea
commit
74f732f4cb
37 changed files with 10382 additions and 6648 deletions
1
stage0/src/Init.lean
generated
1
stage0/src/Init.lean
generated
|
|
@ -10,6 +10,7 @@ import Init.Core
|
|||
import Init.Control
|
||||
import Init.Data.Basic
|
||||
import Init.WF
|
||||
import Init.WFTactics
|
||||
import Init.Data
|
||||
import Init.System
|
||||
import Init.Util
|
||||
|
|
|
|||
71
stage0/src/Init/Data/Array/Basic.lean
generated
71
stage0/src/Init/Data/Array/Basic.lean
generated
|
|
@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Authors: Leonardo de Moura
|
||||
-/
|
||||
prelude
|
||||
import Init.WFTactics
|
||||
import Init.Data.Nat.Basic
|
||||
import Init.Data.Fin.Basic
|
||||
import Init.Data.UInt
|
||||
|
|
@ -431,16 +432,16 @@ def contains [BEq α] (as : Array α) (a : α) : Bool :=
|
|||
def elem [BEq α] (a : α) (as : Array α) : Bool :=
|
||||
as.contains a
|
||||
|
||||
-- TODO(Leo): justify termination using wf-rec, and use `swap`
|
||||
partial def reverse (as : Array α) : Array α :=
|
||||
def reverse (as : Array α) : Array α :=
|
||||
let n := as.size
|
||||
let mid := n / 2
|
||||
let rec rev (as : Array α) (i : Nat) :=
|
||||
if i < mid then
|
||||
if h : i < mid then
|
||||
rev (as.swap! i (n - i - 1)) (i+1)
|
||||
else
|
||||
as
|
||||
rev as 0
|
||||
termination_by measure fun ⟨_, _, mid, as, i⟩ => mid - i
|
||||
|
||||
@[inline] def getEvenElems (as : Array α) : Array α :=
|
||||
(·.2) <| as.foldl (init := (true, Array.empty)) fun (even, r) a =>
|
||||
|
|
@ -495,7 +496,7 @@ namespace Array
|
|||
|
||||
-- TODO(Leo): cleanup
|
||||
@[specialize]
|
||||
partial def isEqvAux (a b : Array α) (hsz : a.size = b.size) (p : α → α → Bool) (i : Nat) : Bool :=
|
||||
def isEqvAux (a b : Array α) (hsz : a.size = b.size) (p : α → α → Bool) (i : Nat) : Bool :=
|
||||
if h : i < a.size then
|
||||
let aidx : Fin a.size := ⟨i, h⟩;
|
||||
let bidx : Fin b.size := ⟨i, hsz ▸ h⟩;
|
||||
|
|
@ -504,6 +505,7 @@ partial def isEqvAux (a b : Array α) (hsz : a.size = b.size) (p : α → α →
|
|||
| false => false
|
||||
else
|
||||
true
|
||||
termination_by measure fun ⟨_, a, _, _, _, i⟩ => a.size - i
|
||||
|
||||
@[inline] def isEqv (a b : Array α) (p : α → α → Bool) : Bool :=
|
||||
if h : a.size = b.size then
|
||||
|
|
@ -601,32 +603,18 @@ end Array
|
|||
-- CLEANUP the following code
|
||||
namespace Array
|
||||
|
||||
partial def indexOfAux [BEq α] (a : Array α) (v : α) : Nat → Option (Fin a.size)
|
||||
def indexOfAux [BEq α] (a : Array α) (v : α) : Nat → Option (Fin a.size)
|
||||
| i =>
|
||||
if h : i < a.size then
|
||||
let idx : Fin a.size := ⟨i, h⟩;
|
||||
if a.get idx == v then some idx
|
||||
else indexOfAux a v (i+1)
|
||||
else none
|
||||
termination_by measure fun ⟨_, _, a, _, i⟩ => a.size - i
|
||||
|
||||
def indexOf? [BEq α] (a : Array α) (v : α) : Option (Fin a.size) :=
|
||||
indexOfAux a v 0
|
||||
|
||||
partial def eraseIdxAux : Nat → Array α → Array α
|
||||
| i, a =>
|
||||
if h : i < a.size then
|
||||
let idx : Fin a.size := ⟨i, h⟩;
|
||||
let idx1 : Fin a.size := ⟨i - 1, by exact Nat.lt_of_le_of_lt (Nat.pred_le i) h⟩;
|
||||
eraseIdxAux (i+1) (a.swap idx idx1)
|
||||
else
|
||||
a.pop
|
||||
|
||||
def feraseIdx (a : Array α) (i : Fin a.size) : Array α :=
|
||||
eraseIdxAux (i.val + 1) a
|
||||
|
||||
def eraseIdx (a : Array α) (i : Nat) : Array α :=
|
||||
if i < a.size then eraseIdxAux (i+1) a else a
|
||||
|
||||
@[simp] theorem size_swap (a : Array α) (i j : Fin a.size) : (a.swap i j).size = a.size := by
|
||||
show ((a.set i (a.get j)).set (size_set a i _ ▸ j) (a.get i)).size = a.size
|
||||
rw [size_set, size_set]
|
||||
|
|
@ -634,13 +622,25 @@ def eraseIdx (a : Array α) (i : Nat) : Array α :=
|
|||
@[simp] theorem size_pop (a : Array α) : a.pop.size = a.size - 1 :=
|
||||
List.length_dropLast ..
|
||||
|
||||
section
|
||||
/- Instance for justifying `partial` declaration.
|
||||
We should be able to delete it as soon as we restore support for well-founded recursion. -/
|
||||
instance eraseIdxSzAuxInstance (a : Array α) : Inhabited { r : Array α // r.size = a.size - 1 } where
|
||||
default := ⟨a.pop, size_pop a⟩
|
||||
def eraseIdxAux : Nat → Array α → Array α
|
||||
| i, a =>
|
||||
if h : i < a.size then
|
||||
let idx : Fin a.size := ⟨i, h⟩;
|
||||
let idx1 : Fin a.size := ⟨i - 1, by exact Nat.lt_of_le_of_lt (Nat.pred_le i) h⟩;
|
||||
let a' := a.swap idx idx1
|
||||
have : a'.size - (i+1) < a.size - i := by rw [size_swap]; apply Nat.sub_succ_lt_self; assumption
|
||||
eraseIdxAux (i+1) a'
|
||||
else
|
||||
a.pop
|
||||
termination_by measure fun ⟨_, i, a⟩ => a.size - i
|
||||
|
||||
partial def eraseIdxSzAux (a : Array α) : ∀ (i : Nat) (r : Array α), r.size = a.size → { r : Array α // r.size = a.size - 1 }
|
||||
def feraseIdx (a : Array α) (i : Fin a.size) : Array α :=
|
||||
eraseIdxAux (i.val + 1) a
|
||||
|
||||
def eraseIdx (a : Array α) (i : Nat) : Array α :=
|
||||
if i < a.size then eraseIdxAux (i+1) a else a
|
||||
|
||||
def eraseIdxSzAux (a : Array α) : ∀ (i : Nat) (r : Array α), r.size = a.size → { r : Array α // r.size = a.size - 1 }
|
||||
| i, r, heq =>
|
||||
if h : i < r.size then
|
||||
let idx : Fin r.size := ⟨i, h⟩;
|
||||
|
|
@ -648,7 +648,7 @@ partial def eraseIdxSzAux (a : Array α) : ∀ (i : Nat) (r : Array α), r.size
|
|||
eraseIdxSzAux a (i+1) (r.swap idx idx1) ((size_swap r idx idx1).trans heq)
|
||||
else
|
||||
⟨r.pop, (size_pop r).trans (heq ▸ rfl)⟩
|
||||
end
|
||||
termination_by measure fun ⟨_, _, i, r, _⟩ => r.size - i
|
||||
|
||||
def eraseIdx' (a : Array α) (i : Fin a.size) : { r : Array α // r.size = a.size - 1 } :=
|
||||
eraseIdxSzAux a (i.val + 1) a rfl
|
||||
|
|
@ -658,12 +658,14 @@ def erase [BEq α] (as : Array α) (a : α) : Array α :=
|
|||
| none => as
|
||||
| some i => as.feraseIdx i
|
||||
|
||||
partial def insertAtAux (i : Nat) : Array α → Nat → Array α
|
||||
def insertAtAux (i : Nat) : Array α → Nat → Array α
|
||||
| as, j =>
|
||||
if i == j then as
|
||||
else
|
||||
if h : i < j then
|
||||
let as := as.swap! (j-1) j;
|
||||
insertAtAux i as (j-1)
|
||||
else
|
||||
as
|
||||
termination_by measure fun ⟨_, _, _, j⟩ => j
|
||||
|
||||
/--
|
||||
Insert element `a` at position `i`.
|
||||
|
|
@ -722,7 +724,7 @@ theorem toArrayLit_eq (a : Array α) (n : Nat) (hsz : a.size = n) : a = toArrayL
|
|||
Then using Array.extLit, we have that a = List.toArray <| toListLitAux a n hsz n _ []
|
||||
-/
|
||||
|
||||
partial def isPrefixOfAux [BEq α] (as bs : Array α) (hle : as.size ≤ bs.size) : Nat → Bool
|
||||
def isPrefixOfAux [BEq α] (as bs : Array α) (hle : as.size ≤ bs.size) : Nat → Bool
|
||||
| i =>
|
||||
if h : i < as.size then
|
||||
let a := as.get ⟨i, h⟩;
|
||||
|
|
@ -733,6 +735,7 @@ partial def isPrefixOfAux [BEq α] (as bs : Array α) (hle : as.size ≤ bs.size
|
|||
false
|
||||
else
|
||||
true
|
||||
termination_by measure fun ⟨_, _, as, _, _, i⟩ => as.size - i
|
||||
|
||||
/- Return true iff `as` is a prefix of `bs` -/
|
||||
def isPrefixOf [BEq α] (as bs : Array α) : Bool :=
|
||||
|
|
@ -747,17 +750,18 @@ private def allDiffAuxAux [BEq α] (as : Array α) (a : α) : forall (i : Nat),
|
|||
have : i < as.size := Nat.lt_trans (Nat.lt_succ_self _) h;
|
||||
a != as.get ⟨i, this⟩ && allDiffAuxAux as a i this
|
||||
|
||||
private partial def allDiffAux [BEq α] (as : Array α) : Nat → Bool
|
||||
private def allDiffAux [BEq α] (as : Array α) : Nat → Bool
|
||||
| i =>
|
||||
if h : i < as.size then
|
||||
allDiffAuxAux as (as.get ⟨i, h⟩) i h && allDiffAux as (i+1)
|
||||
else
|
||||
true
|
||||
termination_by measure fun ⟨_, _, as, i⟩ => as.size - i
|
||||
|
||||
def allDiff [BEq α] (as : Array α) : Bool :=
|
||||
allDiffAux as 0
|
||||
|
||||
@[specialize] partial def zipWithAux (f : α → β → γ) (as : Array α) (bs : Array β) : Nat → Array γ → Array γ
|
||||
@[specialize] def zipWithAux (f : α → β → γ) (as : Array α) (bs : Array β) : Nat → Array γ → Array γ
|
||||
| i, cs =>
|
||||
if h : i < as.size then
|
||||
let a := as.get ⟨i, h⟩;
|
||||
|
|
@ -768,6 +772,7 @@ def allDiff [BEq α] (as : Array α) : Bool :=
|
|||
cs
|
||||
else
|
||||
cs
|
||||
termination_by measure fun ⟨_, _, _, _, as, _, i, _⟩ => as.size - i
|
||||
|
||||
@[inline] def zipWith (as : Array α) (bs : Array β) (f : α → β → γ) : Array γ :=
|
||||
zipWithAux f as bs 0 #[]
|
||||
|
|
|
|||
18
stage0/src/Init/Data/Array/BinSearch.lean
generated
18
stage0/src/Init/Data/Array/BinSearch.lean
generated
|
|
@ -16,12 +16,12 @@ namespace Array
|
|||
@[specialize] partial def binSearchAux {α : Type u} {β : Type v} [Inhabited α] [Inhabited β] (lt : α → α → Bool) (found : Option α → β) (as : Array α) (k : α) : Nat → Nat → β
|
||||
| lo, hi =>
|
||||
if lo <= hi then
|
||||
let m := (lo + hi)/2;
|
||||
let a := as.get! m;
|
||||
if lt a k then binSearchAux lt found as k (m+1) hi
|
||||
let m := (lo + hi)/2
|
||||
let a := as.get! m
|
||||
if lt a k then binSearchAux lt found as k (m+1) hi
|
||||
else if lt k a then
|
||||
if m == 0 then found none
|
||||
else binSearchAux lt found as k lo (m-1)
|
||||
else binSearchAux lt found as k lo (m-1)
|
||||
else found (some a)
|
||||
else found none
|
||||
|
||||
|
|
@ -47,17 +47,17 @@ namespace Array
|
|||
(k : α) : Nat → Nat → m (Array α)
|
||||
| lo, hi =>
|
||||
-- as[lo] < k < as[hi]
|
||||
let mid := (lo + hi)/2;
|
||||
let midVal := as.get! mid;
|
||||
let mid := (lo + hi)/2
|
||||
let midVal := as.get! mid
|
||||
if lt midVal k then
|
||||
if mid == lo then do let v ← add (); pure <| as.insertAt (lo+1) v
|
||||
else binInsertAux lt merge add as k mid hi
|
||||
else binInsertAux lt merge add as k mid hi
|
||||
else if lt k midVal then
|
||||
binInsertAux lt merge add as k lo mid
|
||||
binInsertAux lt merge add as k lo mid
|
||||
else do
|
||||
as.modifyM mid <| fun v => merge v
|
||||
|
||||
@[specialize] partial def binInsertM {α : Type u} {m : Type u → Type v} [Monad m] [Inhabited α]
|
||||
@[specialize] def binInsertM {α : Type u} {m : Type u → Type v} [Monad m] [Inhabited α]
|
||||
(lt : α → α → Bool)
|
||||
(merge : α → m α)
|
||||
(add : Unit → m α)
|
||||
|
|
|
|||
41
stage0/src/Init/Data/Array/QSort.lean
generated
41
stage0/src/Init/Data/Array/QSort.lean
generated
|
|
@ -10,34 +10,35 @@ namespace Array
|
|||
-- TODO: remove the [Inhabited α] parameters as soon as we have the tactic framework for automating proof generation and using Array.fget
|
||||
-- TODO: remove `partial` using well-founded recursion
|
||||
|
||||
@[inline] partial def qpartition {α : Type} [Inhabited α] (as : Array α) (lt : α → α → Bool) (lo hi : Nat) : Nat × Array α :=
|
||||
let mid := (lo + hi) / 2;
|
||||
let as := if lt (as.get! mid) (as.get! lo) then as.swap! lo mid else as
|
||||
let as := if lt (as.get! hi) (as.get! lo) then as.swap! lo hi else as
|
||||
let as := if lt (as.get! mid) (as.get! hi) then as.swap! mid hi else as
|
||||
let pivot := as.get! hi
|
||||
let rec loop (as : Array α) (i j : Nat) :=
|
||||
if j < hi then
|
||||
if lt (as.get! j) pivot then
|
||||
let as := as.swap! i j;
|
||||
loop as (i+1) (j+1)
|
||||
@[inline] def qpartition {α : Type} [Inhabited α] (as : Array α) (lt : α → α → Bool) (lo hi : Nat) : Nat × Array α :=
|
||||
let mid := (lo + hi) / 2
|
||||
let as := if lt (as.get! mid) (as.get! lo) then as.swap! lo mid else as
|
||||
let as := if lt (as.get! hi) (as.get! lo) then as.swap! lo hi else as
|
||||
let as := if lt (as.get! mid) (as.get! hi) then as.swap! mid hi else as
|
||||
let pivot := as.get! hi
|
||||
let rec loop (as : Array α) (i j : Nat) :=
|
||||
if h : j < hi then
|
||||
if lt (as.get! j) pivot then
|
||||
let as := as.swap! i j
|
||||
loop as (i+1) (j+1)
|
||||
else
|
||||
loop as i (j+1)
|
||||
else
|
||||
loop as i (j+1)
|
||||
else
|
||||
let as := as.swap! i hi;
|
||||
(i, as)
|
||||
loop as lo lo
|
||||
let as := as.swap! i hi
|
||||
(i, as)
|
||||
loop as lo lo
|
||||
termination_by measure fun ⟨_, _, _, hi, _, _, _, j⟩ => hi - j
|
||||
|
||||
@[inline] partial def qsort {α : Type} [Inhabited α] (as : Array α) (lt : α → α → Bool) (low := 0) (high := as.size - 1) : Array α :=
|
||||
let rec @[specialize] sort (as : Array α) (low high : Nat) :=
|
||||
if low < high then
|
||||
let p := qpartition as lt low high;
|
||||
let p := qpartition as lt low high;
|
||||
-- TODO: fix `partial` support in the equation compiler, it breaks if we use `let (mid, as) := partition as lt low high`
|
||||
let mid := p.1;
|
||||
let as := p.2;
|
||||
let mid := p.1
|
||||
let as := p.2
|
||||
if mid >= high then as
|
||||
else
|
||||
let as := sort as low mid;
|
||||
let as := sort as low mid
|
||||
sort as (mid+1) high
|
||||
else as
|
||||
sort as low high
|
||||
|
|
|
|||
9
stage0/src/Init/Data/Nat/Basic.lean
generated
9
stage0/src/Init/Data/Nat/Basic.lean
generated
|
|
@ -406,11 +406,14 @@ protected def max (n m : Nat) : Nat :=
|
|||
if n ≤ m then m else n
|
||||
|
||||
/- Auxiliary theorems for well-founded recursion -/
|
||||
theorem not_eq_zero_of_pos (h : 0 < a) : a ≠ 0 := by
|
||||
theorem not_eq_zero_of_lt (h : b < a) : a ≠ 0 := by
|
||||
cases a
|
||||
contradiction
|
||||
exact absurd h (Nat.not_lt_zero _)
|
||||
apply Nat.noConfusion
|
||||
|
||||
theorem pred_lt' {n m : Nat} (h : m < n) : pred n < n :=
|
||||
pred_lt (not_eq_zero_of_lt h)
|
||||
|
||||
theorem add_sub_self_left (a b : Nat) : (a + b) - a = b := by
|
||||
induction a with
|
||||
| zero => simp
|
||||
|
|
@ -439,7 +442,7 @@ theorem zero_lt_sub_of_lt (h : i < a) : 0 < a - i := by
|
|||
theorem sub_succ_lt_self (a i : Nat) (h : i < a) : a - (i + 1) < a - i := by
|
||||
rw [Nat.add_succ, Nat.sub_succ]
|
||||
apply Nat.pred_lt
|
||||
apply Nat.not_eq_zero_of_pos
|
||||
apply Nat.not_eq_zero_of_lt
|
||||
apply Nat.zero_lt_sub_of_lt
|
||||
assumption
|
||||
|
||||
|
|
|
|||
13
stage0/src/Init/Meta.lean
generated
13
stage0/src/Init/Meta.lean
generated
|
|
@ -1030,16 +1030,3 @@ macro "erw " s:rwRuleSeq loc:(location)? : tactic =>
|
|||
end Parser.Tactic
|
||||
|
||||
end Lean
|
||||
|
||||
macro "default_decreasing_tactic" : tactic =>
|
||||
`((simp [invImage, InvImage, Prod.lex, sizeOfWFRel, measure, Nat.lt_wfRel];
|
||||
repeat (first | apply Prod.Lex.right | apply Prod.Lex.left)
|
||||
first
|
||||
| apply Nat.lt_succ_self -- i < i+1
|
||||
| decide -- e.g., 0 < 1
|
||||
| apply Nat.pred_lt; assumption -- i-1 < i if i ≠ 0
|
||||
| apply Nat.sub_succ_lt_self; assumption -- a - (i+1) < a - i if i < a
|
||||
| assumption
|
||||
-- TODO: linearith
|
||||
-- TODO: improve
|
||||
))
|
||||
|
|
|
|||
6
stage0/src/Init/WF.lean
generated
6
stage0/src/Init/WF.lean
generated
|
|
@ -264,8 +264,10 @@ def lexAccessible {a} (aca : Acc r a) (acb : (a : α) → WellFounded (s a)) (b
|
|||
| right => apply ihb; assumption
|
||||
|
||||
-- The lexicographical order of well founded relations is well-founded
|
||||
def lex (ha : WellFounded r) (hb : (x : α) → WellFounded (s x)) : WellFounded (Lex r s) :=
|
||||
WellFounded.intro fun ⟨a, b⟩ => lexAccessible (WellFounded.apply ha a) hb b
|
||||
def lex (ha : WellFoundedRelation α) (hb : (a : α) → WellFoundedRelation (β a)) : WellFoundedRelation (PSigma β) where
|
||||
rel := Lex ha.rel (fun a => hb a |>.rel)
|
||||
wf := WellFounded.intro fun ⟨a, b⟩ => lexAccessible (WellFounded.apply ha.wf a) (fun a => hb a |>.wf) b
|
||||
|
||||
end
|
||||
|
||||
section
|
||||
|
|
|
|||
38
stage0/src/Init/WFTactics.lean
generated
Normal file
38
stage0/src/Init/WFTactics.lean
generated
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/-
|
||||
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Author: Leonardo de Moura
|
||||
-/
|
||||
prelude
|
||||
import Init.SizeOf
|
||||
import Init.WF
|
||||
|
||||
macro "default_decreasing_tactic" : tactic =>
|
||||
`((simp [invImage, InvImage, Prod.lex, sizeOfWFRel, measure, Nat.lt_wfRel];
|
||||
repeat (first | apply Prod.Lex.right | apply Prod.Lex.left)
|
||||
repeat (first | apply PSigma.Lex.right | apply PSigma.Lex.left)
|
||||
first
|
||||
| apply Nat.lt_succ_self -- i < i+1
|
||||
| decide -- e.g., 0 < 1
|
||||
| apply Nat.pred_lt; assumption -- i-1 < i if i ≠ 0
|
||||
| apply Nat.pred_lt'; assumption -- i-1 < i if j < i
|
||||
| apply Nat.sub_succ_lt_self; assumption -- a - (i+1) < a - i if i < a
|
||||
| assumption
|
||||
-- TODO: linearith
|
||||
-- TODO: improve
|
||||
))
|
||||
|
||||
macro "decreasing_tactic" : tactic =>
|
||||
`((simp [invImage, InvImage, Prod.lex, sizeOfWFRel, measure, Nat.lt_wfRel];
|
||||
repeat (first | apply Prod.Lex.right | apply Prod.Lex.left)
|
||||
repeat (first | apply PSigma.Lex.right | apply PSigma.Lex.left)
|
||||
first
|
||||
| apply Nat.lt_succ_self -- i < i+1
|
||||
| decide -- e.g., 0 < 1
|
||||
| apply Nat.pred_lt; assumption -- i-1 < i if i ≠ 0
|
||||
| apply Nat.pred_lt'; assumption -- i-1 < i if j < i
|
||||
| apply Nat.sub_succ_lt_self; assumption -- a - (i+1) < a - i if i < a
|
||||
| assumption
|
||||
-- TODO: linearith
|
||||
-- TODO: improve
|
||||
))
|
||||
3
stage0/src/Lean/Elab/Deriving/Basic.lean
generated
3
stage0/src/Lean/Elab/Deriving/Basic.lean
generated
|
|
@ -15,8 +15,7 @@ def DerivingHandlerNoArgs := (typeNames : Array Name) → CommandElabM Bool
|
|||
builtin_initialize derivingHandlersRef : IO.Ref (NameMap DerivingHandler) ← IO.mkRef {}
|
||||
|
||||
def registerBuiltinDerivingHandlerWithArgs (className : Name) (handler : DerivingHandler) : IO Unit := do
|
||||
let initializing ← IO.initializing
|
||||
unless initializing do
|
||||
unless (← initializing) do
|
||||
throw (IO.userError "failed to register deriving handler, it can only be registered during initialization")
|
||||
if (← derivingHandlersRef.get).contains className then
|
||||
throw (IO.userError s!"failed to register deriving handler, a handler has already been registered for '{className}'")
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/MutualDef.lean
generated
2
stage0/src/Lean/Elab/MutualDef.lean
generated
|
|
@ -641,7 +641,7 @@ private def levelMVarToParamHeaders (views : Array DefView) (headers : Array Def
|
|||
else
|
||||
newHeaders := newHeaders.push header
|
||||
return newHeaders
|
||||
let newHeaders ← process.run' 1
|
||||
let newHeaders ← (process).run' 1
|
||||
newHeaders.mapM fun header => return { header with type := (← instantiateMVars header.type) }
|
||||
|
||||
/-- Result for `mkInst?` -/
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean
generated
2
stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean
generated
|
|
@ -53,7 +53,7 @@ private partial def replaceRecApps (recFnName : Name) (decrTactic? : Option Synt
|
|||
let processApp (e : Expr) : TermElabM Expr :=
|
||||
e.withApp fun f args => do
|
||||
if f.isConstOf recFnName && args.size == 1 then
|
||||
let r := mkApp F args[0]
|
||||
let r := mkApp F (← loop F args[0])
|
||||
let decreasingProp := (← whnf (← inferType r)).bindingDomain!
|
||||
return mkApp r (← mkDecreasingProof decreasingProp decrTactic?)
|
||||
else
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/PreDefinition/WF/Main.lean
generated
2
stage0/src/Lean/Elab/PreDefinition/WF/Main.lean
generated
|
|
@ -58,7 +58,7 @@ def wfRecursion (preDefs : Array PreDefinition) (wfStx? : Option Syntax) (decrTa
|
|||
addAsAxiom unaryPreDef
|
||||
mkFix unaryPreDef wfRel decrTactic?
|
||||
let preDefNonRec ← eraseRecAppSyntax preDefNonRec
|
||||
trace[Elab.definition.wf] ">> {preDefNonRec.declName}"
|
||||
trace[Elab.definition.wf] ">> {preDefNonRec.declName} :=\n{preDefNonRec.value}"
|
||||
let preDefs ← preDefs.mapM fun d => eraseRecAppSyntax d
|
||||
addNonRec preDefNonRec
|
||||
addNonRecPreDefs preDefs preDefNonRec
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
2
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
|
|
@ -140,7 +140,7 @@ partial def mkElimApp (elimName : Name) (elimInfo : ElimInfo) (targets : Array E
|
|||
pure ()
|
||||
let f ← Term.mkConst elimName
|
||||
let fType ← inferType f
|
||||
let (_, s) ← loop.run { elimInfo := elimInfo, targets := targets } |>.run { f := f, fType := fType }
|
||||
let (_, s) ← (loop).run { elimInfo := elimInfo, targets := targets } |>.run { f := f, fType := fType }
|
||||
let mut others := #[]
|
||||
for mvarId in s.insts do
|
||||
try
|
||||
|
|
|
|||
3
stage0/src/Lean/Parser/Command.lean
generated
3
stage0/src/Lean/Parser/Command.lean
generated
|
|
@ -31,9 +31,10 @@ def terminationHint1 (p : Parser) := leading_parser p
|
|||
def terminationHint (p : Parser) := terminationHintMany p <|> terminationHint1 p
|
||||
|
||||
def terminationBy := leading_parser "termination_by " >> terminationHint termParser
|
||||
def terminationByCore := leading_parser "termination_by' " >> terminationHint termParser
|
||||
def decreasingBy := leading_parser "decreasing_by " >> terminationHint Tactic.tacticSeq
|
||||
|
||||
def terminationSuffix := optional terminationBy >> optional decreasingBy
|
||||
def terminationSuffix := optional (terminationBy <|> terminationByCore) >> optional decreasingBy
|
||||
|
||||
@[builtinCommandParser]
|
||||
def moduleDoc := leading_parser ppDedent $ "/-!" >> commentBody >> ppLine
|
||||
|
|
|
|||
|
|
@ -521,8 +521,8 @@ def delabLam : Delab :=
|
|||
if !blockImplicitLambda then
|
||||
pure stxBody
|
||||
else
|
||||
let group ← match e.binderInfo, ppTypes with
|
||||
| BinderInfo.default, true =>
|
||||
let defaultCase (_ : Unit) : Delab := do
|
||||
if ppTypes then
|
||||
-- "default" binder group is the only one that expects binder names
|
||||
-- as a term, i.e. a single `Syntax.ident` or an application thereof
|
||||
let stxCurNames ←
|
||||
|
|
@ -531,7 +531,11 @@ def delabLam : Delab :=
|
|||
else
|
||||
pure $ curNames.get! 0;
|
||||
`(funBinder| ($stxCurNames : $stxT))
|
||||
| BinderInfo.default, false => pure curNames.back -- here `curNames.size == 1`
|
||||
else
|
||||
pure curNames.back -- here `curNames.size == 1`
|
||||
let group ← match e.binderInfo, ppTypes with
|
||||
| BinderInfo.default, _ => defaultCase ()
|
||||
| BinderInfo.auxDecl, _ => defaultCase ()
|
||||
| BinderInfo.implicit, true => `(funBinder| {$curNames* : $stxT})
|
||||
| BinderInfo.implicit, false => `(funBinder| {$curNames*})
|
||||
| BinderInfo.strictImplicit, true => `(funBinder| ⦃$curNames* : $stxT⦄)
|
||||
|
|
@ -539,7 +543,6 @@ def delabLam : Delab :=
|
|||
| BinderInfo.instImplicit, _ =>
|
||||
if usedDownstream then `(funBinder| [$curNames.back : $stxT]) -- here `curNames.size == 1`
|
||||
else `(funBinder| [$stxT])
|
||||
| _ , _ => unreachable!;
|
||||
match stxBody with
|
||||
| `(fun $binderGroups* => $stxBody) => `(fun $group $binderGroups* => $stxBody)
|
||||
| _ => `(fun $group => $stxBody)
|
||||
|
|
|
|||
8
stage0/src/shell/CMakeLists.txt
generated
8
stage0/src/shell/CMakeLists.txt
generated
|
|
@ -182,6 +182,14 @@ add_test(NAME leanpkgtest_user_attr
|
|||
find . -name '*.olean' -delete
|
||||
leanmake")
|
||||
|
||||
add_test(NAME leanpkgtest_user_deriving
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/leanpkg/deriving"
|
||||
COMMAND bash -c "
|
||||
set -eu
|
||||
export ${TEST_VARS}
|
||||
find . -name '*.olean' -delete
|
||||
leanmake")
|
||||
|
||||
add_test(NAME leanpkgtest_user_opt
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/leanpkg/user_opt"
|
||||
COMMAND bash -c "
|
||||
|
|
|
|||
6
stage0/stdlib/Init.c
generated
6
stage0/stdlib/Init.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init
|
||||
// Imports: Init.Prelude Init.Notation Init.Core Init.Control Init.Data.Basic Init.WF Init.Data Init.System Init.Util Init.Fix Init.Meta Init.NotationExtra Init.SimpLemmas Init.Hints Init.Conv
|
||||
// Imports: Init.Prelude Init.Notation Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Fix Init.Meta Init.NotationExtra Init.SimpLemmas Init.Hints Init.Conv
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -19,6 +19,7 @@ lean_object* initialize_Init_Core(lean_object*);
|
|||
lean_object* initialize_Init_Control(lean_object*);
|
||||
lean_object* initialize_Init_Data_Basic(lean_object*);
|
||||
lean_object* initialize_Init_WF(lean_object*);
|
||||
lean_object* initialize_Init_WFTactics(lean_object*);
|
||||
lean_object* initialize_Init_Data(lean_object*);
|
||||
lean_object* initialize_Init_System(lean_object*);
|
||||
lean_object* initialize_Init_Util(lean_object*);
|
||||
|
|
@ -51,6 +52,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Init_WF(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_WFTactics(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
50
stage0/stdlib/Init/Data/Array/Basic.c
generated
50
stage0/stdlib/Init/Data/Array/Basic.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data.Array.Basic
|
||||
// Imports: Init.Data.Nat.Basic Init.Data.Fin.Basic Init.Data.UInt Init.Data.Repr Init.Data.ToString.Basic Init.Util
|
||||
// Imports: Init.WFTactics Init.Data.Nat.Basic Init.Data.Fin.Basic Init.Data.UInt Init.Data.Repr Init.Data.ToString.Basic Init.Util
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -90,7 +90,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSome_x21___spec
|
|||
LEAN_EXPORT lean_object* l_Array_modifyOp(lean_object*);
|
||||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Array_modifyM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAuxInstance___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_instForInArray___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_uget___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -498,7 +497,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMapM___spec_
|
|||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__17;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findIdxM_x3f___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMapM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAuxInstance(lean_object*);
|
||||
static lean_object* l_Array_instReprArray___rarg___closed__1;
|
||||
lean_object* lean_string_length(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -946,7 +944,7 @@ x_9 = l_Array_swapAt_x21___rarg___closed__2;
|
|||
x_10 = lean_string_append(x_8, x_9);
|
||||
x_11 = l_Array_swapAt_x21___rarg___closed__3;
|
||||
x_12 = l_Array_swapAt_x21___rarg___closed__4;
|
||||
x_13 = lean_unsigned_to_nat(94u);
|
||||
x_13 = lean_unsigned_to_nat(95u);
|
||||
x_14 = lean_unsigned_to_nat(4u);
|
||||
x_15 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_11, x_12, x_13, x_14, x_10);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -5348,7 +5346,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_Array_swapAt_x21___rarg___closed__3;
|
||||
x_2 = l_Array_findSome_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(386u);
|
||||
x_3 = lean_unsigned_to_nat(387u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Array_findSome_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -8835,12 +8833,12 @@ else
|
|||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_unsigned_to_nat(1u);
|
||||
x_7 = lean_nat_sub(x_1, x_6);
|
||||
x_8 = lean_nat_add(x_1, x_6);
|
||||
x_9 = lean_array_fswap(x_2, x_1, x_7);
|
||||
x_8 = lean_array_fswap(x_2, x_1, x_7);
|
||||
lean_dec(x_7);
|
||||
x_9 = lean_nat_add(x_1, x_6);
|
||||
lean_dec(x_1);
|
||||
x_1 = x_8;
|
||||
x_2 = x_9;
|
||||
x_1 = x_9;
|
||||
x_2 = x_8;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
|
|
@ -8918,22 +8916,6 @@ lean_dec(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAuxInstance___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_array_pop(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAuxInstance(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_eraseIdxSzAuxInstance___rarg), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -9044,9 +9026,14 @@ LEAN_EXPORT lean_object* l_Array_insertAtAux___rarg(lean_object* x_1, lean_objec
|
|||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_nat_dec_eq(x_1, x_3);
|
||||
x_4 = lean_nat_dec_lt(x_1, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_dec(x_3);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_unsigned_to_nat(1u);
|
||||
x_6 = lean_nat_sub(x_3, x_5);
|
||||
|
|
@ -9056,11 +9043,6 @@ x_2 = x_7;
|
|||
x_3 = x_6;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_3);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_insertAtAux(lean_object* x_1) {
|
||||
|
|
@ -9119,7 +9101,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_Array_swapAt_x21___rarg___closed__3;
|
||||
x_2 = l_Array_insertAt___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(672u);
|
||||
x_3 = lean_unsigned_to_nat(674u);
|
||||
x_4 = lean_unsigned_to_nat(22u);
|
||||
x_5 = l_Array_insertAt___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -9981,6 +9963,7 @@ lean_dec(x_2);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_WFTactics(lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Basic(lean_object*);
|
||||
lean_object* initialize_Init_Data_Fin_Basic(lean_object*);
|
||||
lean_object* initialize_Init_Data_UInt(lean_object*);
|
||||
|
|
@ -9992,6 +9975,9 @@ LEAN_EXPORT lean_object* initialize_Init_Data_Array_Basic(lean_object* w) {
|
|||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init_WFTactics(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Basic(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
3044
stage0/stdlib/Init/Meta.c
generated
3044
stage0/stdlib/Init/Meta.c
generated
File diff suppressed because one or more lines are too long
49
stage0/stdlib/Init/Prelude.c
generated
49
stage0/stdlib/Init/Prelude.c
generated
|
|
@ -8211,38 +8211,39 @@ return x_4;
|
|||
LEAN_EXPORT lean_object* l_Lean_SourceInfo_fromRef(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
uint8_t x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = 0;
|
||||
x_3 = l_Lean_Syntax_getPos_x3f(x_1, x_2);
|
||||
lean_inc(x_1);
|
||||
x_3 = l_Lean_Syntax_getTailPos_x3f(x_1, x_2);
|
||||
x_4 = l_Lean_Syntax_getPos_x3f(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(2);
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(2);
|
||||
return x_4;
|
||||
lean_object* x_6;
|
||||
lean_dec(x_4);
|
||||
x_6 = lean_box(2);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_Syntax_getTailPos_x3f(x_1, x_2);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_box(2);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_4);
|
||||
x_8 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_5);
|
||||
lean_ctor_set(x_9, 0, x_7);
|
||||
lean_ctor_set(x_9, 1, x_8);
|
||||
return x_9;
|
||||
}
|
||||
|
|
|
|||
5750
stage0/stdlib/Init/WFTactics.c
generated
Normal file
5750
stage0/stdlib/Init/WFTactics.c
generated
Normal file
File diff suppressed because one or more lines are too long
2
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
2
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
|
|
@ -2850,7 +2850,7 @@ x_13 = l_Lean_IR_reshapeAux___closed__2;
|
|||
x_14 = lean_string_append(x_12, x_13);
|
||||
x_15 = l_Lean_IR_reshapeAux___closed__3;
|
||||
x_16 = l_Lean_IR_reshapeAux___closed__4;
|
||||
x_17 = lean_unsigned_to_nat(94u);
|
||||
x_17 = lean_unsigned_to_nat(95u);
|
||||
x_18 = lean_unsigned_to_nat(4u);
|
||||
x_19 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_15, x_16, x_17, x_18, x_14);
|
||||
lean_dec(x_14);
|
||||
|
|
|
|||
40
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
40
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
|
|
@ -13,6 +13,7 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_Lean_initializing(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__11(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_derivingHandlersRef;
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
|
|
@ -41,6 +42,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_elabDeriving_declRange___closed__4;
|
||||
lean_object* lean_environment_find(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1;
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__5;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs___closed__1;
|
||||
|
|
@ -54,7 +56,6 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*)
|
|||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__7___closed__2;
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1;
|
||||
lean_object* lean_string_append(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getOptDerivingClasses(lean_object*);
|
||||
|
|
@ -62,8 +63,8 @@ static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriv
|
|||
static lean_object* l_Lean_Elab_elabDeriving___lambda__2___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_elabDeriving_declRange___closed__2;
|
||||
static lean_object* l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2;
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2;
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -95,7 +96,7 @@ static lean_object* l_Lean_Elab_elabDeriving___closed__2;
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_22_(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_elabDeriving_declRange___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -158,11 +159,11 @@ lean_object* l_List_mapTRAux___at_Lean_Elab_Term_CollectPatternVars_collect_proc
|
|||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_elabDeriving___spec__2___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__5(size_t, size_t, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_elabDeriving___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__18(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_sequenceMap___at_Lean_Elab_elabDeriving___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_defaultHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3;
|
||||
static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__8___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__16(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_sequenceMap___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -187,7 +188,6 @@ LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving
|
|||
lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___closed__11;
|
||||
lean_object* lean_io_initializing(lean_object*);
|
||||
static lean_object* l_Lean_Elab_getOptDerivingClasses___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_elabDeriving___spec__10(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
|
||||
|
|
@ -394,7 +394,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs(lean
|
|||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; uint8_t x_6;
|
||||
x_4 = lean_io_initializing(x_3);
|
||||
x_4 = l_Lean_initializing(x_3);
|
||||
x_5 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_unbox(x_5);
|
||||
|
|
@ -4439,7 +4439,7 @@ return x_23;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -4449,7 +4449,7 @@ x_3 = lean_name_mk_string(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -4457,21 +4457,21 @@ x_1 = lean_mk_string("Deriving");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1;
|
||||
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2;
|
||||
x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1;
|
||||
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3;
|
||||
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -4604,13 +4604,13 @@ l_Lean_Elab_getOptDerivingClasses___rarg___closed__1 = _init_l_Lean_Elab_getOptD
|
|||
lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___rarg___closed__1);
|
||||
l_Lean_Elab_getOptDerivingClasses___rarg___closed__2 = _init_l_Lean_Elab_getOptDerivingClasses___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___rarg___closed__2);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__1);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__2);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491____closed__3);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1491_(lean_io_mk_world());
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__1);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__2);
|
||||
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494____closed__3);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1494_(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));
|
||||
|
|
|
|||
422
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
422
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
|
|
@ -1807,100 +1807,116 @@ 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_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
lean_dec(x_43);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_67 = l_Lean_instInhabitedExpr;
|
||||
x_68 = lean_unsigned_to_nat(0u);
|
||||
x_69 = lean_array_get(x_67, x_5, x_68);
|
||||
lean_dec(x_5);
|
||||
x_70 = l_Lean_mkApp(x_3, x_69);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_70);
|
||||
x_71 = lean_infer_type(x_70, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_70 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_70) == 0)
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_71, 0);
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_71 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_71);
|
||||
x_72 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_72);
|
||||
x_73 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_70);
|
||||
x_73 = l_Lean_mkApp(x_3, x_71);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
x_74 = lean_whnf(x_72, x_9, x_10, x_11, x_12, x_73);
|
||||
lean_inc(x_73);
|
||||
x_74 = lean_infer_type(x_73, x_9, x_10, x_11, x_12, x_72);
|
||||
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_75; lean_object* x_76; lean_object* x_77;
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_74);
|
||||
x_77 = l_Lean_Expr_bindingDomain_x21(x_75);
|
||||
lean_dec(x_75);
|
||||
x_78 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof(x_77, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_76);
|
||||
if (lean_obj_tag(x_78) == 0)
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
x_77 = lean_whnf(x_75, x_9, x_10, x_11, x_12, x_76);
|
||||
if (lean_obj_tag(x_77) == 0)
|
||||
{
|
||||
uint8_t x_79;
|
||||
x_79 = !lean_is_exclusive(x_78);
|
||||
if (x_79 == 0)
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81;
|
||||
x_80 = lean_ctor_get(x_78, 0);
|
||||
x_81 = l_Lean_mkApp(x_70, x_80);
|
||||
lean_ctor_set(x_78, 0, x_81);
|
||||
return x_78;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_82 = lean_ctor_get(x_78, 0);
|
||||
x_83 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_83);
|
||||
lean_inc(x_82);
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_78 = lean_ctor_get(x_77, 0);
|
||||
lean_inc(x_78);
|
||||
x_79 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_77);
|
||||
x_80 = l_Lean_Expr_bindingDomain_x21(x_78);
|
||||
lean_dec(x_78);
|
||||
x_84 = l_Lean_mkApp(x_70, x_82);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_83);
|
||||
return x_85;
|
||||
x_81 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof(x_80, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_79);
|
||||
if (lean_obj_tag(x_81) == 0)
|
||||
{
|
||||
uint8_t x_82;
|
||||
x_82 = !lean_is_exclusive(x_81);
|
||||
if (x_82 == 0)
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84;
|
||||
x_83 = lean_ctor_get(x_81, 0);
|
||||
x_84 = l_Lean_mkApp(x_73, x_83);
|
||||
lean_ctor_set(x_81, 0, x_84);
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_85 = lean_ctor_get(x_81, 0);
|
||||
x_86 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_81);
|
||||
x_87 = l_Lean_mkApp(x_73, x_85);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
lean_ctor_set(x_88, 1, x_86);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_86;
|
||||
lean_dec(x_70);
|
||||
x_86 = !lean_is_exclusive(x_78);
|
||||
if (x_86 == 0)
|
||||
uint8_t x_89;
|
||||
lean_dec(x_73);
|
||||
x_89 = !lean_is_exclusive(x_81);
|
||||
if (x_89 == 0)
|
||||
{
|
||||
return x_78;
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_78, 0);
|
||||
x_88 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_78);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_87);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_90 = lean_ctor_get(x_81, 0);
|
||||
x_91 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_90);
|
||||
lean_dec(x_81);
|
||||
x_92 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_92, 0, x_90);
|
||||
lean_ctor_set(x_92, 1, x_91);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_90;
|
||||
lean_dec(x_70);
|
||||
uint8_t x_93;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -1908,54 +1924,85 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
x_90 = !lean_is_exclusive(x_74);
|
||||
if (x_90 == 0)
|
||||
x_93 = !lean_is_exclusive(x_77);
|
||||
if (x_93 == 0)
|
||||
{
|
||||
return x_77;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96;
|
||||
x_94 = lean_ctor_get(x_77, 0);
|
||||
x_95 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_77);
|
||||
x_96 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_94);
|
||||
lean_ctor_set(x_96, 1, x_95);
|
||||
return x_96;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_97;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
x_97 = !lean_is_exclusive(x_74);
|
||||
if (x_97 == 0)
|
||||
{
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_91 = lean_ctor_get(x_74, 0);
|
||||
x_92 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_92);
|
||||
lean_inc(x_91);
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_98 = lean_ctor_get(x_74, 0);
|
||||
x_99 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_98);
|
||||
lean_dec(x_74);
|
||||
x_93 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_93, 0, x_91);
|
||||
lean_ctor_set(x_93, 1, x_92);
|
||||
return x_93;
|
||||
x_100 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_98);
|
||||
lean_ctor_set(x_100, 1, x_99);
|
||||
return x_100;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_94;
|
||||
lean_dec(x_70);
|
||||
uint8_t x_101;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_94 = !lean_is_exclusive(x_71);
|
||||
if (x_94 == 0)
|
||||
x_101 = !lean_is_exclusive(x_70);
|
||||
if (x_101 == 0)
|
||||
{
|
||||
return x_71;
|
||||
return x_70;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_95; lean_object* x_96; lean_object* x_97;
|
||||
x_95 = lean_ctor_get(x_71, 0);
|
||||
x_96 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_dec(x_71);
|
||||
x_97 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_97, 0, x_95);
|
||||
lean_ctor_set(x_97, 1, x_96);
|
||||
return x_97;
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
x_102 = lean_ctor_get(x_70, 0);
|
||||
x_103 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_103);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_70);
|
||||
x_104 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_104, 0, x_102);
|
||||
lean_ctor_set(x_104, 1, x_103);
|
||||
return x_104;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2394,100 +2441,116 @@ 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_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
lean_dec(x_43);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_67 = l_Lean_instInhabitedExpr;
|
||||
x_68 = lean_unsigned_to_nat(0u);
|
||||
x_69 = lean_array_get(x_67, x_5, x_68);
|
||||
lean_dec(x_5);
|
||||
x_70 = l_Lean_mkApp(x_3, x_69);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_70);
|
||||
x_71 = lean_infer_type(x_70, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_70 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_70) == 0)
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_71, 0);
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_71 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_71);
|
||||
x_72 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_72);
|
||||
x_73 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_70);
|
||||
x_73 = l_Lean_mkApp(x_3, x_71);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
x_74 = lean_whnf(x_72, x_9, x_10, x_11, x_12, x_73);
|
||||
lean_inc(x_73);
|
||||
x_74 = lean_infer_type(x_73, x_9, x_10, x_11, x_12, x_72);
|
||||
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_75; lean_object* x_76; lean_object* x_77;
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_74);
|
||||
x_77 = l_Lean_Expr_bindingDomain_x21(x_75);
|
||||
lean_dec(x_75);
|
||||
x_78 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof(x_77, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_76);
|
||||
if (lean_obj_tag(x_78) == 0)
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
x_77 = lean_whnf(x_75, x_9, x_10, x_11, x_12, x_76);
|
||||
if (lean_obj_tag(x_77) == 0)
|
||||
{
|
||||
uint8_t x_79;
|
||||
x_79 = !lean_is_exclusive(x_78);
|
||||
if (x_79 == 0)
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81;
|
||||
x_80 = lean_ctor_get(x_78, 0);
|
||||
x_81 = l_Lean_mkApp(x_70, x_80);
|
||||
lean_ctor_set(x_78, 0, x_81);
|
||||
return x_78;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_82 = lean_ctor_get(x_78, 0);
|
||||
x_83 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_83);
|
||||
lean_inc(x_82);
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_78 = lean_ctor_get(x_77, 0);
|
||||
lean_inc(x_78);
|
||||
x_79 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_77);
|
||||
x_80 = l_Lean_Expr_bindingDomain_x21(x_78);
|
||||
lean_dec(x_78);
|
||||
x_84 = l_Lean_mkApp(x_70, x_82);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_83);
|
||||
return x_85;
|
||||
x_81 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof(x_80, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_79);
|
||||
if (lean_obj_tag(x_81) == 0)
|
||||
{
|
||||
uint8_t x_82;
|
||||
x_82 = !lean_is_exclusive(x_81);
|
||||
if (x_82 == 0)
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84;
|
||||
x_83 = lean_ctor_get(x_81, 0);
|
||||
x_84 = l_Lean_mkApp(x_73, x_83);
|
||||
lean_ctor_set(x_81, 0, x_84);
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_85 = lean_ctor_get(x_81, 0);
|
||||
x_86 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_81);
|
||||
x_87 = l_Lean_mkApp(x_73, x_85);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
lean_ctor_set(x_88, 1, x_86);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_86;
|
||||
lean_dec(x_70);
|
||||
x_86 = !lean_is_exclusive(x_78);
|
||||
if (x_86 == 0)
|
||||
uint8_t x_89;
|
||||
lean_dec(x_73);
|
||||
x_89 = !lean_is_exclusive(x_81);
|
||||
if (x_89 == 0)
|
||||
{
|
||||
return x_78;
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_78, 0);
|
||||
x_88 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_78);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_87);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_90 = lean_ctor_get(x_81, 0);
|
||||
x_91 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_90);
|
||||
lean_dec(x_81);
|
||||
x_92 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_92, 0, x_90);
|
||||
lean_ctor_set(x_92, 1, x_91);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_90;
|
||||
lean_dec(x_70);
|
||||
uint8_t x_93;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -2495,54 +2558,85 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
x_90 = !lean_is_exclusive(x_74);
|
||||
if (x_90 == 0)
|
||||
x_93 = !lean_is_exclusive(x_77);
|
||||
if (x_93 == 0)
|
||||
{
|
||||
return x_77;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96;
|
||||
x_94 = lean_ctor_get(x_77, 0);
|
||||
x_95 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_77);
|
||||
x_96 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_94);
|
||||
lean_ctor_set(x_96, 1, x_95);
|
||||
return x_96;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_97;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
x_97 = !lean_is_exclusive(x_74);
|
||||
if (x_97 == 0)
|
||||
{
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_91 = lean_ctor_get(x_74, 0);
|
||||
x_92 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_92);
|
||||
lean_inc(x_91);
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_98 = lean_ctor_get(x_74, 0);
|
||||
x_99 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_98);
|
||||
lean_dec(x_74);
|
||||
x_93 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_93, 0, x_91);
|
||||
lean_ctor_set(x_93, 1, x_92);
|
||||
return x_93;
|
||||
x_100 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_98);
|
||||
lean_ctor_set(x_100, 1, x_99);
|
||||
return x_100;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_94;
|
||||
lean_dec(x_70);
|
||||
uint8_t x_101;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_94 = !lean_is_exclusive(x_71);
|
||||
if (x_94 == 0)
|
||||
x_101 = !lean_is_exclusive(x_70);
|
||||
if (x_101 == 0)
|
||||
{
|
||||
return x_71;
|
||||
return x_70;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_95; lean_object* x_96; lean_object* x_97;
|
||||
x_95 = lean_ctor_get(x_71, 0);
|
||||
x_96 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_dec(x_71);
|
||||
x_97 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_97, 0, x_95);
|
||||
lean_ctor_set(x_97, 1, x_96);
|
||||
return x_97;
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
x_102 = lean_ctor_get(x_70, 0);
|
||||
x_103 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_103);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_70);
|
||||
x_104 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_104, 0, x_102);
|
||||
lean_ctor_set(x_104, 1, x_103);
|
||||
return x_104;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
440
stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c
generated
440
stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c
generated
|
|
@ -30,6 +30,7 @@ static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinitio
|
|||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_isOnlyOneUnaryDef___closed__1;
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__5;
|
||||
static lean_object* l_Lean_Elab_wfRecursion___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_isOnlyOneUnaryDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_wfRecursion___closed__1;
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__10;
|
||||
|
|
@ -45,6 +46,7 @@ extern lean_object* l_Lean_levelZero;
|
|||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__7;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_wfRecursion___closed__3;
|
||||
lean_object* l_Lean_Elab_applyAttributesOf(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(size_t, size_t, 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*);
|
||||
|
|
@ -62,7 +64,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_WF_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1000_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1006_(lean_object*);
|
||||
static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__10;
|
||||
extern lean_object* l_Lean_Elab_instInhabitedPreDefinition;
|
||||
lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1881,6 +1883,23 @@ x_2 = l_Lean_stringToMessageData(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_wfRecursion___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string(" :=\n");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_wfRecursion___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Elab_wfRecursion___closed__3;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_wfRecursion(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:
|
||||
{
|
||||
|
|
@ -1995,51 +2014,51 @@ lean_inc(x_8);
|
|||
x_43 = l_Lean_Elab_eraseRecAppSyntax(x_39, x_8, x_9, x_42);
|
||||
if (lean_obj_tag(x_43) == 0)
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64;
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69;
|
||||
x_44 = lean_ctor_get(x_43, 0);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_43);
|
||||
x_46 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__6;
|
||||
x_61 = lean_st_ref_get(x_9, x_45);
|
||||
x_62 = lean_ctor_get(x_61, 0);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_62, 3);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_62);
|
||||
x_64 = lean_ctor_get_uint8(x_63, sizeof(void*)*1);
|
||||
lean_dec(x_63);
|
||||
if (x_64 == 0)
|
||||
x_66 = lean_st_ref_get(x_9, x_45);
|
||||
x_67 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_67, 3);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
x_69 = lean_ctor_get_uint8(x_68, sizeof(void*)*1);
|
||||
lean_dec(x_68);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
lean_object* x_65; uint8_t x_66;
|
||||
x_65 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_61);
|
||||
x_66 = 0;
|
||||
x_47 = x_66;
|
||||
x_48 = x_65;
|
||||
goto block_60;
|
||||
lean_object* x_70; uint8_t x_71;
|
||||
x_70 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_66);
|
||||
x_71 = 0;
|
||||
x_47 = x_71;
|
||||
x_48 = x_70;
|
||||
goto block_65;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71;
|
||||
x_67 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_67);
|
||||
lean_dec(x_61);
|
||||
x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_67);
|
||||
x_69 = lean_ctor_get(x_68, 0);
|
||||
lean_inc(x_69);
|
||||
x_70 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_68);
|
||||
x_71 = lean_unbox(x_69);
|
||||
lean_dec(x_69);
|
||||
x_47 = x_71;
|
||||
x_48 = x_70;
|
||||
goto block_60;
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76;
|
||||
x_72 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_66);
|
||||
x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_72);
|
||||
x_74 = lean_ctor_get(x_73, 0);
|
||||
lean_inc(x_74);
|
||||
x_75 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_75);
|
||||
lean_dec(x_73);
|
||||
x_76 = lean_unbox(x_74);
|
||||
lean_dec(x_74);
|
||||
x_47 = x_76;
|
||||
x_48 = x_75;
|
||||
goto block_65;
|
||||
}
|
||||
block_60:
|
||||
block_65:
|
||||
{
|
||||
if (x_47 == 0)
|
||||
{
|
||||
|
|
@ -2049,7 +2068,7 @@ return x_49;
|
|||
}
|
||||
else
|
||||
{
|
||||
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_56; lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
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_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; lean_object* x_63; lean_object* x_64;
|
||||
x_50 = lean_ctor_get(x_44, 3);
|
||||
lean_inc(x_50);
|
||||
x_51 = lean_alloc_ctor(4, 1, 0);
|
||||
|
|
@ -2058,25 +2077,36 @@ x_52 = l_Lean_Elab_wfRecursion___closed__2;
|
|||
x_53 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_52);
|
||||
lean_ctor_set(x_53, 1, x_51);
|
||||
x_54 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__8;
|
||||
x_54 = l_Lean_Elab_wfRecursion___closed__4;
|
||||
x_55 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
lean_ctor_set(x_55, 1, x_54);
|
||||
x_56 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_46, x_55, x_4, x_5, x_6, x_7, x_8, x_9, x_48);
|
||||
x_57 = lean_ctor_get(x_56, 0);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_56);
|
||||
x_59 = l_Lean_Elab_wfRecursion___lambda__1(x_12, x_13, x_1, x_44, x_57, x_4, x_5, x_6, x_7, x_8, x_9, x_58);
|
||||
lean_dec(x_57);
|
||||
return x_59;
|
||||
x_56 = lean_ctor_get(x_44, 5);
|
||||
lean_inc(x_56);
|
||||
x_57 = lean_alloc_ctor(2, 1, 0);
|
||||
lean_ctor_set(x_57, 0, x_56);
|
||||
x_58 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_55);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
x_59 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__8;
|
||||
x_60 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
x_61 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_46, x_60, x_4, x_5, x_6, x_7, x_8, x_9, x_48);
|
||||
x_62 = lean_ctor_get(x_61, 0);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_61);
|
||||
x_64 = l_Lean_Elab_wfRecursion___lambda__1(x_12, x_13, x_1, x_44, x_62, x_4, x_5, x_6, x_7, x_8, x_9, x_63);
|
||||
lean_dec(x_62);
|
||||
return x_64;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_72;
|
||||
uint8_t x_77;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2084,110 +2114,110 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_72 = !lean_is_exclusive(x_43);
|
||||
if (x_72 == 0)
|
||||
x_77 = !lean_is_exclusive(x_43);
|
||||
if (x_77 == 0)
|
||||
{
|
||||
return x_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_73 = lean_ctor_get(x_43, 0);
|
||||
x_74 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_78 = lean_ctor_get(x_43, 0);
|
||||
x_79 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_79);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_43);
|
||||
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;
|
||||
x_80 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_78);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
return x_80;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79;
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84;
|
||||
lean_dec(x_1);
|
||||
x_76 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_76);
|
||||
x_77 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_77);
|
||||
x_81 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_81);
|
||||
x_82 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_38);
|
||||
x_78 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_77);
|
||||
x_83 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_82);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_79 = !lean_is_exclusive(x_78);
|
||||
if (x_79 == 0)
|
||||
x_84 = !lean_is_exclusive(x_83);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
lean_object* x_80;
|
||||
x_80 = lean_ctor_get(x_78, 0);
|
||||
lean_dec(x_80);
|
||||
lean_ctor_set_tag(x_78, 1);
|
||||
lean_ctor_set(x_78, 0, x_76);
|
||||
return x_78;
|
||||
lean_object* x_85;
|
||||
x_85 = lean_ctor_get(x_83, 0);
|
||||
lean_dec(x_85);
|
||||
lean_ctor_set_tag(x_83, 1);
|
||||
lean_ctor_set(x_83, 0, x_81);
|
||||
return x_83;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82;
|
||||
x_81 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_78);
|
||||
x_82 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_76);
|
||||
lean_ctor_set(x_82, 1, x_81);
|
||||
return x_82;
|
||||
lean_object* x_86; lean_object* x_87;
|
||||
x_86 = lean_ctor_get(x_83, 1);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_83);
|
||||
x_87 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_87, 0, x_81);
|
||||
lean_ctor_set(x_87, 1, x_86);
|
||||
return x_87;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86;
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_83 = lean_ctor_get(x_36, 0);
|
||||
lean_inc(x_83);
|
||||
x_84 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_84);
|
||||
x_88 = lean_ctor_get(x_36, 0);
|
||||
lean_inc(x_88);
|
||||
x_89 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_36);
|
||||
x_85 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_84);
|
||||
x_90 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_89);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_86 = !lean_is_exclusive(x_85);
|
||||
if (x_86 == 0)
|
||||
x_91 = !lean_is_exclusive(x_90);
|
||||
if (x_91 == 0)
|
||||
{
|
||||
lean_object* x_87;
|
||||
x_87 = lean_ctor_get(x_85, 0);
|
||||
lean_dec(x_87);
|
||||
lean_ctor_set_tag(x_85, 1);
|
||||
lean_ctor_set(x_85, 0, x_83);
|
||||
return x_85;
|
||||
lean_object* x_92;
|
||||
x_92 = lean_ctor_get(x_90, 0);
|
||||
lean_dec(x_92);
|
||||
lean_ctor_set_tag(x_90, 1);
|
||||
lean_ctor_set(x_90, 0, x_88);
|
||||
return x_90;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89;
|
||||
x_88 = lean_ctor_get(x_85, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_85);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_83);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
lean_object* x_93; lean_object* x_94;
|
||||
x_93 = lean_ctor_get(x_90, 1);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_90);
|
||||
x_94 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_94, 0, x_88);
|
||||
lean_ctor_set(x_94, 1, x_93);
|
||||
return x_94;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_90;
|
||||
uint8_t x_95;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -2197,146 +2227,146 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_90 = !lean_is_exclusive(x_29);
|
||||
if (x_90 == 0)
|
||||
x_95 = !lean_is_exclusive(x_29);
|
||||
if (x_95 == 0)
|
||||
{
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_91 = lean_ctor_get(x_29, 0);
|
||||
x_92 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_92);
|
||||
lean_inc(x_91);
|
||||
lean_object* x_96; lean_object* x_97; lean_object* x_98;
|
||||
x_96 = lean_ctor_get(x_29, 0);
|
||||
x_97 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_97);
|
||||
lean_inc(x_96);
|
||||
lean_dec(x_29);
|
||||
x_93 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_93, 0, x_91);
|
||||
lean_ctor_set(x_93, 1, x_92);
|
||||
return x_93;
|
||||
x_98 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_98, 0, x_96);
|
||||
lean_ctor_set(x_98, 1, x_97);
|
||||
return x_98;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97;
|
||||
lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_94 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_94);
|
||||
x_95 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_95);
|
||||
lean_dec(x_24);
|
||||
x_96 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_95);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_97 = !lean_is_exclusive(x_96);
|
||||
if (x_97 == 0)
|
||||
{
|
||||
lean_object* x_98;
|
||||
x_98 = lean_ctor_get(x_96, 0);
|
||||
lean_dec(x_98);
|
||||
lean_ctor_set_tag(x_96, 1);
|
||||
lean_ctor_set(x_96, 0, x_94);
|
||||
return x_96;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_99; lean_object* x_100;
|
||||
x_99 = lean_ctor_get(x_96, 1);
|
||||
x_99 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_99);
|
||||
lean_dec(x_96);
|
||||
x_100 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_94);
|
||||
lean_ctor_set(x_100, 1, x_99);
|
||||
return x_100;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_101 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_21);
|
||||
x_103 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_102);
|
||||
x_100 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_100);
|
||||
lean_dec(x_24);
|
||||
x_101 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_100);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_104 = !lean_is_exclusive(x_103);
|
||||
if (x_104 == 0)
|
||||
x_102 = !lean_is_exclusive(x_101);
|
||||
if (x_102 == 0)
|
||||
{
|
||||
lean_object* x_105;
|
||||
x_105 = lean_ctor_get(x_103, 0);
|
||||
lean_dec(x_105);
|
||||
lean_ctor_set_tag(x_103, 1);
|
||||
lean_ctor_set(x_103, 0, x_101);
|
||||
return x_103;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_106; lean_object* x_107;
|
||||
x_106 = lean_ctor_get(x_103, 1);
|
||||
lean_inc(x_106);
|
||||
lean_object* x_103;
|
||||
x_103 = lean_ctor_get(x_101, 0);
|
||||
lean_dec(x_103);
|
||||
x_107 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_107, 0, x_101);
|
||||
lean_ctor_set(x_107, 1, x_106);
|
||||
return x_107;
|
||||
lean_ctor_set_tag(x_101, 1);
|
||||
lean_ctor_set(x_101, 0, x_99);
|
||||
return x_101;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_104; lean_object* x_105;
|
||||
x_104 = lean_ctor_get(x_101, 1);
|
||||
lean_inc(x_104);
|
||||
lean_dec(x_101);
|
||||
x_105 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_105, 0, x_99);
|
||||
lean_ctor_set(x_105, 1, x_104);
|
||||
return x_105;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111;
|
||||
lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_108 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_108);
|
||||
x_109 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_109);
|
||||
lean_dec(x_19);
|
||||
x_110 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_109);
|
||||
x_106 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_106);
|
||||
x_107 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_107);
|
||||
lean_dec(x_21);
|
||||
x_108 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_107);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_111 = !lean_is_exclusive(x_110);
|
||||
if (x_111 == 0)
|
||||
x_109 = !lean_is_exclusive(x_108);
|
||||
if (x_109 == 0)
|
||||
{
|
||||
lean_object* x_112;
|
||||
x_112 = lean_ctor_get(x_110, 0);
|
||||
lean_dec(x_112);
|
||||
lean_ctor_set_tag(x_110, 1);
|
||||
lean_ctor_set(x_110, 0, x_108);
|
||||
return x_110;
|
||||
lean_object* x_110;
|
||||
x_110 = lean_ctor_get(x_108, 0);
|
||||
lean_dec(x_110);
|
||||
lean_ctor_set_tag(x_108, 1);
|
||||
lean_ctor_set(x_108, 0, x_106);
|
||||
return x_108;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_113; lean_object* x_114;
|
||||
x_113 = lean_ctor_get(x_110, 1);
|
||||
lean_object* x_111; lean_object* x_112;
|
||||
x_111 = lean_ctor_get(x_108, 1);
|
||||
lean_inc(x_111);
|
||||
lean_dec(x_108);
|
||||
x_112 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_112, 0, x_106);
|
||||
lean_ctor_set(x_112, 1, x_111);
|
||||
return x_112;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_113 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_113);
|
||||
lean_dec(x_110);
|
||||
x_114 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_114, 0, x_108);
|
||||
lean_ctor_set(x_114, 1, x_113);
|
||||
return x_114;
|
||||
x_114 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_114);
|
||||
lean_dec(x_19);
|
||||
x_115 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_114);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_116 = !lean_is_exclusive(x_115);
|
||||
if (x_116 == 0)
|
||||
{
|
||||
lean_object* x_117;
|
||||
x_117 = lean_ctor_get(x_115, 0);
|
||||
lean_dec(x_117);
|
||||
lean_ctor_set_tag(x_115, 1);
|
||||
lean_ctor_set(x_115, 0, x_113);
|
||||
return x_115;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_118; lean_object* x_119;
|
||||
x_118 = lean_ctor_get(x_115, 1);
|
||||
lean_inc(x_118);
|
||||
lean_dec(x_115);
|
||||
x_119 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_119, 0, x_113);
|
||||
lean_ctor_set(x_119, 1, x_118);
|
||||
return x_119;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2388,7 +2418,7 @@ lean_dec(x_5);
|
|||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1000_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1006_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -2498,7 +2528,11 @@ l_Lean_Elab_wfRecursion___closed__1 = _init_l_Lean_Elab_wfRecursion___closed__1(
|
|||
lean_mark_persistent(l_Lean_Elab_wfRecursion___closed__1);
|
||||
l_Lean_Elab_wfRecursion___closed__2 = _init_l_Lean_Elab_wfRecursion___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_wfRecursion___closed__2);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1000_(lean_io_mk_world());
|
||||
l_Lean_Elab_wfRecursion___closed__3 = _init_l_Lean_Elab_wfRecursion___closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_wfRecursion___closed__3);
|
||||
l_Lean_Elab_wfRecursion___closed__4 = _init_l_Lean_Elab_wfRecursion___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_wfRecursion___closed__4);
|
||||
res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_WF_Main___hyg_1006_(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));
|
||||
|
|
|
|||
28
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
28
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
|
|
@ -37,7 +37,7 @@ lean_object* lean_erase_macro_scopes(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___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*);
|
||||
static lean_object* l_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__4___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__5___closed__14;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782_(lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___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___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__6;
|
||||
|
|
@ -223,7 +223,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed
|
|||
lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(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_Tactic_Induction_0__Lean_Elab_Tactic_getAltDArrow___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__11___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_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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*, lean_object*, lean_object*);
|
||||
|
|
@ -247,9 +247,9 @@ static lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__2___closed__2;
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___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*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__8(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___boxed(lean_object**);
|
||||
static lean_object* l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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*);
|
||||
|
|
@ -16042,7 +16042,7 @@ x_16 = l_Lean_Elab_Tactic_elabCasesTargets___lambda__2(x_14, x_15, x_3, x_4, x_5
|
|||
return x_16;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -16050,21 +16050,21 @@ x_1 = lean_mk_string("cases");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1;
|
||||
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_Induction___hyg_5779_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -16897,7 +16897,7 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -17381,11 +17381,11 @@ if (lean_io_result_is_error(res)) return res;
|
|||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1 = _init_l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779____closed__2);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5779_(lean_io_mk_world());
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782____closed__2);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_5782_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1();
|
||||
|
|
|
|||
1932
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
1932
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
File diff suppressed because it is too large
Load diff
130
stage0/stdlib/Lean/Meta/Basic.c
generated
130
stage0/stdlib/Lean/Meta/Basic.c
generated
|
|
@ -27227,15 +27227,15 @@ LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_sortFVarIds___spec__1___la
|
|||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_4 = lean_local_ctx_find(x_1, x_2);
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_local_ctx_find(x_1, x_3);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_inc(x_1);
|
||||
x_4 = lean_local_ctx_find(x_1, x_3);
|
||||
lean_inc(x_2);
|
||||
x_5 = lean_local_ctx_find(x_1, x_2);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = l_Lean_Name_quickLt(x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -27245,7 +27245,7 @@ return x_6;
|
|||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_7 = 1;
|
||||
|
|
@ -27256,22 +27256,22 @@ else
|
|||
{
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_5);
|
||||
x_8 = 0;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_9 = lean_ctor_get(x_4, 0);
|
||||
x_9 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_4);
|
||||
x_10 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_5);
|
||||
x_10 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_4);
|
||||
x_11 = l_Lean_LocalDecl_index(x_9);
|
||||
lean_dec(x_9);
|
||||
x_12 = l_Lean_LocalDecl_index(x_10);
|
||||
|
|
@ -27311,16 +27311,16 @@ lean_inc(x_2);
|
|||
x_86 = lean_array_get(x_2, x_3, x_19);
|
||||
lean_inc(x_2);
|
||||
x_87 = lean_array_get(x_2, x_3, x_4);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_1);
|
||||
x_88 = lean_local_ctx_find(x_1, x_86);
|
||||
lean_inc(x_87);
|
||||
lean_inc(x_1);
|
||||
x_89 = lean_local_ctx_find(x_1, x_87);
|
||||
if (lean_obj_tag(x_88) == 0)
|
||||
{
|
||||
x_88 = lean_local_ctx_find(x_1, x_87);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_1);
|
||||
x_89 = lean_local_ctx_find(x_1, x_86);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_88) == 0)
|
||||
{
|
||||
uint8_t x_90;
|
||||
x_90 = l_Lean_Name_quickLt(x_86, x_87);
|
||||
lean_dec(x_87);
|
||||
|
|
@ -27341,7 +27341,7 @@ goto block_85;
|
|||
else
|
||||
{
|
||||
lean_object* x_92;
|
||||
lean_dec(x_89);
|
||||
lean_dec(x_88);
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_86);
|
||||
x_92 = lean_array_swap(x_3, x_4, x_19);
|
||||
|
|
@ -27353,21 +27353,21 @@ else
|
|||
{
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_86);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
if (lean_obj_tag(x_88) == 0)
|
||||
{
|
||||
lean_dec(x_88);
|
||||
lean_dec(x_89);
|
||||
x_20 = x_3;
|
||||
goto block_85;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97;
|
||||
x_93 = lean_ctor_get(x_88, 0);
|
||||
x_93 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_88);
|
||||
x_94 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_89);
|
||||
x_94 = lean_ctor_get(x_88, 0);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_88);
|
||||
x_95 = l_Lean_LocalDecl_index(x_93);
|
||||
lean_dec(x_93);
|
||||
x_96 = l_Lean_LocalDecl_index(x_94);
|
||||
|
|
@ -27396,16 +27396,16 @@ lean_inc(x_2);
|
|||
x_46 = lean_array_get(x_2, x_20, x_5);
|
||||
lean_inc(x_2);
|
||||
x_70 = lean_array_get(x_2, x_20, x_4);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_1);
|
||||
x_71 = lean_local_ctx_find(x_1, x_46);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_1);
|
||||
x_72 = lean_local_ctx_find(x_1, x_70);
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
{
|
||||
x_71 = lean_local_ctx_find(x_1, x_70);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_1);
|
||||
x_72 = lean_local_ctx_find(x_1, x_46);
|
||||
if (lean_obj_tag(x_72) == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
{
|
||||
uint8_t x_73;
|
||||
x_73 = l_Lean_Name_quickLt(x_46, x_70);
|
||||
lean_dec(x_70);
|
||||
|
|
@ -27428,7 +27428,7 @@ goto block_45;
|
|||
else
|
||||
{
|
||||
lean_object* x_76;
|
||||
lean_dec(x_72);
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_70);
|
||||
lean_dec(x_46);
|
||||
x_76 = lean_box(0);
|
||||
|
|
@ -27439,10 +27439,10 @@ goto block_45;
|
|||
else
|
||||
{
|
||||
lean_dec(x_70);
|
||||
if (lean_obj_tag(x_72) == 0)
|
||||
if (lean_obj_tag(x_71) == 0)
|
||||
{
|
||||
lean_object* x_77;
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_72);
|
||||
x_77 = lean_box(0);
|
||||
x_47 = x_77;
|
||||
goto block_69;
|
||||
|
|
@ -27450,12 +27450,12 @@ goto block_69;
|
|||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82;
|
||||
x_78 = lean_ctor_get(x_71, 0);
|
||||
x_78 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_71);
|
||||
x_79 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_72);
|
||||
x_79 = lean_ctor_get(x_71, 0);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_71);
|
||||
x_80 = l_Lean_LocalDecl_index(x_78);
|
||||
lean_dec(x_78);
|
||||
x_81 = l_Lean_LocalDecl_index(x_79);
|
||||
|
|
@ -27489,16 +27489,16 @@ lean_inc(x_2);
|
|||
x_23 = lean_array_get(x_2, x_22, x_19);
|
||||
lean_inc(x_2);
|
||||
x_24 = lean_array_get(x_2, x_22, x_5);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_1);
|
||||
x_25 = lean_local_ctx_find(x_1, x_23);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_1);
|
||||
x_26 = lean_local_ctx_find(x_1, x_24);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
x_25 = lean_local_ctx_find(x_1, x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_1);
|
||||
x_26 = lean_local_ctx_find(x_1, x_23);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
uint8_t x_27;
|
||||
x_27 = l_Lean_Name_quickLt(x_23, x_24);
|
||||
lean_dec(x_23);
|
||||
|
|
@ -27530,7 +27530,7 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
lean_dec(x_26);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_23);
|
||||
x_32 = lean_array_swap(x_22, x_19, x_5);
|
||||
|
|
@ -27547,10 +27547,10 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_dec(x_23);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
lean_object* x_35;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_26);
|
||||
lean_dec(x_19);
|
||||
lean_inc_n(x_4, 2);
|
||||
lean_inc(x_2);
|
||||
|
|
@ -27561,12 +27561,12 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40;
|
||||
x_36 = lean_ctor_get(x_25, 0);
|
||||
x_36 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_25);
|
||||
x_37 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_26);
|
||||
x_37 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_25);
|
||||
x_38 = l_Lean_LocalDecl_index(x_36);
|
||||
lean_dec(x_36);
|
||||
x_39 = l_Lean_LocalDecl_index(x_37);
|
||||
|
|
@ -27607,16 +27607,16 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50;
|
|||
lean_dec(x_47);
|
||||
lean_inc(x_2);
|
||||
x_48 = lean_array_get(x_2, x_20, x_19);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_1);
|
||||
x_49 = lean_local_ctx_find(x_1, x_48);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_1);
|
||||
x_50 = lean_local_ctx_find(x_1, x_46);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
x_49 = lean_local_ctx_find(x_1, x_46);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_1);
|
||||
x_50 = lean_local_ctx_find(x_1, x_48);
|
||||
if (lean_obj_tag(x_50) == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
uint8_t x_51;
|
||||
x_51 = l_Lean_Name_quickLt(x_48, x_46);
|
||||
lean_dec(x_48);
|
||||
|
|
@ -27648,7 +27648,7 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
lean_dec(x_50);
|
||||
lean_dec(x_49);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_46);
|
||||
x_56 = lean_array_swap(x_20, x_19, x_5);
|
||||
|
|
@ -27665,10 +27665,10 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_dec(x_48);
|
||||
if (lean_obj_tag(x_50) == 0)
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
lean_object* x_59;
|
||||
lean_dec(x_49);
|
||||
lean_dec(x_50);
|
||||
lean_dec(x_19);
|
||||
lean_inc_n(x_4, 2);
|
||||
lean_inc(x_2);
|
||||
|
|
@ -27679,12 +27679,12 @@ goto block_15;
|
|||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64;
|
||||
x_60 = lean_ctor_get(x_49, 0);
|
||||
x_60 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_49);
|
||||
x_61 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_50);
|
||||
x_61 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_49);
|
||||
x_62 = l_Lean_LocalDecl_index(x_60);
|
||||
lean_dec(x_60);
|
||||
x_63 = l_Lean_LocalDecl_index(x_61);
|
||||
|
|
|
|||
18
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
18
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
|
|
@ -46829,24 +46829,23 @@ return x_73;
|
|||
LEAN_EXPORT uint8_t l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_sameHeadSymbol(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_Expr_getAppFn(x_1);
|
||||
if (lean_obj_tag(x_3) == 4)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_3);
|
||||
x_4 = l_Lean_Expr_getAppFn(x_2);
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = l_Lean_Expr_getAppFn(x_2);
|
||||
x_4 = l_Lean_Expr_getAppFn(x_1);
|
||||
if (lean_obj_tag(x_4) == 4)
|
||||
{
|
||||
uint8_t x_5;
|
||||
lean_dec(x_4);
|
||||
if (lean_obj_tag(x_3) == 4)
|
||||
{
|
||||
uint8_t x_5;
|
||||
lean_dec(x_3);
|
||||
x_5 = 1;
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_6;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_6 = 0;
|
||||
return x_6;
|
||||
}
|
||||
|
|
@ -46854,6 +46853,7 @@ return x_6;
|
|||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_7 = 0;
|
||||
return x_7;
|
||||
|
|
|
|||
562
stage0/stdlib/Lean/Meta/IndPredBelow.c
generated
562
stage0/stdlib/Lean/Meta/IndPredBelow.c
generated
|
|
@ -15141,27 +15141,27 @@ x_19 = lean_usize_of_nat(x_18);
|
|||
lean_dec(x_18);
|
||||
x_20 = 0;
|
||||
x_21 = l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__2(x_19, x_20, x_17);
|
||||
x_22 = lean_array_get_size(x_14);
|
||||
x_23 = lean_array_get_size(x_21);
|
||||
x_22 = lean_array_get_size(x_21);
|
||||
x_23 = lean_array_get_size(x_14);
|
||||
x_24 = lean_unsigned_to_nat(0u);
|
||||
x_25 = lean_nat_dec_eq(x_22, x_24);
|
||||
lean_inc(x_22);
|
||||
x_25 = lean_nat_dec_eq(x_23, x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_21);
|
||||
x_26 = l_Array_toSubarray___rarg(x_21, x_24, x_22);
|
||||
x_26 = l_Array_toSubarray___rarg(x_21, x_24, x_23);
|
||||
x_27 = l_Array_ofSubarray___rarg(x_26);
|
||||
x_28 = l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__4;
|
||||
x_29 = lean_st_ref_get(x_10, x_11);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_22);
|
||||
x_30 = x_5;
|
||||
goto block_95;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_96;
|
||||
x_96 = lean_nat_dec_eq(x_23, x_24);
|
||||
lean_dec(x_23);
|
||||
x_96 = lean_nat_dec_eq(x_22, x_24);
|
||||
lean_dec(x_22);
|
||||
if (x_96 == 0)
|
||||
{
|
||||
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
|
|
@ -15181,9 +15181,9 @@ goto block_95;
|
|||
block_95:
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_85; lean_object* x_86; uint8_t x_87;
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_30);
|
||||
x_31 = l_Array_toSubarray___rarg(x_30, x_24, x_22);
|
||||
x_31 = l_Array_toSubarray___rarg(x_30, x_24, x_23);
|
||||
x_32 = l_Array_ofSubarray___rarg(x_31);
|
||||
x_33 = l_Lean_Expr_replaceFVars(x_6, x_32, x_27);
|
||||
lean_dec(x_32);
|
||||
|
|
@ -15231,7 +15231,7 @@ if (x_34 == 0)
|
|||
lean_object* x_36; lean_object* x_37;
|
||||
lean_dec(x_14);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__1(x_30, x_22, x_27, x_21, x_33, x_3, x_4, x_28, x_36, x_7, x_8, x_9, x_10, x_35);
|
||||
x_37 = l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__1(x_30, x_23, x_27, x_21, x_33, x_3, x_4, x_28, x_36, x_7, x_8, x_9, x_10, x_35);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -15254,7 +15254,7 @@ x_44 = l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3_
|
|||
x_45 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
x_46 = lean_usize_of_nat(x_22);
|
||||
x_46 = lean_usize_of_nat(x_23);
|
||||
x_47 = l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__2(x_46, x_20, x_14);
|
||||
x_48 = lean_array_to_list(lean_box(0), x_47);
|
||||
x_49 = l_List_mapTRAux___at_Lean_MessageData_instCoeListExprMessageData___spec__1(x_48, x_39);
|
||||
|
|
@ -15280,18 +15280,18 @@ x_59 = lean_alloc_ctor(10, 2, 0);
|
|||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
x_60 = lean_array_get_size(x_30);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_30);
|
||||
x_61 = l_Array_toSubarray___rarg(x_30, x_22, x_60);
|
||||
x_61 = l_Array_toSubarray___rarg(x_30, x_23, x_60);
|
||||
x_62 = l_Array_ofSubarray___rarg(x_61);
|
||||
lean_inc(x_27);
|
||||
x_63 = l_Array_append___rarg(x_27, x_62);
|
||||
x_64 = lean_array_get_size(x_63);
|
||||
x_65 = l_Array_toSubarray___rarg(x_63, x_24, x_64);
|
||||
x_66 = lean_array_get_size(x_21);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_21);
|
||||
x_67 = l_Array_toSubarray___rarg(x_21, x_22, x_66);
|
||||
x_67 = l_Array_toSubarray___rarg(x_21, x_23, x_66);
|
||||
x_68 = l_Array_ofSubarray___rarg(x_65);
|
||||
x_69 = l_Array_ofSubarray___rarg(x_67);
|
||||
x_70 = l_Array_append___rarg(x_68, x_69);
|
||||
|
|
@ -15315,7 +15315,7 @@ lean_inc(x_81);
|
|||
x_82 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_80);
|
||||
x_83 = l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__1(x_30, x_22, x_27, x_21, x_33, x_3, x_4, x_28, x_81, x_7, x_8, x_9, x_10, x_82);
|
||||
x_83 = l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__1(x_30, x_23, x_27, x_21, x_33, x_3, x_4, x_28, x_81, x_7, x_8, x_9, x_10, x_82);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -17516,36 +17516,33 @@ _start:
|
|||
switch (lean_obj_tag(x_5)) {
|
||||
case 0:
|
||||
{
|
||||
lean_object* x_13;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_13 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_13 = lean_unsigned_to_nat(0u);
|
||||
x_14 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_13);
|
||||
x_15 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_object* x_16;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_3);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
return x_14;
|
||||
x_16 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_3);
|
||||
lean_ctor_set(x_16, 1, x_12);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
x_16 = lean_unsigned_to_nat(0u);
|
||||
x_17 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_16);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
lean_object* x_17;
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -17553,22 +17550,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_3);
|
||||
lean_ctor_set(x_18, 1, x_12);
|
||||
return x_18;
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_3);
|
||||
lean_ctor_set(x_17, 1, x_12);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_15);
|
||||
x_19 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_20 = l_Lean_Meta_isInductivePredicate(x_15, x_8, x_9, x_10, x_11, x_12);
|
||||
x_20 = l_Lean_Meta_isInductivePredicate(x_18, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; uint8_t x_22;
|
||||
|
|
@ -17882,36 +17882,33 @@ return x_84;
|
|||
}
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_85;
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_85 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_85 = lean_unsigned_to_nat(0u);
|
||||
x_86 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_85);
|
||||
x_87 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_85) == 0)
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
lean_object* x_86;
|
||||
lean_object* x_88;
|
||||
lean_dec(x_86);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_86 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_86, 0, x_3);
|
||||
lean_ctor_set(x_86, 1, x_12);
|
||||
return x_86;
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_3);
|
||||
lean_ctor_set(x_88, 1, x_12);
|
||||
return x_88;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_85, 0);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_85);
|
||||
x_88 = lean_unsigned_to_nat(0u);
|
||||
x_89 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_88);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
if (lean_obj_tag(x_86) == 0)
|
||||
{
|
||||
lean_object* x_90;
|
||||
lean_object* x_89;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -17919,22 +17916,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_90 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_90, 0, x_3);
|
||||
lean_ctor_set(x_90, 1, x_12);
|
||||
return x_90;
|
||||
x_89 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_3);
|
||||
lean_ctor_set(x_89, 1, x_12);
|
||||
return x_89;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92;
|
||||
x_91 = lean_ctor_get(x_89, 0);
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_90 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_90);
|
||||
lean_dec(x_87);
|
||||
x_91 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_91);
|
||||
lean_dec(x_89);
|
||||
lean_dec(x_86);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_92 = l_Lean_Meta_isInductivePredicate(x_87, x_8, x_9, x_10, x_11, x_12);
|
||||
x_92 = l_Lean_Meta_isInductivePredicate(x_90, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_92) == 0)
|
||||
{
|
||||
lean_object* x_93; uint8_t x_94;
|
||||
|
|
@ -18248,36 +18248,33 @@ return x_156;
|
|||
}
|
||||
case 2:
|
||||
{
|
||||
lean_object* x_157;
|
||||
lean_object* x_157; lean_object* x_158; lean_object* x_159;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_157 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_157 = lean_unsigned_to_nat(0u);
|
||||
x_158 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_157);
|
||||
x_159 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_157) == 0)
|
||||
if (lean_obj_tag(x_159) == 0)
|
||||
{
|
||||
lean_object* x_158;
|
||||
lean_object* x_160;
|
||||
lean_dec(x_158);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_158 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_158, 0, x_3);
|
||||
lean_ctor_set(x_158, 1, x_12);
|
||||
return x_158;
|
||||
x_160 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_160, 0, x_3);
|
||||
lean_ctor_set(x_160, 1, x_12);
|
||||
return x_160;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_159; lean_object* x_160; lean_object* x_161;
|
||||
x_159 = lean_ctor_get(x_157, 0);
|
||||
lean_inc(x_159);
|
||||
lean_dec(x_157);
|
||||
x_160 = lean_unsigned_to_nat(0u);
|
||||
x_161 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_160);
|
||||
if (lean_obj_tag(x_161) == 0)
|
||||
if (lean_obj_tag(x_158) == 0)
|
||||
{
|
||||
lean_object* x_162;
|
||||
lean_object* x_161;
|
||||
lean_dec(x_159);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -18285,22 +18282,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_162 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_162, 0, x_3);
|
||||
lean_ctor_set(x_162, 1, x_12);
|
||||
return x_162;
|
||||
x_161 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_161, 0, x_3);
|
||||
lean_ctor_set(x_161, 1, x_12);
|
||||
return x_161;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_163; lean_object* x_164;
|
||||
x_163 = lean_ctor_get(x_161, 0);
|
||||
lean_object* x_162; lean_object* x_163; lean_object* x_164;
|
||||
x_162 = lean_ctor_get(x_159, 0);
|
||||
lean_inc(x_162);
|
||||
lean_dec(x_159);
|
||||
x_163 = lean_ctor_get(x_158, 0);
|
||||
lean_inc(x_163);
|
||||
lean_dec(x_161);
|
||||
lean_dec(x_158);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_164 = l_Lean_Meta_isInductivePredicate(x_159, x_8, x_9, x_10, x_11, x_12);
|
||||
x_164 = l_Lean_Meta_isInductivePredicate(x_162, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_164) == 0)
|
||||
{
|
||||
lean_object* x_165; uint8_t x_166;
|
||||
|
|
@ -18614,36 +18614,33 @@ return x_228;
|
|||
}
|
||||
case 3:
|
||||
{
|
||||
lean_object* x_229;
|
||||
lean_object* x_229; lean_object* x_230; lean_object* x_231;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_229 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_229 = lean_unsigned_to_nat(0u);
|
||||
x_230 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_229);
|
||||
x_231 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_229) == 0)
|
||||
if (lean_obj_tag(x_231) == 0)
|
||||
{
|
||||
lean_object* x_230;
|
||||
lean_object* x_232;
|
||||
lean_dec(x_230);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_230 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_230, 0, x_3);
|
||||
lean_ctor_set(x_230, 1, x_12);
|
||||
return x_230;
|
||||
x_232 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_232, 0, x_3);
|
||||
lean_ctor_set(x_232, 1, x_12);
|
||||
return x_232;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_231; lean_object* x_232; lean_object* x_233;
|
||||
x_231 = lean_ctor_get(x_229, 0);
|
||||
lean_inc(x_231);
|
||||
lean_dec(x_229);
|
||||
x_232 = lean_unsigned_to_nat(0u);
|
||||
x_233 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_232);
|
||||
if (lean_obj_tag(x_233) == 0)
|
||||
if (lean_obj_tag(x_230) == 0)
|
||||
{
|
||||
lean_object* x_234;
|
||||
lean_object* x_233;
|
||||
lean_dec(x_231);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -18651,22 +18648,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_234 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_234, 0, x_3);
|
||||
lean_ctor_set(x_234, 1, x_12);
|
||||
return x_234;
|
||||
x_233 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_233, 0, x_3);
|
||||
lean_ctor_set(x_233, 1, x_12);
|
||||
return x_233;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_235; lean_object* x_236;
|
||||
x_235 = lean_ctor_get(x_233, 0);
|
||||
lean_object* x_234; lean_object* x_235; lean_object* x_236;
|
||||
x_234 = lean_ctor_get(x_231, 0);
|
||||
lean_inc(x_234);
|
||||
lean_dec(x_231);
|
||||
x_235 = lean_ctor_get(x_230, 0);
|
||||
lean_inc(x_235);
|
||||
lean_dec(x_233);
|
||||
lean_dec(x_230);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_236 = l_Lean_Meta_isInductivePredicate(x_231, x_8, x_9, x_10, x_11, x_12);
|
||||
x_236 = l_Lean_Meta_isInductivePredicate(x_234, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_236) == 0)
|
||||
{
|
||||
lean_object* x_237; uint8_t x_238;
|
||||
|
|
@ -18980,36 +18980,33 @@ return x_300;
|
|||
}
|
||||
case 4:
|
||||
{
|
||||
lean_object* x_301;
|
||||
lean_object* x_301; lean_object* x_302; lean_object* x_303;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_301 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_301 = lean_unsigned_to_nat(0u);
|
||||
x_302 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_301);
|
||||
x_303 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_301) == 0)
|
||||
if (lean_obj_tag(x_303) == 0)
|
||||
{
|
||||
lean_object* x_302;
|
||||
lean_object* x_304;
|
||||
lean_dec(x_302);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_302 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_302, 0, x_3);
|
||||
lean_ctor_set(x_302, 1, x_12);
|
||||
return x_302;
|
||||
x_304 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_304, 0, x_3);
|
||||
lean_ctor_set(x_304, 1, x_12);
|
||||
return x_304;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_303; lean_object* x_304; lean_object* x_305;
|
||||
x_303 = lean_ctor_get(x_301, 0);
|
||||
lean_inc(x_303);
|
||||
lean_dec(x_301);
|
||||
x_304 = lean_unsigned_to_nat(0u);
|
||||
x_305 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_304);
|
||||
if (lean_obj_tag(x_305) == 0)
|
||||
if (lean_obj_tag(x_302) == 0)
|
||||
{
|
||||
lean_object* x_306;
|
||||
lean_object* x_305;
|
||||
lean_dec(x_303);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -19017,22 +19014,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_306 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_306, 0, x_3);
|
||||
lean_ctor_set(x_306, 1, x_12);
|
||||
return x_306;
|
||||
x_305 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_305, 0, x_3);
|
||||
lean_ctor_set(x_305, 1, x_12);
|
||||
return x_305;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_307; lean_object* x_308;
|
||||
x_307 = lean_ctor_get(x_305, 0);
|
||||
lean_object* x_306; lean_object* x_307; lean_object* x_308;
|
||||
x_306 = lean_ctor_get(x_303, 0);
|
||||
lean_inc(x_306);
|
||||
lean_dec(x_303);
|
||||
x_307 = lean_ctor_get(x_302, 0);
|
||||
lean_inc(x_307);
|
||||
lean_dec(x_305);
|
||||
lean_dec(x_302);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_308 = l_Lean_Meta_isInductivePredicate(x_303, x_8, x_9, x_10, x_11, x_12);
|
||||
x_308 = l_Lean_Meta_isInductivePredicate(x_306, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_308) == 0)
|
||||
{
|
||||
lean_object* x_309; uint8_t x_310;
|
||||
|
|
@ -19363,36 +19363,33 @@ goto _start;
|
|||
}
|
||||
case 6:
|
||||
{
|
||||
lean_object* x_379;
|
||||
lean_object* x_379; lean_object* x_380; lean_object* x_381;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_379 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_379 = lean_unsigned_to_nat(0u);
|
||||
x_380 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_379);
|
||||
x_381 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_379) == 0)
|
||||
if (lean_obj_tag(x_381) == 0)
|
||||
{
|
||||
lean_object* x_380;
|
||||
lean_object* x_382;
|
||||
lean_dec(x_380);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_380 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_380, 0, x_3);
|
||||
lean_ctor_set(x_380, 1, x_12);
|
||||
return x_380;
|
||||
x_382 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_382, 0, x_3);
|
||||
lean_ctor_set(x_382, 1, x_12);
|
||||
return x_382;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_381; lean_object* x_382; lean_object* x_383;
|
||||
x_381 = lean_ctor_get(x_379, 0);
|
||||
lean_inc(x_381);
|
||||
lean_dec(x_379);
|
||||
x_382 = lean_unsigned_to_nat(0u);
|
||||
x_383 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_382);
|
||||
if (lean_obj_tag(x_383) == 0)
|
||||
if (lean_obj_tag(x_380) == 0)
|
||||
{
|
||||
lean_object* x_384;
|
||||
lean_object* x_383;
|
||||
lean_dec(x_381);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -19400,22 +19397,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_384 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_384, 0, x_3);
|
||||
lean_ctor_set(x_384, 1, x_12);
|
||||
return x_384;
|
||||
x_383 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_383, 0, x_3);
|
||||
lean_ctor_set(x_383, 1, x_12);
|
||||
return x_383;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_385; lean_object* x_386;
|
||||
x_385 = lean_ctor_get(x_383, 0);
|
||||
lean_object* x_384; lean_object* x_385; lean_object* x_386;
|
||||
x_384 = lean_ctor_get(x_381, 0);
|
||||
lean_inc(x_384);
|
||||
lean_dec(x_381);
|
||||
x_385 = lean_ctor_get(x_380, 0);
|
||||
lean_inc(x_385);
|
||||
lean_dec(x_383);
|
||||
lean_dec(x_380);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_386 = l_Lean_Meta_isInductivePredicate(x_381, x_8, x_9, x_10, x_11, x_12);
|
||||
x_386 = l_Lean_Meta_isInductivePredicate(x_384, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_386) == 0)
|
||||
{
|
||||
lean_object* x_387; uint8_t x_388;
|
||||
|
|
@ -19729,36 +19729,33 @@ return x_450;
|
|||
}
|
||||
case 7:
|
||||
{
|
||||
lean_object* x_451;
|
||||
lean_object* x_451; lean_object* x_452; lean_object* x_453;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_451 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_451 = lean_unsigned_to_nat(0u);
|
||||
x_452 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_451);
|
||||
x_453 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_451) == 0)
|
||||
if (lean_obj_tag(x_453) == 0)
|
||||
{
|
||||
lean_object* x_452;
|
||||
lean_object* x_454;
|
||||
lean_dec(x_452);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_452 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_452, 0, x_3);
|
||||
lean_ctor_set(x_452, 1, x_12);
|
||||
return x_452;
|
||||
x_454 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_454, 0, x_3);
|
||||
lean_ctor_set(x_454, 1, x_12);
|
||||
return x_454;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_453; lean_object* x_454; lean_object* x_455;
|
||||
x_453 = lean_ctor_get(x_451, 0);
|
||||
lean_inc(x_453);
|
||||
lean_dec(x_451);
|
||||
x_454 = lean_unsigned_to_nat(0u);
|
||||
x_455 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_454);
|
||||
if (lean_obj_tag(x_455) == 0)
|
||||
if (lean_obj_tag(x_452) == 0)
|
||||
{
|
||||
lean_object* x_456;
|
||||
lean_object* x_455;
|
||||
lean_dec(x_453);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -19766,22 +19763,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_456 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_456, 0, x_3);
|
||||
lean_ctor_set(x_456, 1, x_12);
|
||||
return x_456;
|
||||
x_455 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_455, 0, x_3);
|
||||
lean_ctor_set(x_455, 1, x_12);
|
||||
return x_455;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_457; lean_object* x_458;
|
||||
x_457 = lean_ctor_get(x_455, 0);
|
||||
lean_object* x_456; lean_object* x_457; lean_object* x_458;
|
||||
x_456 = lean_ctor_get(x_453, 0);
|
||||
lean_inc(x_456);
|
||||
lean_dec(x_453);
|
||||
x_457 = lean_ctor_get(x_452, 0);
|
||||
lean_inc(x_457);
|
||||
lean_dec(x_455);
|
||||
lean_dec(x_452);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_458 = l_Lean_Meta_isInductivePredicate(x_453, x_8, x_9, x_10, x_11, x_12);
|
||||
x_458 = l_Lean_Meta_isInductivePredicate(x_456, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_458) == 0)
|
||||
{
|
||||
lean_object* x_459; uint8_t x_460;
|
||||
|
|
@ -20095,36 +20095,33 @@ return x_522;
|
|||
}
|
||||
case 8:
|
||||
{
|
||||
lean_object* x_523;
|
||||
lean_object* x_523; lean_object* x_524; lean_object* x_525;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_523 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_523 = lean_unsigned_to_nat(0u);
|
||||
x_524 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_523);
|
||||
x_525 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_523) == 0)
|
||||
if (lean_obj_tag(x_525) == 0)
|
||||
{
|
||||
lean_object* x_524;
|
||||
lean_object* x_526;
|
||||
lean_dec(x_524);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_524 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_524, 0, x_3);
|
||||
lean_ctor_set(x_524, 1, x_12);
|
||||
return x_524;
|
||||
x_526 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_526, 0, x_3);
|
||||
lean_ctor_set(x_526, 1, x_12);
|
||||
return x_526;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_525; lean_object* x_526; lean_object* x_527;
|
||||
x_525 = lean_ctor_get(x_523, 0);
|
||||
lean_inc(x_525);
|
||||
lean_dec(x_523);
|
||||
x_526 = lean_unsigned_to_nat(0u);
|
||||
x_527 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_526);
|
||||
if (lean_obj_tag(x_527) == 0)
|
||||
if (lean_obj_tag(x_524) == 0)
|
||||
{
|
||||
lean_object* x_528;
|
||||
lean_object* x_527;
|
||||
lean_dec(x_525);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -20132,22 +20129,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_528 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_528, 0, x_3);
|
||||
lean_ctor_set(x_528, 1, x_12);
|
||||
return x_528;
|
||||
x_527 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_527, 0, x_3);
|
||||
lean_ctor_set(x_527, 1, x_12);
|
||||
return x_527;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_529; lean_object* x_530;
|
||||
x_529 = lean_ctor_get(x_527, 0);
|
||||
lean_object* x_528; lean_object* x_529; lean_object* x_530;
|
||||
x_528 = lean_ctor_get(x_525, 0);
|
||||
lean_inc(x_528);
|
||||
lean_dec(x_525);
|
||||
x_529 = lean_ctor_get(x_524, 0);
|
||||
lean_inc(x_529);
|
||||
lean_dec(x_527);
|
||||
lean_dec(x_524);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_530 = l_Lean_Meta_isInductivePredicate(x_525, x_8, x_9, x_10, x_11, x_12);
|
||||
x_530 = l_Lean_Meta_isInductivePredicate(x_528, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_530) == 0)
|
||||
{
|
||||
lean_object* x_531; uint8_t x_532;
|
||||
|
|
@ -20461,36 +20461,33 @@ return x_594;
|
|||
}
|
||||
case 9:
|
||||
{
|
||||
lean_object* x_595;
|
||||
lean_object* x_595; lean_object* x_596; lean_object* x_597;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_595 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_595 = lean_unsigned_to_nat(0u);
|
||||
x_596 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_595);
|
||||
x_597 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_595) == 0)
|
||||
if (lean_obj_tag(x_597) == 0)
|
||||
{
|
||||
lean_object* x_596;
|
||||
lean_object* x_598;
|
||||
lean_dec(x_596);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_596 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_596, 0, x_3);
|
||||
lean_ctor_set(x_596, 1, x_12);
|
||||
return x_596;
|
||||
x_598 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_598, 0, x_3);
|
||||
lean_ctor_set(x_598, 1, x_12);
|
||||
return x_598;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_597; lean_object* x_598; lean_object* x_599;
|
||||
x_597 = lean_ctor_get(x_595, 0);
|
||||
lean_inc(x_597);
|
||||
lean_dec(x_595);
|
||||
x_598 = lean_unsigned_to_nat(0u);
|
||||
x_599 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_598);
|
||||
if (lean_obj_tag(x_599) == 0)
|
||||
if (lean_obj_tag(x_596) == 0)
|
||||
{
|
||||
lean_object* x_600;
|
||||
lean_object* x_599;
|
||||
lean_dec(x_597);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -20498,22 +20495,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_600 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_600, 0, x_3);
|
||||
lean_ctor_set(x_600, 1, x_12);
|
||||
return x_600;
|
||||
x_599 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_599, 0, x_3);
|
||||
lean_ctor_set(x_599, 1, x_12);
|
||||
return x_599;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_601; lean_object* x_602;
|
||||
x_601 = lean_ctor_get(x_599, 0);
|
||||
lean_object* x_600; lean_object* x_601; lean_object* x_602;
|
||||
x_600 = lean_ctor_get(x_597, 0);
|
||||
lean_inc(x_600);
|
||||
lean_dec(x_597);
|
||||
x_601 = lean_ctor_get(x_596, 0);
|
||||
lean_inc(x_601);
|
||||
lean_dec(x_599);
|
||||
lean_dec(x_596);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_602 = l_Lean_Meta_isInductivePredicate(x_597, x_8, x_9, x_10, x_11, x_12);
|
||||
x_602 = l_Lean_Meta_isInductivePredicate(x_600, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_602) == 0)
|
||||
{
|
||||
lean_object* x_603; uint8_t x_604;
|
||||
|
|
@ -20827,36 +20827,33 @@ return x_666;
|
|||
}
|
||||
case 10:
|
||||
{
|
||||
lean_object* x_667;
|
||||
lean_object* x_667; lean_object* x_668; lean_object* x_669;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_667 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_667 = lean_unsigned_to_nat(0u);
|
||||
x_668 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_667);
|
||||
x_669 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_667) == 0)
|
||||
if (lean_obj_tag(x_669) == 0)
|
||||
{
|
||||
lean_object* x_668;
|
||||
lean_object* x_670;
|
||||
lean_dec(x_668);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_668 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_668, 0, x_3);
|
||||
lean_ctor_set(x_668, 1, x_12);
|
||||
return x_668;
|
||||
x_670 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_670, 0, x_3);
|
||||
lean_ctor_set(x_670, 1, x_12);
|
||||
return x_670;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_669; lean_object* x_670; lean_object* x_671;
|
||||
x_669 = lean_ctor_get(x_667, 0);
|
||||
lean_inc(x_669);
|
||||
lean_dec(x_667);
|
||||
x_670 = lean_unsigned_to_nat(0u);
|
||||
x_671 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_670);
|
||||
if (lean_obj_tag(x_671) == 0)
|
||||
if (lean_obj_tag(x_668) == 0)
|
||||
{
|
||||
lean_object* x_672;
|
||||
lean_object* x_671;
|
||||
lean_dec(x_669);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -20864,22 +20861,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_672 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_672, 0, x_3);
|
||||
lean_ctor_set(x_672, 1, x_12);
|
||||
return x_672;
|
||||
x_671 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_671, 0, x_3);
|
||||
lean_ctor_set(x_671, 1, x_12);
|
||||
return x_671;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_673; lean_object* x_674;
|
||||
x_673 = lean_ctor_get(x_671, 0);
|
||||
lean_object* x_672; lean_object* x_673; lean_object* x_674;
|
||||
x_672 = lean_ctor_get(x_669, 0);
|
||||
lean_inc(x_672);
|
||||
lean_dec(x_669);
|
||||
x_673 = lean_ctor_get(x_668, 0);
|
||||
lean_inc(x_673);
|
||||
lean_dec(x_671);
|
||||
lean_dec(x_668);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_674 = l_Lean_Meta_isInductivePredicate(x_669, x_8, x_9, x_10, x_11, x_12);
|
||||
x_674 = l_Lean_Meta_isInductivePredicate(x_672, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_674) == 0)
|
||||
{
|
||||
lean_object* x_675; uint8_t x_676;
|
||||
|
|
@ -21193,36 +21193,33 @@ return x_738;
|
|||
}
|
||||
default:
|
||||
{
|
||||
lean_object* x_739;
|
||||
lean_object* x_739; lean_object* x_740; lean_object* x_741;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_739 = l_Lean_Expr_constName_x3f(x_5);
|
||||
x_739 = lean_unsigned_to_nat(0u);
|
||||
x_740 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_739);
|
||||
x_741 = l_Lean_Expr_constName_x3f(x_5);
|
||||
lean_dec(x_5);
|
||||
if (lean_obj_tag(x_739) == 0)
|
||||
if (lean_obj_tag(x_741) == 0)
|
||||
{
|
||||
lean_object* x_740;
|
||||
lean_object* x_742;
|
||||
lean_dec(x_740);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_740 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_740, 0, x_3);
|
||||
lean_ctor_set(x_740, 1, x_12);
|
||||
return x_740;
|
||||
x_742 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_742, 0, x_3);
|
||||
lean_ctor_set(x_742, 1, x_12);
|
||||
return x_742;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_741; lean_object* x_742; lean_object* x_743;
|
||||
x_741 = lean_ctor_get(x_739, 0);
|
||||
lean_inc(x_741);
|
||||
lean_dec(x_739);
|
||||
x_742 = lean_unsigned_to_nat(0u);
|
||||
x_743 = l_Array_indexOfAux___at_Lean_Meta_getElimInfo___spec__1(x_1, x_4, x_742);
|
||||
if (lean_obj_tag(x_743) == 0)
|
||||
if (lean_obj_tag(x_740) == 0)
|
||||
{
|
||||
lean_object* x_744;
|
||||
lean_object* x_743;
|
||||
lean_dec(x_741);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -21230,22 +21227,25 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_744 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_744, 0, x_3);
|
||||
lean_ctor_set(x_744, 1, x_12);
|
||||
return x_744;
|
||||
x_743 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_743, 0, x_3);
|
||||
lean_ctor_set(x_743, 1, x_12);
|
||||
return x_743;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_745; lean_object* x_746;
|
||||
x_745 = lean_ctor_get(x_743, 0);
|
||||
lean_object* x_744; lean_object* x_745; lean_object* x_746;
|
||||
x_744 = lean_ctor_get(x_741, 0);
|
||||
lean_inc(x_744);
|
||||
lean_dec(x_741);
|
||||
x_745 = lean_ctor_get(x_740, 0);
|
||||
lean_inc(x_745);
|
||||
lean_dec(x_743);
|
||||
lean_dec(x_740);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_746 = l_Lean_Meta_isInductivePredicate(x_741, x_8, x_9, x_10, x_11, x_12);
|
||||
x_746 = l_Lean_Meta_isInductivePredicate(x_744, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_746) == 0)
|
||||
{
|
||||
lean_object* x_747; uint8_t x_748;
|
||||
|
|
|
|||
1355
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
1355
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
File diff suppressed because it is too large
Load diff
152
stage0/stdlib/Lean/Meta/SizeOf.c
generated
152
stage0/stdlib/Lean/Meta/SizeOf.c
generated
|
|
@ -7396,56 +7396,56 @@ lean_inc(x_2);
|
|||
x_18 = l_Lean_Meta_whnfI(x_2, x_6, x_7, x_8, x_9, x_17);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = l_Lean_Expr_natAdd_x3f(x_16);
|
||||
lean_dec(x_16);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_21 = l_Lean_Expr_natAdd_x3f(x_19);
|
||||
lean_dec(x_19);
|
||||
x_22 = l_Lean_Expr_natAdd_x3f(x_16);
|
||||
lean_dec(x_16);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_21);
|
||||
lean_dec(x_3);
|
||||
x_22 = l_Lean_indentExpr(x_1);
|
||||
x_23 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
x_24 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
x_25 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__4;
|
||||
x_26 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = l_Lean_indentExpr(x_2);
|
||||
x_28 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
x_29 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__9;
|
||||
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_Meta_SizeOfSpecNested_throwUnexpected___rarg(x_30, x_5, x_6, x_7, x_8, x_9, x_20);
|
||||
x_23 = l_Lean_indentExpr(x_1);
|
||||
x_24 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
x_25 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
x_26 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__4;
|
||||
x_27 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_25);
|
||||
lean_ctor_set(x_27, 1, x_26);
|
||||
x_28 = l_Lean_indentExpr(x_2);
|
||||
x_29 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__9;
|
||||
x_31 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
x_32 = l_Lean_Meta_SizeOfSpecNested_throwUnexpected___rarg(x_31, x_5, x_6, x_7, x_8, x_9, x_20);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_31;
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_21);
|
||||
x_33 = l_Lean_Expr_natAdd_x3f(x_19);
|
||||
lean_dec(x_19);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
lean_object* x_33;
|
||||
x_33 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_22);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_33);
|
||||
lean_dec(x_3);
|
||||
x_34 = l_Lean_indentExpr(x_1);
|
||||
x_35 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
|
|
@ -7477,14 +7477,14 @@ else
|
|||
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_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_44 = lean_ctor_get(x_33, 0);
|
||||
x_44 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_33);
|
||||
x_45 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_21);
|
||||
x_45 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_32, 1);
|
||||
x_46 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_33);
|
||||
x_47 = lean_ctor_get(x_44, 0);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_44, 1);
|
||||
|
|
@ -12219,55 +12219,55 @@ lean_inc(x_2);
|
|||
x_17 = l_Lean_Meta_whnfI(x_2, x_5, x_6, x_7, x_8, x_16);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = l_Lean_Expr_natAdd_x3f(x_15);
|
||||
lean_dec(x_15);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_20 = l_Lean_Expr_natAdd_x3f(x_18);
|
||||
lean_dec(x_18);
|
||||
x_21 = l_Lean_indentExpr(x_1);
|
||||
x_22 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
x_23 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_22);
|
||||
lean_ctor_set(x_23, 1, x_21);
|
||||
x_24 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__4;
|
||||
x_25 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
x_26 = l_Lean_indentExpr(x_2);
|
||||
x_27 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_25);
|
||||
lean_ctor_set(x_27, 1, x_26);
|
||||
x_28 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__9;
|
||||
x_29 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l_Lean_Meta_SizeOfSpecNested_throwUnexpected___rarg(x_29, x_4, x_5, x_6, x_7, x_8, x_19);
|
||||
x_21 = l_Lean_Expr_natAdd_x3f(x_15);
|
||||
lean_dec(x_15);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Lean_indentExpr(x_1);
|
||||
x_23 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
x_24 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
x_25 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__4;
|
||||
x_26 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = l_Lean_indentExpr(x_2);
|
||||
x_28 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
x_29 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__9;
|
||||
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_Meta_SizeOfSpecNested_throwUnexpected___rarg(x_30, x_4, x_5, x_6, x_7, x_8, x_19);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_30;
|
||||
return x_31;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32;
|
||||
x_31 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_20);
|
||||
x_32 = l_Lean_Expr_natAdd_x3f(x_18);
|
||||
lean_dec(x_18);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
lean_object* x_32;
|
||||
x_32 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_21);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_dec(x_31);
|
||||
lean_dec(x_32);
|
||||
x_33 = l_Lean_indentExpr(x_1);
|
||||
x_34 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkMinorProof___lambda__1___closed__2;
|
||||
x_35 = lean_alloc_ctor(10, 2, 0);
|
||||
|
|
@ -12298,14 +12298,14 @@ else
|
|||
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_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_43 = lean_ctor_get(x_32, 0);
|
||||
x_43 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_32);
|
||||
x_44 = lean_ctor_get(x_31, 0);
|
||||
lean_dec(x_20);
|
||||
x_44 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_31, 1);
|
||||
x_45 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_31);
|
||||
lean_dec(x_32);
|
||||
x_46 = lean_ctor_get(x_43, 0);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_43, 1);
|
||||
|
|
|
|||
96
stage0/stdlib/Lean/Meta/Tactic/Injection.c
generated
96
stage0/stdlib/Lean/Meta/Tactic/Injection.c
generated
|
|
@ -560,7 +560,7 @@ lean_inc(x_1);
|
|||
x_33 = l_Lean_Meta_getMVarType(x_1, x_4, x_5, x_6, x_7, x_32);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
{
|
||||
lean_object* x_34; 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_34; 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;
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_33, 1);
|
||||
|
|
@ -576,51 +576,49 @@ x_39 = lean_ctor_get(x_37, 0);
|
|||
lean_inc(x_39);
|
||||
lean_dec(x_37);
|
||||
lean_inc(x_39);
|
||||
x_40 = l_Lean_Expr_isConstructorApp_x3f(x_39, x_28);
|
||||
x_40 = l_Lean_Expr_isConstructorApp_x3f(x_39, x_31);
|
||||
lean_dec(x_31);
|
||||
x_41 = l_Lean_Expr_isConstructorApp_x3f(x_39, x_28);
|
||||
lean_dec(x_28);
|
||||
if (lean_obj_tag(x_41) == 0)
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
lean_dec(x_40);
|
||||
lean_dec(x_34);
|
||||
lean_dec(x_3);
|
||||
x_42 = l_Lean_Meta_injectionCore___lambda__1___closed__8;
|
||||
x_43 = lean_box(0);
|
||||
x_44 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_42, x_43, x_4, x_5, x_6, x_7, x_38);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
return x_44;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lean_obj_tag(x_40) == 0)
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
lean_dec(x_39);
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
lean_dec(x_41);
|
||||
lean_dec(x_34);
|
||||
lean_dec(x_31);
|
||||
lean_dec(x_3);
|
||||
x_41 = l_Lean_Meta_injectionCore___lambda__1___closed__8;
|
||||
x_42 = lean_box(0);
|
||||
x_43 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_41, x_42, x_4, x_5, x_6, x_7, x_38);
|
||||
x_45 = l_Lean_Meta_injectionCore___lambda__1___closed__8;
|
||||
x_46 = lean_box(0);
|
||||
x_47 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_45, x_46, x_4, x_5, x_6, x_7, x_38);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
return x_43;
|
||||
return x_47;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45;
|
||||
x_44 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_40);
|
||||
x_45 = l_Lean_Expr_isConstructorApp_x3f(x_39, x_31);
|
||||
lean_dec(x_31);
|
||||
if (lean_obj_tag(x_45) == 0)
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_34);
|
||||
lean_dec(x_3);
|
||||
x_46 = l_Lean_Meta_injectionCore___lambda__1___closed__8;
|
||||
x_47 = lean_box(0);
|
||||
x_48 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_46, x_47, x_4, x_5, x_6, x_7, x_38);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_45, 0);
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_48 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_41);
|
||||
x_49 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_45);
|
||||
lean_dec(x_40);
|
||||
lean_inc(x_3);
|
||||
x_50 = l_Lean_mkFVar(x_3);
|
||||
lean_inc(x_7);
|
||||
|
|
@ -636,7 +634,7 @@ lean_inc(x_52);
|
|||
x_53 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_51);
|
||||
x_54 = lean_ctor_get(x_44, 0);
|
||||
x_54 = lean_ctor_get(x_48, 0);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
|
|
@ -653,7 +651,7 @@ lean_dec(x_55);
|
|||
if (x_58 == 0)
|
||||
{
|
||||
lean_object* x_59; uint8_t x_60;
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_59 = l_Lean_Meta_assignExprMVar(x_1, x_52, x_4, x_5, x_6, x_7, x_53);
|
||||
|
|
@ -760,8 +758,8 @@ lean_inc(x_85);
|
|||
x_86 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_84);
|
||||
lean_inc(x_44);
|
||||
x_87 = l_Lean_Meta_getCtorNumPropFields(x_44, x_4, x_5, x_6, x_7, x_86);
|
||||
lean_inc(x_48);
|
||||
x_87 = l_Lean_Meta_getCtorNumPropFields(x_48, x_4, x_5, x_6, x_7, x_86);
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
uint8_t x_88;
|
||||
|
|
@ -770,9 +768,9 @@ if (x_88 == 0)
|
|||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_89 = lean_ctor_get(x_87, 0);
|
||||
x_90 = lean_ctor_get(x_44, 4);
|
||||
x_90 = lean_ctor_get(x_48, 4);
|
||||
lean_inc(x_90);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
x_91 = lean_nat_sub(x_90, x_89);
|
||||
lean_dec(x_89);
|
||||
lean_dec(x_90);
|
||||
|
|
@ -790,9 +788,9 @@ x_94 = lean_ctor_get(x_87, 1);
|
|||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_87);
|
||||
x_95 = lean_ctor_get(x_44, 4);
|
||||
x_95 = lean_ctor_get(x_48, 4);
|
||||
lean_inc(x_95);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
x_96 = lean_nat_sub(x_95, x_93);
|
||||
lean_dec(x_93);
|
||||
lean_dec(x_95);
|
||||
|
|
@ -809,7 +807,7 @@ else
|
|||
{
|
||||
uint8_t x_99;
|
||||
lean_dec(x_85);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
x_99 = !lean_is_exclusive(x_87);
|
||||
if (x_99 == 0)
|
||||
{
|
||||
|
|
@ -833,7 +831,7 @@ return x_102;
|
|||
else
|
||||
{
|
||||
uint8_t x_103;
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -863,7 +861,7 @@ else
|
|||
uint8_t x_107;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_52);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -895,7 +893,7 @@ else
|
|||
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114;
|
||||
lean_dec(x_70);
|
||||
lean_dec(x_52);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_3);
|
||||
x_111 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_111);
|
||||
|
|
@ -913,7 +911,7 @@ else
|
|||
{
|
||||
uint8_t x_115;
|
||||
lean_dec(x_52);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -945,7 +943,7 @@ else
|
|||
{
|
||||
uint8_t x_119;
|
||||
lean_dec(x_52);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -978,7 +976,7 @@ else
|
|||
{
|
||||
uint8_t x_123;
|
||||
lean_dec(x_49);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_48);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
|
|||
170
stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c
generated
170
stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c
generated
|
|
@ -7757,39 +7757,38 @@ x_25 = lean_st_ref_get(x_5, x_24);
|
|||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_27);
|
||||
lean_inc(x_29);
|
||||
x_30 = l_Lean_Expr_constructorApp_x3f(x_29, x_20);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
x_30 = l_Lean_Expr_constructorApp_x3f(x_29, x_23);
|
||||
x_31 = l_Lean_Expr_constructorApp_x3f(x_29, x_20);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_31;
|
||||
lean_dec(x_29);
|
||||
lean_dec(x_23);
|
||||
lean_object* x_32;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_31 = lean_box(0);
|
||||
lean_ctor_set(x_25, 0, x_31);
|
||||
x_32 = lean_box(0);
|
||||
lean_ctor_set(x_25, 0, x_32);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_30);
|
||||
x_33 = l_Lean_Expr_constructorApp_x3f(x_29, x_23);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
lean_object* x_33;
|
||||
x_33 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_31);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_33);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -7802,12 +7801,12 @@ return x_25;
|
|||
else
|
||||
{
|
||||
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; uint8_t x_42;
|
||||
x_35 = lean_ctor_get(x_33, 0);
|
||||
x_35 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_33);
|
||||
x_36 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_30);
|
||||
x_36 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_33);
|
||||
x_37 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_35);
|
||||
|
|
@ -7896,7 +7895,7 @@ return x_25;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59;
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_56 = lean_ctor_get(x_25, 0);
|
||||
x_57 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_57);
|
||||
|
|
@ -7906,34 +7905,33 @@ x_58 = lean_ctor_get(x_56, 0);
|
|||
lean_inc(x_58);
|
||||
lean_dec(x_56);
|
||||
lean_inc(x_58);
|
||||
x_59 = l_Lean_Expr_constructorApp_x3f(x_58, x_20);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
x_59 = l_Lean_Expr_constructorApp_x3f(x_58, x_23);
|
||||
x_60 = l_Lean_Expr_constructorApp_x3f(x_58, x_20);
|
||||
if (lean_obj_tag(x_60) == 0)
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61;
|
||||
lean_dec(x_58);
|
||||
lean_dec(x_23);
|
||||
lean_object* x_61; lean_object* x_62;
|
||||
lean_dec(x_59);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_60 = lean_box(0);
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_57);
|
||||
return x_61;
|
||||
x_61 = lean_box(0);
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_57);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_62; lean_object* x_63;
|
||||
x_62 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_59);
|
||||
x_63 = l_Lean_Expr_constructorApp_x3f(x_58, x_23);
|
||||
if (lean_obj_tag(x_63) == 0)
|
||||
lean_object* x_63;
|
||||
x_63 = lean_ctor_get(x_60, 0);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_60);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65;
|
||||
lean_dec(x_62);
|
||||
lean_dec(x_63);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -7948,12 +7946,12 @@ return x_65;
|
|||
else
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73;
|
||||
x_66 = lean_ctor_get(x_63, 0);
|
||||
x_66 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_63);
|
||||
x_67 = lean_ctor_get(x_62, 0);
|
||||
lean_dec(x_59);
|
||||
x_67 = lean_ctor_get(x_63, 0);
|
||||
lean_inc(x_67);
|
||||
lean_dec(x_62);
|
||||
lean_dec(x_63);
|
||||
x_68 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_66);
|
||||
|
|
@ -8158,7 +8156,7 @@ lean_inc(x_2);
|
|||
x_114 = lean_whnf(x_14, x_2, x_3, x_4, x_5, x_113);
|
||||
if (lean_obj_tag(x_114) == 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; lean_object* x_121; lean_object* x_122;
|
||||
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123;
|
||||
x_115 = lean_ctor_get(x_114, 0);
|
||||
lean_inc(x_115);
|
||||
x_116 = lean_ctor_get(x_114, 1);
|
||||
|
|
@ -8181,38 +8179,37 @@ x_121 = lean_ctor_get(x_118, 0);
|
|||
lean_inc(x_121);
|
||||
lean_dec(x_118);
|
||||
lean_inc(x_121);
|
||||
x_122 = l_Lean_Expr_constructorApp_x3f(x_121, x_112);
|
||||
if (lean_obj_tag(x_122) == 0)
|
||||
x_122 = l_Lean_Expr_constructorApp_x3f(x_121, x_115);
|
||||
x_123 = l_Lean_Expr_constructorApp_x3f(x_121, x_112);
|
||||
if (lean_obj_tag(x_123) == 0)
|
||||
{
|
||||
lean_object* x_123; lean_object* x_124;
|
||||
lean_dec(x_121);
|
||||
lean_dec(x_115);
|
||||
lean_object* x_124; lean_object* x_125;
|
||||
lean_dec(x_122);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_123 = lean_box(0);
|
||||
x_124 = lean_box(0);
|
||||
if (lean_is_scalar(x_120)) {
|
||||
x_124 = lean_alloc_ctor(0, 2, 0);
|
||||
x_125 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_124 = x_120;
|
||||
x_125 = x_120;
|
||||
}
|
||||
lean_ctor_set(x_124, 0, x_123);
|
||||
lean_ctor_set(x_124, 1, x_119);
|
||||
return x_124;
|
||||
lean_ctor_set(x_125, 0, x_124);
|
||||
lean_ctor_set(x_125, 1, x_119);
|
||||
return x_125;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_125; lean_object* x_126;
|
||||
x_125 = lean_ctor_get(x_122, 0);
|
||||
lean_inc(x_125);
|
||||
lean_dec(x_122);
|
||||
x_126 = l_Lean_Expr_constructorApp_x3f(x_121, x_115);
|
||||
if (lean_obj_tag(x_126) == 0)
|
||||
lean_object* x_126;
|
||||
x_126 = lean_ctor_get(x_123, 0);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_123);
|
||||
if (lean_obj_tag(x_122) == 0)
|
||||
{
|
||||
lean_object* x_127; lean_object* x_128;
|
||||
lean_dec(x_125);
|
||||
lean_dec(x_126);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -8231,12 +8228,12 @@ return x_128;
|
|||
else
|
||||
{
|
||||
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136;
|
||||
x_129 = lean_ctor_get(x_126, 0);
|
||||
x_129 = lean_ctor_get(x_122, 0);
|
||||
lean_inc(x_129);
|
||||
lean_dec(x_126);
|
||||
x_130 = lean_ctor_get(x_125, 0);
|
||||
lean_dec(x_122);
|
||||
x_130 = lean_ctor_get(x_126, 0);
|
||||
lean_inc(x_130);
|
||||
lean_dec(x_125);
|
||||
lean_dec(x_126);
|
||||
x_131 = lean_ctor_get(x_129, 0);
|
||||
lean_inc(x_131);
|
||||
lean_dec(x_129);
|
||||
|
|
@ -8478,7 +8475,7 @@ lean_inc(x_181);
|
|||
x_185 = lean_whnf(x_14, x_181, x_3, x_4, x_5, x_184);
|
||||
if (lean_obj_tag(x_185) == 0)
|
||||
{
|
||||
lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193;
|
||||
lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194;
|
||||
x_186 = lean_ctor_get(x_185, 0);
|
||||
lean_inc(x_186);
|
||||
x_187 = lean_ctor_get(x_185, 1);
|
||||
|
|
@ -8501,38 +8498,37 @@ x_192 = lean_ctor_get(x_189, 0);
|
|||
lean_inc(x_192);
|
||||
lean_dec(x_189);
|
||||
lean_inc(x_192);
|
||||
x_193 = l_Lean_Expr_constructorApp_x3f(x_192, x_183);
|
||||
if (lean_obj_tag(x_193) == 0)
|
||||
x_193 = l_Lean_Expr_constructorApp_x3f(x_192, x_186);
|
||||
x_194 = l_Lean_Expr_constructorApp_x3f(x_192, x_183);
|
||||
if (lean_obj_tag(x_194) == 0)
|
||||
{
|
||||
lean_object* x_194; lean_object* x_195;
|
||||
lean_dec(x_192);
|
||||
lean_dec(x_186);
|
||||
lean_object* x_195; lean_object* x_196;
|
||||
lean_dec(x_193);
|
||||
lean_dec(x_181);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_194 = lean_box(0);
|
||||
x_195 = lean_box(0);
|
||||
if (lean_is_scalar(x_191)) {
|
||||
x_195 = lean_alloc_ctor(0, 2, 0);
|
||||
x_196 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_195 = x_191;
|
||||
x_196 = x_191;
|
||||
}
|
||||
lean_ctor_set(x_195, 0, x_194);
|
||||
lean_ctor_set(x_195, 1, x_190);
|
||||
return x_195;
|
||||
lean_ctor_set(x_196, 0, x_195);
|
||||
lean_ctor_set(x_196, 1, x_190);
|
||||
return x_196;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_196; lean_object* x_197;
|
||||
x_196 = lean_ctor_get(x_193, 0);
|
||||
lean_inc(x_196);
|
||||
lean_dec(x_193);
|
||||
x_197 = l_Lean_Expr_constructorApp_x3f(x_192, x_186);
|
||||
if (lean_obj_tag(x_197) == 0)
|
||||
lean_object* x_197;
|
||||
x_197 = lean_ctor_get(x_194, 0);
|
||||
lean_inc(x_197);
|
||||
lean_dec(x_194);
|
||||
if (lean_obj_tag(x_193) == 0)
|
||||
{
|
||||
lean_object* x_198; lean_object* x_199;
|
||||
lean_dec(x_196);
|
||||
lean_dec(x_197);
|
||||
lean_dec(x_181);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
|
|
@ -8551,12 +8547,12 @@ return x_199;
|
|||
else
|
||||
{
|
||||
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207;
|
||||
x_200 = lean_ctor_get(x_197, 0);
|
||||
x_200 = lean_ctor_get(x_193, 0);
|
||||
lean_inc(x_200);
|
||||
lean_dec(x_197);
|
||||
x_201 = lean_ctor_get(x_196, 0);
|
||||
lean_dec(x_193);
|
||||
x_201 = lean_ctor_get(x_197, 0);
|
||||
lean_inc(x_201);
|
||||
lean_dec(x_196);
|
||||
lean_dec(x_197);
|
||||
x_202 = lean_ctor_get(x_200, 0);
|
||||
lean_inc(x_202);
|
||||
lean_dec(x_200);
|
||||
|
|
|
|||
1137
stage0/stdlib/Lean/Parser/Command.c
generated
1137
stage0/stdlib/Lean/Parser/Command.c
generated
File diff suppressed because it is too large
Load diff
1296
stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c
generated
1296
stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c
generated
File diff suppressed because it is too large
Load diff
121
stage0/stdlib/Lean/Server/InfoUtils.c
generated
121
stage0/stdlib/Lean/Server/InfoUtils.c
generated
|
|
@ -634,51 +634,52 @@ return x_4;
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_getRange_x3f(lean_object* x_1, uint8_t x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_Syntax_getPos_x3f(x_1, x_2);
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
lean_inc(x_1);
|
||||
x_3 = l_Lean_Syntax_getTailPos_x3f(x_1, x_2);
|
||||
x_4 = l_Lean_Syntax_getPos_x3f(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(0);
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_Syntax_getTailPos_x3f(x_1, x_2);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_box(0);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = !lean_is_exclusive(x_6);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10;
|
||||
x_9 = lean_ctor_get(x_6, 0);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_5);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
lean_ctor_set(x_6, 0, x_10);
|
||||
lean_object* x_6;
|
||||
lean_dec(x_4);
|
||||
x_6 = lean_box(0);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_4);
|
||||
x_8 = !lean_is_exclusive(x_3);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10;
|
||||
x_9 = lean_ctor_get(x_3, 0);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_7);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
lean_ctor_set(x_3, 0, x_10);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = lean_ctor_get(x_6, 0);
|
||||
x_11 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_3);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_5);
|
||||
lean_ctor_set(x_12, 0, x_7);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
x_13 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
|
|
@ -3134,37 +3135,37 @@ return x_2;
|
|||
LEAN_EXPORT uint8_t l_Lean_Elab_Info_isSmaller(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_Elab_Info_size_x3f(x_1);
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = l_Lean_Elab_Info_pos_x3f(x_2);
|
||||
x_4 = l_Lean_Elab_Info_size_x3f(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_5;
|
||||
lean_dec(x_3);
|
||||
x_5 = 0;
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = 0;
|
||||
return x_4;
|
||||
uint8_t x_6;
|
||||
lean_dec(x_4);
|
||||
x_6 = 1;
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_Elab_Info_pos_x3f(x_2);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
uint8_t x_7;
|
||||
lean_dec(x_5);
|
||||
x_7 = 1;
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; uint8_t x_9;
|
||||
x_8 = lean_ctor_get(x_6, 0);
|
||||
lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_7 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_4);
|
||||
x_8 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_9 = lean_nat_dec_lt(x_5, x_8);
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_nat_dec_lt(x_7, x_8);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue