module
stringlengths
16
90
startPos
dict
endPos
dict
goals
listlengths
0
96
ppTac
stringlengths
1
14.5k
elaborator
stringclasses
366 values
kind
stringclasses
370 values
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 142, "column": 2 }
{ "line": 142, "column": 68 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nhodd : Odd (Nat.card V)\n⊢ 0 < (⊤.deleteVerts ∅).coe.oddComponents.ncard", "usedConstants": [ "Iff.mpr", "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "Nat.instNontrivial", "congrArg", "SimpleGraph.Subgraph", ...
exact ((odd_ncard_oddComponents _).mpr <| by simpa using hodd).pos
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 152, "column": 2 }
{ "line": 152, "column": 31 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nM : G.Subgraph\nhM : M.IsPerfectMatching\nu : Set V\nf : ↑(⊤.deleteVerts u).coe.oddComponents → V\nhf : ∀ (c : ↑(⊤.deleteVerts u).coe.oddComponents), f c ∈ u\ng : ↑(⊤.deleteVerts u).coe.oddComponents → ↑(⊤.deleteVerts u).verts\nhgf : ∀ (c : ↑(⊤.deleteV...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 173, "column": 42 }
{ "line": 174, "column": 9 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nx a b c : V\nM1 : (G ⊔ edge x b).Subgraph\nM2 : (G ⊔ edge a c).Subgraph\nhxa : G.Adj x a\nhab : G.Adj a b\nhnGxb : ¬G.Adj x b\nhnGac : ¬G.Adj a c\nhnxb : x ≠ b\nhnxc : x ≠ c\nhnac : a ≠ c\nhnbc : b ≠ c\nhM1 : M1.IsPerfectMatching\nhM2 : M2.IsPerfectMat...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.Basic
{ "line": 366, "column": 42 }
{ "line": 366, "column": 66 }
[ { "pp": "⊢ Primrec₂ Nat.pair", "usedConstants": [ "Eq.mpr", "Nat.Primrec", "Denumerable.prod", "Equiv.instEquivLike", "congrArg", "Primcodable.ofDenumerable", "Nat.unpair", "Option.some", "Option.encodable", "id", "Equiv", "instOfNatNat...
simp [Primrec₂, Primrec]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Computability.Primrec.Basic
{ "line": 369, "column": 15 }
{ "line": 369, "column": 26 }
[ { "pp": "α : Type u_1\ninst✝ : Primcodable α\nf : ℕ → ℕ → α\nh : Primrec (Nat.unpaired f)\n⊢ Primrec₂ f", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.Basic
{ "line": 586, "column": 15 }
{ "line": 586, "column": 36 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nσ : Type u_3\ninst✝² : Primcodable α\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : α → β → Option σ\nh : Primrec₂ fun a n ↦ (decode n).bind (f a)\n⊢ Primrec₂ f", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.Basic
{ "line": 609, "column": 2 }
{ "line": 609, "column": 32 }
[ { "pp": "α : Type u_1\nσ : Type u_3\ninst✝² : Primcodable α\ninst✝¹ : Primcodable σ\nc : α → Prop\ninst✝ : DecidablePred c\nf g : α → σ\nhc : PrimrecPred c\nhf : Primrec f\nhg : Primrec g\n⊢ Primrec fun a ↦ if c a then f a else g a", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.Basic
{ "line": 666, "column": 10 }
{ "line": 666, "column": 21 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Primcodable α\ninst✝¹ : Primcodable β\np : α → β → Prop\ninst✝ : DecidableRel p\nhp : PrimrecRel p\nf : α → β\nhf : Primrec f\n⊢ PrimrecPred fun a ↦ (fun b ↦ decide (p a b)) (f a) = true", "usedConstants": [ "Eq.mpr", "congrArg", "id", "B...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 210, "column": 8 }
{ "line": 210, "column": 19 }
[ { "pp": "case cons.succ\nα : Type u_1\ninst✝ : Primcodable α\nF : List α → ℕ → ℕ ⊕ α :=\n fun l n ↦ List.foldl (fun s a ↦ Sum.casesOn s (fun x ↦ Nat.casesOn x (Sum.inr a) Sum.inl) Sum.inr) (Sum.inl n) l\nhF : Primrec₂ F\nthis : Primrec fun p ↦ Sum.casesOn (F p.1 p.2) (fun x ↦ none) some\na : α\nl : List α\nIH ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.Basic
{ "line": 840, "column": 20 }
{ "line": 840, "column": 31 }
[ { "pp": "α : Type u_1\ninst✝ : Primcodable α\n⊢ PrimrecPred fun p ↦ (fun a ↦ decide (encode a = p.1)) p.2 = true", "usedConstants": [ "Eq.mpr", "congrArg", "Primcodable.ofDenumerable", "id", "Prod.fst", "Primcodable.prod", "Bool.true", "funext", "Nat", ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 341, "column": 39 }
{ "line": 341, "column": 50 }
[ { "pp": "β : Type u_2\nσ : Type u_4\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : β → σ\nm : β → ℕ\nl : β → List β\ng : β → List σ → Option σ\nhm : Primrec m\nhl : Primrec l\nhg : Primrec₂ g\nOrd : ∀ (b b' : β), b' ∈ l b → m b' < m b\nH : ∀ (b : β), g b (List.map f (l b)) = some (f b)\nthis✝¹ : DecidableE...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 346, "column": 41 }
{ "line": 346, "column": 52 }
[ { "pp": "β : Type u_2\nσ : Type u_4\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : β → σ\nm : β → ℕ\nl : β → List β\ng : β → List σ → Option σ\nhm : Primrec m\nhl : Primrec l\nhg : Primrec₂ g\nOrd : ∀ (b b' : β), b' ∈ l b → m b' < m b\nH : ∀ (b : β), g b (List.map f (l b)) = some (f b)\nthis✝ : DecidableEq...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 348, "column": 10 }
{ "line": 348, "column": 46 }
[ { "pp": "case cons\nβ : Type u_2\nσ : Type u_4\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : β → σ\nm : β → ℕ\nl : β → List β\ng : β → List σ → Option σ\nhm : Primrec m\nhl : Primrec l\nhg : Primrec₂ g\nOrd : ∀ (b b' : β), b' ∈ l b → m b' < m b\nH : ∀ (b : β), g b (List.map f (l b)) = some (f b)\nthis✝ : ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 228, "column": 4 }
{ "line": 228, "column": 87 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nx a b c : V\nM1 : (G ⊔ edge x b).Subgraph\nM2 : (G ⊔ edge a c).Subgraph\nhxa : G.Adj x a\nhab : G.Adj a b\nhnGxb : ¬G.Adj x b\nhnGac : ¬G.Adj a c\nhnxb : x ≠ b\nhnxc : x ≠ c\nhnac : a ≠ c\nhnbc : b ≠ c\nhM1 : M1.IsPerfectMatching\nhM2 : M2.IsPerfectMat...
refine ⟨x', hx', p'.takeUntil x' hx'p, hp'.1.isPath_takeUntil hx'p, ?_, fun h ↦ ?_⟩
Lean.Elab.Tactic.evalRefine
Lean.Parser.Tactic.refine
Mathlib.Computability.Primrec.List
{ "line": 354, "column": 22 }
{ "line": 354, "column": 41 }
[ { "pp": "case zero\nβ : Type u_2\nσ : Type u_4\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : β → σ\nm : β → ℕ\nl : β → List β\ng : β → List σ → Option σ\nhm : Primrec m\nhl : Primrec l\nhg : Primrec₂ g\nOrd : ∀ (b b' : β), b' ∈ l b → m b' < m b\nH : ∀ (b : β), g b (List.map f (l b)) = some (f b)\nthis✝ : ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 75, "column": 10 }
{ "line": 75, "column": 17 }
[ { "pp": "case inr.inl\np : ℕ →. Bool\nm : ℕ\nIH : (y : ℕ) → lbp p y m → (∀ n < y, false ∈ p n) → { n // true ∈ p n ∧ ∀ m < n, false ∈ p m }\nal : ∀ n < m, false ∈ p n\nn : ℕ\nh₁ : true ∈ p n\nh₂ : ∀ k < n, (p k).Dom\nh₃ : m = n\n⊢ (p m).Dom", "usedConstants": [ "Eq.mpr", "congrArg", "id", ...
rw [h₃]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Computability.Primrec.List
{ "line": 374, "column": 10 }
{ "line": 374, "column": 21 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nσ : Type u_4\ninst✝² : Primcodable α\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : α → β → σ\nm : α → β → ℕ\nl : α → β → List β\ng : α → β × List σ → Option σ\nhm : Primrec₂ m\nhl : Primrec₂ l\nhg : Primrec₂ g\nOrd : ∀ (a : α) (b b' : β), b' ∈ l a b → m a b' < m a b\nH...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 374, "column": 31 }
{ "line": 374, "column": 58 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nσ : Type u_4\ninst✝² : Primcodable α\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : α → β → σ\nm : α → β → ℕ\nl : α → β → List β\ng : α → β × List σ → Option σ\nhm : Primrec₂ m\nhl : Primrec₂ l\nhg : Primrec₂ g\nOrd : ∀ (a : α) (b b' : β), b' ∈ l a b → m a b' < m a b\nH...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 146, "column": 23 }
{ "line": 146, "column": 34 }
[ { "pp": "α : Type u_1\nf : ℕ → Option α\nh : ∃ n a, a ∈ f n\nh' : ∃ n, (f n).isSome = true\ns : (f (Nat.find h')).isSome = true\n⊢ true ∈ (fun n ↦ ↑(Option.some (f n).isSome)) (Nat.find h')", "usedConstants": [ "Part", "Eq.mpr", "Part.some", "Option.some", "Membership.mem", ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 149, "column": 4 }
{ "line": 149, "column": 15 }
[ { "pp": "α : Type u_1\nf : ℕ → Option α\nh : ∃ n a, a ∈ f n\nh' : ∃ n, (f n).isSome = true\ns : (f (Nat.find h')).isSome = true\nfd : (rfind fun n ↦ ↑(Option.some (f n).isSome)).Dom\nthis : true ∈ ↑(Option.some (f ((rfind fun n ↦ ↑(Option.some (f n).isSome)).get fd)).isSome)\n⊢ ((fun b ↦ (fun n ↦ ↑(f n)) ((rfin...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 539, "column": 28 }
{ "line": 539, "column": 39 }
[ { "pp": "α : Type u_1\ninst✝ : Primcodable α\nn : ℕ\n⊢ Primrec fun a ↦ (a.1 ::ᵥ a.2).toList", "usedConstants": [ "Eq.mpr", "congrArg", "List.Vector", "id", "Primcodable.vector", "List.Vector.toList_cons", "Prod.fst", "List.cons", "Primcodable.prod", ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 559, "column": 4 }
{ "line": 559, "column": 15 }
[ { "pp": "α : Type u_1\nσ : Type u_3\ninst✝¹ : Primcodable α\ninst✝ : Primcodable σ\nn : ℕ\nf : Fin (n + 1) → α → σ\nhf : ∀ (i : Fin (n + 1)), Primrec (f i)\n⊢ Primrec fun a ↦ List.ofFn fun i ↦ f i a", "usedConstants": [ "Eq.mpr", "instNeZeroNatHAdd_1", "Fin.succ", "congrArg", "...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 407, "column": 2 }
{ "line": 407, "column": 32 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nσ : Type u_3\ninst✝² : Primcodable α\ninst✝¹ : Primcodable β\ninst✝ : Primcodable σ\nf : α →. β\ng : α → β → σ\nhf : Partrec f\nhg : Computable₂ g\n⊢ Partrec fun a ↦ Part.map (g a) (f a)", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 664, "column": 2 }
{ "line": 664, "column": 13 }
[ { "pp": "f : ℕ → ℕ → ℕ\nhf : Primrec' fun v ↦ f v.head v.tail.head\nn : ℕ\ng h : List.Vector ℕ n → ℕ\nhg : Primrec' g\nhh : Primrec' h\n⊢ Primrec' fun v ↦ f (g v) (h v)", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 668, "column": 2 }
{ "line": 668, "column": 13 }
[ { "pp": "n : ℕ\nf g : List.Vector ℕ n → ℕ\nh : List.Vector ℕ (n + 2) → ℕ\nhf : Primrec' f\nhg : Primrec' g\nhh : Primrec' h\n⊢ Primrec' fun v ↦ Nat.rec (g v) (fun y IH ↦ h (y ::ᵥ IH ::ᵥ v)) (f v)", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 681, "column": 2 }
{ "line": 681, "column": 13 }
[ { "pp": "this : Primrec' fun v ↦ (fun a b ↦ b - a) v.head v.tail.head\n⊢ Primrec' fun v ↦ v.head - v.tail.head", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 439, "column": 15 }
{ "line": 439, "column": 26 }
[ { "pp": "α : Type u_1\ninst✝ : Primcodable α\nf : ℕ → ℕ →. α\nh : Partrec (Nat.unpaired f)\n⊢ Partrec₂ f", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 525, "column": 27 }
{ "line": 525, "column": 49 }
[ { "pp": "α : Type u_1\nσ : Type u_2\ninst✝¹ : Primcodable α\ninst✝ : Primcodable σ\nf : α →. σ\nh : Nat.Partrec fun n ↦ (↑(decode₂ α n)).bind fun a ↦ Part.map encode (f a)\n⊢ Partrec fun a ↦ Part.map encode (f a)", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 754, "column": 4 }
{ "line": 754, "column": 15 }
[ { "pp": "case prec\nn : ℕ\nf✝¹ : List.Vector ℕ n → ℕ\nf f✝ g✝ : ℕ → ℕ\na✝¹ : Nat.Primrec f✝\na✝ : Nat.Primrec g✝\nhf : Primrec' fun v ↦ f✝ v.head\nhg : Primrec' fun v ↦ g✝ v.head\n⊢ Primrec' fun v ↦ unpaired (fun z n ↦ Nat.rec (f✝ z) (fun y IH ↦ g✝ (pair z (pair y IH))) n) v.head", "usedConstants": [ ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Primrec.List
{ "line": 774, "column": 15 }
{ "line": 774, "column": 26 }
[ { "pp": "m n : ℕ\nf : List.Vector ℕ m → List.Vector ℕ n\nh : Vec f\n⊢ Primrec f", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 125, "column": 23 }
{ "line": 125, "column": 34 }
[ { "pp": "n₁ n₂ : ℕ\nh : n₁ < n₂\n⊢ ack 0 n₁ < ack 0 n₂", "usedConstants": [ "IsRightCancelAdd.addRightStrictMono_of_addRightMono", "Eq.mpr", "ack", "Preorder.toLT", "Nat.instIsOrderedAddMonoid", "AddLeftCancelSemigroup.toIsLeftCancelAdd", "congrArg", "covarian...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 157, "column": 19 }
{ "line": 157, "column": 30 }
[ { "pp": "m : ℕ\n⊢ m + 1 + 0 < ack (m + 1) 0", "usedConstants": [ "Eq.mpr", "ack", "congrArg", "AddMonoid.toAddZeroClass", "ack_succ_zero", "Nat.instAddMonoid", "id", "instOfNatNat", "instHAdd", "HAdd.hAdd", "Nat", "congr", "LT.lt"...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 179, "column": 32 }
{ "line": 179, "column": 43 }
[ { "pp": "m : ℕ\n_h : 0 < m + 1\n⊢ ack 0 0 < ack (m + 1) 0", "usedConstants": [ "Eq.mpr", "ack", "congrArg", "AddMonoid.toAddZeroClass", "ack_succ_zero", "Nat.instAddMonoid", "id", "instOfNatNat", "zero_add", "instHAdd", "HAdd.hAdd", "Na...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 187, "column": 4 }
{ "line": 187, "column": 15 }
[ { "pp": "m₁ m₂ : ℕ\nh : m₁ + 1 < m₂ + 1\n⊢ ack (m₁ + 1) 0 < ack (m₂ + 1) 0", "usedConstants": [ "Eq.mpr", "ack", "congrArg", "ack_succ_zero", "id", "instOfNatNat", "instHAdd", "HAdd.hAdd", "Nat", "congr", "LT.lt", "instAddNat", "i...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 236, "column": 15 }
{ "line": 236, "column": 26 }
[ { "pp": "n : ℕ\n⊢ (ack 0 n + 1) ^ 2 ≤ ack (0 + 3) n", "usedConstants": [ "Eq.mpr", "ack", "congrArg", "Nat.instMonoid", "AddMonoid.toAddZeroClass", "HSub.hSub", "Nat.instAddMonoid", "ack_three", "id", "instSubNat", "instOfNatNat", "LE.l...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 289, "column": 10 }
{ "line": 289, "column": 39 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nh : ∀ (M : G.Subgraph), ¬M.IsPerfectMatching\nhvEven : Even (Nat.card V)\nval✝ : Fintype V\nGmax : SimpleGraph V\nhSubgraph : G ≤ Gmax\nhMatchingFree : Gmax.IsMatchingFree\nhMaximal : ∀ G' > Gmax, ∃ M, M.IsPerfectMatching\nh' : ∀ (K : Gmax.deleteUniver...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Combinatorics.SimpleGraph.Tutte
{ "line": 302, "column": 6 }
{ "line": 302, "column": 34 }
[ { "pp": "V : Type u_1\nG : SimpleGraph V\ninst✝ : Finite V\nh : ∀ (M : G.Subgraph), ¬M.IsPerfectMatching\nhvEven : Even (Nat.card V)\nval✝ : Fintype V\nGmax : SimpleGraph V\nhSubgraph : G ≤ Gmax\nhMatchingFree : Gmax.IsMatchingFree\nhMaximal : ∀ G' > Gmax, ∃ M, M.IsPerfectMatching\nhc : ¬Fintype.card ↑Gmax.univ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Ackermann
{ "line": 312, "column": 8 }
{ "line": 313, "column": 26 }
[ { "pp": "case inl\nf✝ f g : ℕ → ℕ\nhf : Nat.Primrec f\nhg : Nat.Primrec g\na : ℕ\nha : ∀ (n : ℕ), f n < ack a n\nb : ℕ\nhb : ∀ (n : ℕ), g n < ack b n\nm n : ℕ\nIH : rec (f m) (fun y IH ↦ g (pair m (pair y IH))) n < ack (max a b + 9) (m + n)\nh₁ : ?m.332 < m\n⊢ ack (b + 4) (max m (pair n (rec (f m) (fun y IH ↦ g...
· rw [max_eq_left h₁.le] gcongr <;> omega
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Computability.Ackermann
{ "line": 319, "column": 10 }
{ "line": 322, "column": 57 }
[ { "pp": "case inr.inl\nf✝ f g : ℕ → ℕ\nhf : Nat.Primrec f\nhg : Nat.Primrec g\na : ℕ\nha : ∀ (n : ℕ), f n < ack a n\nb : ℕ\nhb : ∀ (n : ℕ), g n < ack b n\nm n : ℕ\nIH : rec (f m) (fun y IH ↦ g (pair m (pair y IH))) n < ack (max a b + 9) (m + n)\nh₁ : m ≤ pair n (rec (f m) (fun y IH ↦ g (pair m (pair y IH))) n)\...
rw [max_eq_left h₂.le, add_assoc] exact ack_le_ack (Nat.add_le_add (le_max_right a b) <| by simp) ((le_succ n).trans <| self_le_add_left _ _)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Computability.Ackermann
{ "line": 319, "column": 10 }
{ "line": 322, "column": 57 }
[ { "pp": "case inr.inl\nf✝ f g : ℕ → ℕ\nhf : Nat.Primrec f\nhg : Nat.Primrec g\na : ℕ\nha : ∀ (n : ℕ), f n < ack a n\nb : ℕ\nhb : ∀ (n : ℕ), g n < ack b n\nm n : ℕ\nIH : rec (f m) (fun y IH ↦ g (pair m (pair y IH))) n < ack (max a b + 9) (m + n)\nh₁ : m ≤ pair n (rec (f m) (fun y IH ↦ g (pair m (pair y IH))) n)\...
rw [max_eq_left h₂.le, add_assoc] exact ack_le_ack (Nat.add_le_add (le_max_right a b) <| by simp) ((le_succ n).trans <| self_le_add_left _ _)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.AkraBazzi.GrowsPolynomially
{ "line": 113, "column": 19 }
{ "line": 113, "column": 77 }
[ { "pp": "f : ℝ → ℝ\nhf✝ : GrowsPolynomially f\nhf' : ∀ (a : ℝ), ∃ b ≥ a, f b = 0\nc₁ : ℝ\nhc₁_mem : c₁ > 0\nc₂ : ℝ\nhc₂_mem : c₂ > 0\nhf : ∀ᶠ (x : ℝ) in atTop, ∀ u ∈ Set.Icc (1 / 2 * x) x, f u ∈ Set.Icc (c₁ * f x) (c₂ * f x)\nx : ℝ\nhx : ∀ (y : ℝ), x ≤ y → ∀ u ∈ Set.Icc (1 / 2 * y) y, f u ∈ Set.Icc (c₁ * f y) (...
by simp only [neg_add, ← sub_eq_add_neg] at hz; exact hz.2
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Computability.Partrec
{ "line": 751, "column": 8 }
{ "line": 751, "column": 23 }
[ { "pp": "case refine_2.inl.refine_1\nα : Type u_5\nσ : Type u_6\nf : α →. σ ⊕ α\na : α\nb : σ\nF : α → ℕ →. σ ⊕ α :=\n fun a n ↦ Nat.rec (Part.some (Sum.inr a)) (fun x IH ↦ IH.bind fun s ↦ Sum.casesOn s (fun x ↦ Part.some s) f) n\nh : b ∈ f.fix a\na₁ : α\nh₁ : b ∈ f.fix a₁\na₂ : α\nh₂✝ : b ∈ f.fix a₂\nIH :\n ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 753, "column": 33 }
{ "line": 753, "column": 48 }
[ { "pp": "α : Type u_5\nσ : Type u_6\nf : α →. σ ⊕ α\na : α\nb : σ\nF : α → ℕ →. σ ⊕ α :=\n fun a n ↦ Nat.rec (Part.some (Sum.inr a)) (fun x IH ↦ IH.bind fun s ↦ Sum.casesOn s (fun x ↦ Part.some s) f) n\nh : b ∈ f.fix a\na₁ : α\nh₁ : b ∈ f.fix a₁\na₂ : α\nh₂ : b ∈ f.fix a₂\nIH :\n ∀ (a'' : α),\n Sum.inr a''...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Partrec
{ "line": 770, "column": 29 }
{ "line": 770, "column": 44 }
[ { "pp": "α : Type u_1\nσ : Type u_4\ninst✝¹ : Primcodable α\ninst✝ : Primcodable σ\nf : α →. σ ⊕ α\nhf : Partrec f\nF : α → ℕ →. σ ⊕ α :=\n fun a n ↦ Nat.rec (Part.some (Sum.inr a)) (fun x IH ↦ IH.bind fun s ↦ Sum.casesOn s (fun x ↦ Part.some s) f) n\nhF : Partrec₂ F\np : α → ℕ → Part Bool := fun a n ↦ Part.ma...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 421, "column": 2 }
{ "line": 428, "column": 52 }
[ { "pp": "α : Type u_1\nσ : Type u_2\ninst✝¹ : Primcodable α\ninst✝ : Primcodable σ\nc : α → Code\nhc : Computable c\nz : α → σ\nhz : Computable z\ns : α → σ\nhs : Computable s\nl : α → σ\nhl : Computable l\nr : α → σ\nhr : Computable r\npr : α → Code × Code × σ × σ → σ\nhpr : Computable₂ pr\nco : α → Code × Cod...
have : Computable₂ G := .mk <| nat_casesOn (list_length.comp snd) (option_some_iff.2 (hz.comp fst)) <| .mk <| nat_casesOn snd (option_some_iff.2 (hs.comp (fst.comp fst))) <| .mk <| nat_casesOn snd (option_some_iff.2 (hl.comp (fst.comp <| fst.comp fst))) <| .mk <| nat_casesOn snd (option_some_iff.2 (hr.c...
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Computability.AkraBazzi.GrowsPolynomially
{ "line": 169, "column": 4 }
{ "line": 169, "column": 49 }
[ { "pp": "case h\nf : ℝ → ℝ\nhf : GrowsPolynomially f\nc₁ : ℝ\nleft✝¹ : c₁ > 0\nc₂ : ℝ\nleft✝ : c₂ > 0\nh : ∀ᶠ (x : ℝ) in atTop, ∀ u ∈ Set.Icc (1 / 2 * x) x, f u ∈ Set.Icc (c₁ * f x) (c₂ * f x)\nhlt : c₁ < c₂\nx : ℝ\nhx : ∀ u ∈ Set.Icc (1 / 2 * x) x, f u ∈ Set.Icc (c₁ * f x) (c₂ * f x)\nhx_nonneg : 0 ≤ x\nh' : 3...
have hu' : 0 ≤ (c₂ - c₁) * f x := by linarith
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 130, "column": 2 }
{ "line": 130, "column": 13 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\ni : α\n⊢ ∀ᶠ (x : ℕ) in atTop, ‖↑(r i x) - b i * ↑x‖ ≤ ↑x / log ↑x ^ 2", "usedConstants": [ "Norm.norm", "Eq.mpr", "Real.instLE", "Real",...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.AkraBazzi.AkraBazzi
{ "line": 94, "column": 8 }
{ "line": 94, "column": 15 }
[ { "pp": "case h\np x : ℝ\nhx : 1 < x\nhderiv : deriv (fun x ↦ 1 - ε x) x = x⁻¹ / log x ^ 2\n⊢ deriv (fun x ↦ x ^ p) x * (1 - ε x) + x ^ p * deriv (fun x ↦ 1 - ε x) x =\n p * x ^ (p - 1) * (1 - ε x) + x ^ p * (x⁻¹ / log x ^ 2)", "usedConstants": [ "Eq.mpr", "Real.instPow", "Real", ...
hderiv,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Computability.AkraBazzi.AkraBazzi
{ "line": 225, "column": 2 }
{ "line": 225, "column": 51 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nq : ℝ → ℝ\nhq_diff : DifferentiableOn ℝ q (Set.Ioi 1)\nhq_poly : GrowsPolynomially fun x ↦ ‖deriv q x‖\ni : α\nb' : ℝ := b (min_bi b) / 2\nhb_pos : 0 < b'\nhb_lt_on...
have hb : b' ∈ Set.Ioo 0 1 := ⟨hb_pos, hb_lt_one⟩
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Computability.AkraBazzi.AkraBazzi
{ "line": 219, "column": 93 }
{ "line": 248, "column": 33 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nq : ℝ → ℝ\nhq_diff : DifferentiableOn ℝ q (Set.Ioi 1)\nhq_poly : GrowsPolynomially fun x ↦ ‖deriv q x‖\ni : α\n⊢ (fun n ↦ q ↑(r i n) - q (b i * ↑n)) =O[atTop] fun n...
by let b' := b (min_bi b) / 2 have hb_pos : 0 < b' := by have := R.b_pos (min_bi b); positivity have hb_lt_one : b' < 1 := calc b (min_bi b) / 2 _ < b (min_bi b) := div_two_lt_of_pos (R.b_pos (min_bi b)) _ < 1 := R.b_lt_one (min_bi b) have hb : b' ∈ Set.Ioo 0 1 := ⟨hb_pos, hb_lt_one⟩ have hb' (i) : b'...
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Computability.PartrecCode
{ "line": 545, "column": 6 }
{ "line": 546, "column": 29 }
[ { "pp": "case refine_1.comp\nf f✝ g✝ : ℕ →. ℕ\npf : Nat.Partrec f✝\npg : Nat.Partrec g✝\nhf : ∃ c, c.eval = f✝\nhg : ∃ c, c.eval = g✝\n⊢ ∃ c, c.eval = fun n ↦ g✝ n >>= f✝", "usedConstants": [ "Part", "Nat.Partrec", "PFun", "Exists", "Nat.Partrec.Code", "Nat.Partrec.Code.c...
rcases hf with ⟨cf, rfl⟩; rcases hg with ⟨cg, rfl⟩ exact ⟨comp cf cg, rfl⟩
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Computability.PartrecCode
{ "line": 545, "column": 6 }
{ "line": 546, "column": 29 }
[ { "pp": "case refine_1.comp\nf f✝ g✝ : ℕ →. ℕ\npf : Nat.Partrec f✝\npg : Nat.Partrec g✝\nhf : ∃ c, c.eval = f✝\nhg : ∃ c, c.eval = g✝\n⊢ ∃ c, c.eval = fun n ↦ g✝ n >>= f✝", "usedConstants": [ "Part", "Nat.Partrec", "PFun", "Exists", "Nat.Partrec.Code", "Nat.Partrec.Code.c...
rcases hf with ⟨cf, rfl⟩; rcases hg with ⟨cg, rfl⟩ exact ⟨comp cf cg, rfl⟩
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.PartrecCode
{ "line": 610, "column": 4 }
{ "line": 610, "column": 41 }
[ { "pp": "k : ℕ\nc : Code\nn x : ℕ\nh : x ∈ evaln (k + 1) c n\n⊢ ∀ {o : Option ℕ},\n (x ∈ do\n guard (n ≤ k)\n o) →\n n < k + 1", "usedConstants": [ "guard", "Eq.mpr", "instAlternativeOption", "congrArg", "Option.instMembership", "exists_const._simp_1...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.AkraBazzi.GrowsPolynomially
{ "line": 355, "column": 14 }
{ "line": 355, "column": 37 }
[ { "pp": "case h₁.hbc\nf g : ℝ → ℝ\nhf✝¹ : GrowsPolynomially f\nhg✝¹ : GrowsPolynomially g\nhf'✝ : 0 ≤ᶠ[atTop] f\nhg'✝ : 0 ≤ᶠ[atTop] g\nb : ℝ\nhb : b ∈ Set.Ioo 0 1\nc₁ : ℝ\nhc₁_mem : c₁ > 0\nc₂ : ℝ\nhc₂_mem : c₂ > 0\nhf✝ : ∀ᶠ (x : ℝ) in atTop, ∀ u ∈ Set.Icc (b * x) x, f u ∈ Set.Icc (c₁ * f x) (c₂ * f x)\nc₃ : ℝ\...
· exact min_le_left _ _
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 468, "column": 56 }
{ "line": 468, "column": 84 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\ni : α\n⊢ (fun n ↦ -log (b i) / (log ↑n * log ↑n)) = fun n ↦ -log (b i) / log ↑n ^ 2", "usedConstants": [ "Eq.mpr", "Real", "instHDiv", "...
ext; congr 1; rw [← pow_two]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 468, "column": 56 }
{ "line": 468, "column": 84 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\ni : α\n⊢ (fun n ↦ -log (b i) / (log ↑n * log ↑n)) = fun n ↦ -log (b i) / log ↑n ^ 2", "usedConstants": [ "Eq.mpr", "Real", "instHDiv", "...
ext; congr 1; rw [← pow_two]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 582, "column": 8 }
{ "line": 585, "column": 82 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nn : ℕ\nhn : 0 < n\n⊢ ↑n ^ p a b * (1 + 0) ≤ asympBound g a b n", "usedConstants": [ "AkraBazziRecurrence.asympBound", "Iff.mpr", "Real.instIsO...
simp only [asympBound_def'] gcongr n ^ p a b * (1 + ?_) have := R.g_nonneg aesop (add safe Real.rpow_nonneg, safe div_nonneg, safe Finset.sum_nonneg)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 582, "column": 8 }
{ "line": 585, "column": 82 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nn : ℕ\nhn : 0 < n\n⊢ ↑n ^ p a b * (1 + 0) ≤ asympBound g a b n", "usedConstants": [ "AkraBazziRecurrence.asympBound", "Iff.mpr", "Real.instIsO...
simp only [asympBound_def'] gcongr n ^ p a b * (1 + ?_) have := R.g_nonneg aesop (add safe Real.rpow_nonneg, safe div_nonneg, safe Finset.sum_nonneg)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.PartrecCode
{ "line": 657, "column": 14 }
{ "line": 657, "column": 52 }
[ { "pp": "case zero\nk n x : ℕ\nleft✝ : n ≤ k\nh : 0 = x\n⊢ x ∈ pure 0 n", "usedConstants": [ "Pure.pure", "Part", "Eq.mpr", "PFun", "Monad.toApplicative", "Membership.mem", "PFun.monad", "id", "Part.instMembership", "instOfNatNat", "Applicati...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 657, "column": 14 }
{ "line": 657, "column": 52 }
[ { "pp": "case succ\nk n x : ℕ\nleft✝ : n ≤ k\nh : n + 1 = x\n⊢ x = n + 1", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 657, "column": 14 }
{ "line": 657, "column": 52 }
[ { "pp": "case left\nk n x : ℕ\nleft✝ : n ≤ k\nh : (unpair n).1 = x\n⊢ x = (unpair n).1", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 657, "column": 14 }
{ "line": 657, "column": 52 }
[ { "pp": "case right\nk n x : ℕ\nleft✝ : n ≤ k\nh : (unpair n).2 = x\n⊢ x = (unpair n).2", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 632, "column": 14 }
{ "line": 632, "column": 26 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nc₁ : ℝ\nhc₁_mem : c₁ ∈ Set.Ioo 0 1\nhc₁ : ∀ᶠ (n : ℕ) in atTop, ∀ (i : α), c₁ * ↑n ≤ ↑(r i n)\nc₂ : ℝ\nhc₂_mem : c₂ > 0\nhc₂ : ∀ᶠ (n : ℕ) in atTop, ∀ u ∈ Set.Icc (c₁...
mul_comm c₁,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Computability.PartrecCode
{ "line": 678, "column": 18 }
{ "line": 678, "column": 34 }
[ { "pp": "k : ℕ\ncf : Code\nhf : ∀ (n x : ℕ), x ∈ evaln (k + 1) cf n → x ∈ cf.eval n\nn x : ℕ\nleft✝ : n ≤ k\nm : ℕ\nh₁ : evaln (k + 1) cf n = some m\nm0 : m = 0\nh₂ : (unpair n).2 = x\n⊢ 0 ∈ cf.eval (Nat.pair (unpair n).1 (0 + (unpair n).2))", "usedConstants": [ "Part", "Eq.mpr", "congrArg...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 683, "column": 22 }
{ "line": 683, "column": 59 }
[ { "pp": "k : ℕ\ncf : Code\nhf : ∀ (n x : ℕ), x ∈ evaln (k + 1) cf n → x ∈ cf.eval n\nn : ℕ\nleft✝ : n ≤ k\nm : ℕ\nh₁ : evaln (k + 1) cf n = some m\nm0 : ¬m = 0\ny : ℕ\nhy₁ : 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + ((unpair n).2 + 1)))\nhy₂ : ∀ {m : ℕ}, m < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m + ((unpair ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 686, "column": 23 }
{ "line": 686, "column": 34 }
[ { "pp": "k : ℕ\ncf : Code\nhf : ∀ (n x : ℕ), x ∈ evaln (k + 1) cf n → x ∈ cf.eval n\nn : ℕ\nleft✝ : n ≤ k\nm : ℕ\nh₁ : evaln (k + 1) cf n = some m\nm0 : ¬m = 0\ny : ℕ\nhy₁ : 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + ((unpair n).2 + 1)))\nhy₂ : ∀ {m : ℕ}, m < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m + ((unpair ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 688, "column": 23 }
{ "line": 688, "column": 60 }
[ { "pp": "k : ℕ\ncf : Code\nhf : ∀ (n x : ℕ), x ∈ evaln (k + 1) cf n → x ∈ cf.eval n\nn : ℕ\nleft✝ : n ≤ k\nm : ℕ\nh₁ : evaln (k + 1) cf n = some m\nm0 : ¬m = 0\ny : ℕ\nhy₁ : 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + ((unpair n).2 + 1)))\nhy₂ : ∀ {m : ℕ}, m < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m + ((unpair ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 716, "column": 4 }
{ "line": 716, "column": 38 }
[ { "pp": "case prec\ncf cg : Code\nhf : ∀ {n x : ℕ}, x ∈ cf.eval n → ∃ k, x ∈ evaln (k + 1) cf n\nhg : ∀ {n x : ℕ}, x ∈ cg.eval n → ∃ k, x ∈ evaln (k + 1) cg n\nn x n₁ n₂ : ℕ\n⊢ x ∈ Nat.rec (cf.eval n₁) (fun y IH ↦ IH.bind fun i ↦ cg.eval (Nat.pair n₁ (Nat.pair y i))) n₂ →\n ∃ k,\n n ≤ k ∧\n Nat.r...
induction n₂ generalizing x n with
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction
null
Mathlib.Computability.PartrecCode
{ "line": 749, "column": 27 }
{ "line": 749, "column": 85 }
[ { "pp": "cf : Code\nhf : ∀ {n x : ℕ}, x ∈ cf.eval n → ∃ k, x ∈ evaln (k + 1) cf n\nn y : ℕ\nIH :\n ∀ (m : ℕ),\n 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + m)) →\n (∀ {m_1 : ℕ}, m_1 < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m_1 + m)), ¬a = 0) →\n ∃ k, y + m ∈ evaln (k + 1) cf.rfind' (Nat.pair (unp...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 751, "column": 10 }
{ "line": 751, "column": 68 }
[ { "pp": "cf : Code\nhf : ∀ {n x : ℕ}, x ∈ cf.eval n → ∃ k, x ∈ evaln (k + 1) cf n\nn y : ℕ\nIH :\n ∀ (m : ℕ),\n 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + m)) →\n (∀ {m_1 : ℕ}, m_1 < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m_1 + m)), ¬a = 0) →\n ∃ k, y + m ∈ evaln (k + 1) cf.rfind' (Nat.pair (unp...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 759, "column": 6 }
{ "line": 759, "column": 47 }
[ { "pp": "case right\ncf : Code\nhf : ∀ {n x : ℕ}, x ∈ cf.eval n → ∃ k, x ∈ evaln (k + 1) cf n\nn y : ℕ\nIH :\n ∀ (m : ℕ),\n 0 ∈ cf.eval (Nat.pair (unpair n).1 (y + m)) →\n (∀ {m_1 : ℕ}, m_1 < y → ∃ a ∈ cf.eval (Nat.pair (unpair n).1 (m_1 + m)), ¬a = 0) →\n ∃ k, y + m ∈ evaln (k + 1) cf.rfind' (N...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.AkraBazzi.SumTransform
{ "line": 676, "column": 33 }
{ "line": 676, "column": 50 }
[ { "pp": "α : Type u_1\ninst✝¹ : Fintype α\nT : ℕ → ℝ\ng : ℝ → ℝ\na b : α → ℝ\nr : α → ℕ → ℕ\ninst✝ : Nonempty α\nR : AkraBazziRecurrence T g a b r\nc₁ : ℝ\nhc₁_mem : c₁ ∈ Set.Ioo 0 1\nhc₁ : ∀ᶠ (n : ℕ) in atTop, ∀ (i : α), c₁ * ↑n ≤ ↑(r i n)\nc₂ : ℝ\nhc₂_mem : c₂ > 0\nhc₂ : ∀ᶠ (n : ℕ) in atTop, ∀ u ∈ Set.Icc (c₁...
have := hc₃_mem.2
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Computability.PartrecCode
{ "line": 919, "column": 4 }
{ "line": 919, "column": 15 }
[ { "pp": "case neg\nk : ℕ\nc : Code\nn : ℕ\nkn : ¬n < k\n⊢ (List.range k).length ≤ n", "usedConstants": [ "Eq.mpr", "congrArg", "List.length_range", "id", "List.range", "LE.le", "instLENat", "Nat", "congrFun'", "Eq", "List.length" ] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 1033, "column": 17 }
{ "line": 1033, "column": 28 }
[ { "pp": "f : ℕ →. ℕ\nhf : Partrec f\n⊢ ∃ a, (fun c ↦ ⟨c.eval, ⋯⟩) a = ⟨f, hf⟩", "usedConstants": [ "Eq.mpr", "PFun", "congrArg", "Primcodable.ofDenumerable", "Exists", "Nat.Partrec.Code", "id", "Subtype", "Partrec₂.comp", "Subtype.mk", "funex...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.PartrecCode
{ "line": 1039, "column": 61 }
{ "line": 1039, "column": 72 }
[ { "pp": "x✝¹ x✝ : { f // Computable f }\nh : (fun f ↦ ⟨↑↑f, ⋯⟩) x✝¹ = (fun f ↦ ⟨↑↑f, ⋯⟩) x✝\n⊢ ↑↑x✝¹ = ↑↑x✝", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Language
{ "line": 257, "column": 10 }
{ "line": 257, "column": 25 }
[ { "pp": "case succ.mpr.cons.refl\nα : Type u_1\nl : Language α\na : List α\nS : List (List α)\nhS : ∀ y ∈ a :: S, y ∈ l\nihn : ∀ {x : List α}, x ∈ l ^ S.length ↔ ∃ S_1, x = S_1.flatten ∧ S_1.length = S.length ∧ ∀ y ∈ S_1, y ∈ l\n⊢ ∃ a_1 ∈ l, ∃ b, (∃ S_1, b = S_1.flatten ∧ S_1.length = S.length ∧ ∀ y ∈ S_1, y ∈ ...
forall_mem_cons
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Computability.Language
{ "line": 305, "column": 4 }
{ "line": 317, "column": 58 }
[ { "pp": "case a\nα : Type u_1\nl m n : Language α\nhm : [] ∉ m\nh : l = m * l + n\n⊢ l ≤ m∗ * n", "usedConstants": [ "Iff.mpr", "Eq.mpr", "MulOne.toOne", "Semigroup.toMul", "Language.instOne", "HMul.hMul", "Language.instAdd", "congrArg", "KStar.kstar", ...
· intro x hx induction hlen : x.length using Nat.strong_induction_on generalizing x with | _ _ ih subst hlen rw [h] at hx obtain hx | hx := hx · obtain ⟨a, ha, b, hb, rfl⟩ := mem_mul.mp hx rw [length_append] at ih have hal : 0 < a.length := length_pos_iff.mpr <| ne_of_mem_o...
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Computability.ContextFreeGrammar
{ "line": 71, "column": 2 }
{ "line": 78, "column": 8 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\nu v : List (Symbol T N)\nhr : r.Rewrites u v\n⊢ ∃ p q, u = p ++ [Symbol.nonterminal r.input] ++ q ∧ v = p ++ r.output ++ q", "usedConstants": [ "ContextFreeRule.Rewrites", "Symbol", "ContextFreeRule.Rewrites.rec", "List.ap...
induction hr with | head s => use [], s simp | cons x _ ih => rcases ih with ⟨p', q', rfl, rfl⟩ use x :: p', q' simp
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction
Lean.Parser.Tactic.induction
Mathlib.Computability.ContextFreeGrammar
{ "line": 71, "column": 2 }
{ "line": 78, "column": 8 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\nu v : List (Symbol T N)\nhr : r.Rewrites u v\n⊢ ∃ p q, u = p ++ [Symbol.nonterminal r.input] ++ q ∧ v = p ++ r.output ++ q", "usedConstants": [ "ContextFreeRule.Rewrites", "Symbol", "ContextFreeRule.Rewrites.rec", "List.ap...
induction hr with | head s => use [], s simp | cons x _ ih => rcases ih with ⟨p', q', rfl, rfl⟩ use x :: p', q' simp
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Computability.ContextFreeGrammar
{ "line": 71, "column": 2 }
{ "line": 78, "column": 8 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\nu v : List (Symbol T N)\nhr : r.Rewrites u v\n⊢ ∃ p q, u = p ++ [Symbol.nonterminal r.input] ++ q ∧ v = p ++ r.output ++ q", "usedConstants": [ "ContextFreeRule.Rewrites", "Symbol", "ContextFreeRule.Rewrites.rec", "List.ap...
induction hr with | head s => use [], s simp | cons x _ ih => rcases ih with ⟨p', q', rfl, rfl⟩ use x :: p', q' simp
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.ContextFreeGrammar
{ "line": 81, "column": 2 }
{ "line": 81, "column": 13 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\n⊢ r.Rewrites [Symbol.nonterminal r.input] r.output", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.ContextFreeGrammar
{ "line": 268, "column": 23 }
{ "line": 268, "column": 34 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\ns : List (Symbol T N)\n⊢ r.reverse.Rewrites (Symbol.nonterminal r.input :: s).reverse (r.output ++ s).reverse", "usedConstants": [ "ContextFreeRule.Rewrites", "Eq.mpr", "Symbol", "congrArg", "ContextFreeRule.input", ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.ContextFreeGrammar
{ "line": 269, "column": 36 }
{ "line": 269, "column": 47 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\nx : Symbol T N\nu v : List (Symbol T N)\nh : r.Rewrites u v\n⊢ r.reverse.Rewrites (x :: u).reverse (x :: v).reverse", "usedConstants": [ "ContextFreeRule.Rewrites", "Eq.mpr", "Symbol", "congrArg", "id", "Contex...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.ContextFreeGrammar
{ "line": 272, "column": 14 }
{ "line": 272, "column": 25 }
[ { "pp": "T : Type u_1\nN : Type u_2\nr : ContextFreeRule T N\nu v : List (Symbol T N)\nh : r.reverse.Rewrites u.reverse v.reverse\n⊢ r.Rewrites u v", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.ContextFreeGrammar
{ "line": 343, "column": 2 }
{ "line": 343, "column": 13 }
[ { "pp": "T : Type u_1\nL : Language T\nh : L.reverse.IsContextFree\n⊢ L.IsContextFree", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Data.Nat.Size
{ "line": 80, "column": 94 }
{ "line": 88, "column": 72 }
[ { "pp": "m n : ℕ\nh : m < 2 ^ n\n⊢ m.size ≤ n", "usedConstants": [ "Nat.bit", "instPowNat", "Eq.mpr", "congrArg", "False.elim", "Eq.mp", "id", "Nat.binaryRec'", "Ne", "instOfNatNat", "LE.le", "instLENat", "Nat.size_bit", "Na...
by induction m using binaryRec' generalizing n with | zero => simp | bit b m e IH => rw [← Nat.bit_ne_zero_iff] at e rw [size_bit e] cases n with | zero => exact (e (Nat.lt_one_iff.mp h)).elim | succ n => exact succ_le_succ (IH (bit_lt_two_pow_succ_iff.mp h))
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Nat.Size
{ "line": 96, "column": 2 }
{ "line": 96, "column": 58 }
[ { "pp": "n : ℕ\n⊢ n.size = 0 ↔ n = 0", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Data.Nat.Size
{ "line": 99, "column": 2 }
{ "line": 99, "column": 42 }
[ { "pp": "n : ℕ\n⊢ (2 ^ n).size = n + 1", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Data.Nat.Bitwise
{ "line": 158, "column": 25 }
{ "line": 158, "column": 36 }
[ { "pp": "b : Bool\nn : ℕ\nhn : (∀ (i : ℕ), n.testBit i = false) → n = 0\nh : ∀ (i : ℕ), (bit b n).testBit i = false\n⊢ b = false", "usedConstants": [] } ]
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Encoding
{ "line": 136, "column": 6 }
{ "line": 136, "column": 24 }
[ { "pp": "case pos\nn : PosNum\n⊢ (if\n (match Num.pos n with\n | Num.zero => []\n | Num.pos n => encodePosNum n) =\n [] then\n Num.zero\n else ↑n) =\n Num.pos n", "usedConstants": [ "Eq.mpr", "castPosNum", "congrArg", "List.instDecidableEq...
PosNum.cast_to_num
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Bitwise
{ "line": 312, "column": 2 }
{ "line": 312, "column": 38 }
[ { "pp": "m n : ℕ\n⊢ Even (m ^^^ n) ↔ (Even m ↔ Even n)", "usedConstants": [ "Eq.mpr", "Nat.instXorOp", "congrArg", "_private.Mathlib.Data.Nat.Bitwise.0.Nat.even_xor._simp_1_1", "id", "Nat.instMod", "instHMod", "instOfNatNat", "Nat.xor_mod_two_eq", ...
simp only [even_iff, xor_mod_two_eq]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Computability.AkraBazzi.GrowsPolynomially
{ "line": 661, "column": 24 }
{ "line": 661, "column": 58 }
[ { "pp": "f g : ℝ → ℝ\nhg✝ : GrowsPolynomially g\nhf : f =Θ[atTop] g\nhf' : ∀ᶠ (x : ℝ) in atTop, 0 ≤ f x\nb : ℝ\nhb : b ∈ Set.Ioo 0 1\nhb_pos : 0 < b\nc₁ : ℝ\nhc₁_pos : 0 < c₁\nhf_lb : ∀ᶠ (x : ℝ) in atTop, c₁ * ‖g x‖ ≤ ‖f x‖\nc₂ : ℝ\nhc₂_pos : 0 < c₂\nhf_ub : ∀ᶠ (x : ℝ) in atTop, ‖f x‖ ≤ c₂ * ‖g x‖\nc₃ : ℝ\nhc₃_...
by gcongr; exact (hg_bound u hu).1
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.List.ReduceOption
{ "line": 41, "column": 17 }
{ "line": 41, "column": 96 }
[ { "pp": "case cons.none\nα : Type u_1\nβ : Type u_2\nf : α → β\ntl : List (Option α)\nhl : (map (Option.map f) tl).reduceOption = map f tl.reduceOption\n⊢ (map (Option.map f) (none :: tl)).reduceOption = map f (none :: tl).reduceOption", "usedConstants": [ "Eq.mpr", "congrArg", "List.map",...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Data.List.ReduceOption
{ "line": 41, "column": 17 }
{ "line": 41, "column": 96 }
[ { "pp": "case cons.some\nα : Type u_1\nβ : Type u_2\nf : α → β\ntl : List (Option α)\nhl : (map (Option.map f) tl).reduceOption = map f tl.reduceOption\nval✝ : α\n⊢ (map (Option.map f) (some val✝ :: tl)).reduceOption = map f (some val✝ :: tl).reduceOption", "usedConstants": [ "Eq.mpr", "congrArg...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Data.List.ReduceOption
{ "line": 54, "column": 2 }
{ "line": 59, "column": 9 }
[ { "pp": "α : Type u_1\nl : List (Option α)\n⊢ l.reduceOption = [] ↔ ∃ n, l = replicate n none", "usedConstants": [ "Eq.mpr", "List.replicate", "List.filterMap_eq_nil_iff", "congrArg", "List.eq_replicate_of_mem", "Membership.mem", "Exists", "id", "Option....
dsimp [reduceOption] rw [filterMap_eq_nil_iff] constructor · intro h exact ⟨l.length, eq_replicate_of_mem h⟩ · grind
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.List.ReduceOption
{ "line": 54, "column": 2 }
{ "line": 59, "column": 9 }
[ { "pp": "α : Type u_1\nl : List (Option α)\n⊢ l.reduceOption = [] ↔ ∃ n, l = replicate n none", "usedConstants": [ "Eq.mpr", "List.replicate", "List.filterMap_eq_nil_iff", "congrArg", "List.eq_replicate_of_mem", "Membership.mem", "Exists", "id", "Option....
dsimp [reduceOption] rw [filterMap_eq_nil_iff] constructor · intro h exact ⟨l.length, eq_replicate_of_mem h⟩ · grind
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Computability.NFA
{ "line": 212, "column": 4 }
{ "line": 212, "column": 18 }
[ { "pp": "case h.mp.inr\nα : Type u\nσ : Type v\nM : NFA α σ\nS T : Set σ\nx : List α\ns : σ\nhs : s ∈ M.accept\nh : s ∈ M.evalFrom T x\n⊢ x ∈ M.acceptsFrom S ∪ M.acceptsFrom T", "usedConstants": [ "NFA.evalFrom", "Membership.mem", "NFA.accept", "List", "And", "And.intro",...
· right; tauto
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Computability.NFA
{ "line": 306, "column": 25 }
{ "line": 306, "column": 43 }
[ { "pp": "α : Type u\nσ : Type v\nM : NFA α σ\ns✝ t✝ : σ\nx✝ : List α\np : Nonempty (M.Path s✝ t✝ x✝)\nt s s' : σ\na : α\nx : List α\nh₁ : s' ∈ M.step s a\nh₂ : M.Path s' t x\n⊢ t ∈ M.evalFrom (M.stepSet {s} a) x", "usedConstants": [ "Eq.mpr", "NFA.step", "congrArg", "NFA.evalFrom", ...
stepSet_singleton,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Computability.Halting
{ "line": 57, "column": 36 }
{ "line": 57, "column": 89 }
[ { "pp": "case inl\nH : ∀ (cf cg : Code), cf.eval = cg.eval → (cf ∈ ∅ ↔ cg ∈ ∅)\nhC : ∀ (f : Code), f ∈ ∅ ↔ f.eval ∈ eval '' ∅\n⊢ ComputablePred fun c ↦ c ∈ ∅", "usedConstants": [ "Eq.mpr", "False", "Set.mem_empty_iff_false._simp_1", "congrArg", "Primcodable.ofDenumerable", ...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null
Mathlib.Computability.Halting
{ "line": 57, "column": 36 }
{ "line": 57, "column": 89 }
[ { "pp": "case inr\nH : ∀ (cf cg : Code), cf.eval = cg.eval → (cf ∈ Set.univ ↔ cg ∈ Set.univ)\nhC : ∀ (f : Code), f ∈ Set.univ ↔ f.eval ∈ eval '' Set.univ\n⊢ ComputablePred fun c ↦ c ∈ Set.univ", "usedConstants": [ "Eq.mpr", "instDecidableTrue", "congrArg", "Primcodable.ofDenumerable"...
simpa using
Lean.Elab.Tactic.Simpa.evalSimpa
null