module stringlengths 17 90 | startPos dict | endPos dict | nextStartPos dict | goals listlengths 0 96 | goalsAfter listlengths 0 96 | ppTac stringlengths 1 12.3k | elaborator stringclasses 379
values | kind stringclasses 383
values |
|---|---|---|---|---|---|---|---|---|
Mathlib.Tactic.NormNum.Result | {
"line": 189,
"column": 27
} | {
"line": 189,
"column": 63
} | {
"line": 191,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : Ring α\nn : ℕ\n⊢ ↑(Int.negOfNat n) = -↑n",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"AddGroup.toSubtractionMonoid",
"Int.cast_neg",
"Int.cast",
"NegZeroClass.toNeg",
"Int.cast_natCast",
"AddGroupWithOne.toAddGroup",
... | [] | simp [Int.negOfNat_eq, Int.cast_neg] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Tactic.NormNum.Result | {
"line": 189,
"column": 27
} | {
"line": 189,
"column": 63
} | {
"line": 191,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : Ring α\nn : ℕ\n⊢ ↑(Int.negOfNat n) = -↑n",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"AddGroup.toSubtractionMonoid",
"Int.cast_neg",
"Int.cast",
"NegZeroClass.toNeg",
"Int.cast_natCast",
"AddGroupWithOne.toAddGroup",
... | [] | simp [Int.negOfNat_eq, Int.cast_neg] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Rat.Cast.Lemmas | {
"line": 58,
"column": 14
} | {
"line": 58,
"column": 30
} | {
"line": 58,
"column": 30
} | [
{
"pp": "K : Type u_2\ninst✝ : DivisionRing K\nq : ℚ≥0\nhn : (↑q.num / ↑q.den).num = ↑q.num\nhd : (↑q.num / ↑q.den).den = q.den\n⊢ ↑↑q.num / ↑q.den = ↑q.num / ↑q.den",
"ppTerm": "?m.35",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWit... | [
"K : Type u_2\ninst✝ : DivisionRing K\nq : ℚ≥0\nhn : (↑q.num / ↑q.den).num = ↑q.num\nhd : (↑q.num / ↑q.den).den = q.den\n⊢ ↑q.num / ↑q.den = ↑q.num / ↑q.den"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Ring.Int.Units | {
"line": 33,
"column": 2
} | {
"line": 33,
"column": 61
} | {
"line": 35,
"column": 0
} | [
{
"pp": "u : ℤˣ\n⊢ u = 1 ∨ u = -1",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Units.val",
"Eq.mpr",
"NonUnitalCommRing.toNonUnitalNonAssocCommRing",
"CommRing.toNonUnitalCommRing",
"congrArg",
"Int.isUnit_eq_one_or",
"_private.Mathlib.Algebra.... | [] | simpa only [Units.ext_iff] using! isUnit_eq_one_or u.isUnit | Lean.Elab.Tactic.Simpa.evalSimpaUsingBang | Lean.Parser.Tactic.simpaUsingBang |
Mathlib.Algebra.Ring.Int.Units | {
"line": 33,
"column": 2
} | {
"line": 33,
"column": 61
} | {
"line": 35,
"column": 0
} | [
{
"pp": "u : ℤˣ\n⊢ u = 1 ∨ u = -1",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Units.val",
"Eq.mpr",
"NonUnitalCommRing.toNonUnitalNonAssocCommRing",
"CommRing.toNonUnitalCommRing",
"congrArg",
"Int.isUnit_eq_one_or",
"_private.Mathlib.Algebra.... | [] | simpa only [Units.ext_iff] using! isUnit_eq_one_or u.isUnit | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Ring.Int.Units | {
"line": 33,
"column": 2
} | {
"line": 33,
"column": 61
} | {
"line": 35,
"column": 0
} | [
{
"pp": "u : ℤˣ\n⊢ u = 1 ∨ u = -1",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Units.val",
"Eq.mpr",
"NonUnitalCommRing.toNonUnitalNonAssocCommRing",
"CommRing.toNonUnitalCommRing",
"congrArg",
"Int.isUnit_eq_one_or",
"_private.Mathlib.Algebra.... | [] | simpa only [Units.ext_iff] using! isUnit_eq_one_or u.isUnit | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Order.Floor.Defs | {
"line": 247,
"column": 4
} | {
"line": 247,
"column": 9
} | {
"line": 248,
"column": 4
} | [
{
"pp": "α✝ : Type u_1\nβ : Type u_2\nα : Type ?u.5\ninst✝³ : Ring α\ninst✝² : LinearOrder α\ninst✝¹ : IsOrderedRing α\ninst✝ : Nontrivial α\nbounded : ∀ (x : α), ∃ n, x ≤ ↑n\nbelow : ∀ (x : α), ∃ n, ↑n ≤ x\nx : α\nn : ℕ\nhn : x ≤ ↑n\n⊢ ∃ n, x ≤ ↑n",
"ppTerm": "?m.65",
"assigned": true,
"usedConstan... | [
"case h\nα✝ : Type u_1\nβ : Type u_2\nα : Type ?u.5\ninst✝³ : Ring α\ninst✝² : LinearOrder α\ninst✝¹ : IsOrderedRing α\ninst✝ : Nontrivial α\nbounded : ∀ (x : α), ∃ n, x ≤ ↑n\nbelow : ∀ (x : α), ∃ n, ↑n ≤ x\nx : α\nn : ℕ\nhn : x ≤ ↑n\n⊢ x ≤ ↑↑n"
] | use n | Mathlib.Tactic._aux_Mathlib_Tactic_Use___elabRules_Mathlib_Tactic_useSyntax_1 | Mathlib.Tactic.useSyntax |
Mathlib.Algebra.Order.Floor.Semiring | {
"line": 45,
"column": 28
} | {
"line": 45,
"column": 45
} | {
"line": 47,
"column": 0
} | [
{
"pp": "R : Type u_1\ninst✝² : Semiring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorSemiring R\na : R\nha : 0 ≤ a\n⊢ a < ↑1 ↔ a < 1",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Preorder.toLT",
"congrArg",
"... | [] | rw [Nat.cast_one] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Order.Floor.Semiring | {
"line": 45,
"column": 28
} | {
"line": 45,
"column": 45
} | {
"line": 47,
"column": 0
} | [
{
"pp": "R : Type u_1\ninst✝² : Semiring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorSemiring R\na : R\nha : 0 ≤ a\n⊢ a < ↑1 ↔ a < 1",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Preorder.toLT",
"congrArg",
"... | [] | rw [Nat.cast_one] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Order.Floor.Semiring | {
"line": 45,
"column": 28
} | {
"line": 45,
"column": 45
} | {
"line": 47,
"column": 0
} | [
{
"pp": "R : Type u_1\ninst✝² : Semiring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorSemiring R\na : R\nha : 0 ≤ a\n⊢ a < ↑1 ↔ a < 1",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Preorder.toLT",
"congrArg",
"... | [] | rw [Nat.cast_one] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Order.Floor.Defs | {
"line": 355,
"column": 82
} | {
"line": 355,
"column": 98
} | {
"line": 355,
"column": 98
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Ring α\ninst✝¹ : LinearOrder α\ninst✝ : FloorRing α\na : α\nn : ℕ\nha : 0 ≤ a\n⊢ ↑↑n ≤ a ↔ ↑n ≤ a",
"ppTerm": "?m.69",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Int.cast... | [
"α : Type u_1\nβ : Type u_2\ninst✝² : Ring α\ninst✝¹ : LinearOrder α\ninst✝ : FloorRing α\na : α\nn : ℕ\nha : 0 ≤ a\n⊢ ↑n ≤ a ↔ ↑n ≤ a"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Order.Floor.Defs | {
"line": 356,
"column": 51
} | {
"line": 356,
"column": 67
} | {
"line": 356,
"column": 67
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Ring α\ninst✝¹ : LinearOrder α\ninst✝ : FloorRing α\na : α\nn : ℕ\n⊢ a ≤ ↑↑n ↔ a ≤ ↑n",
"ppTerm": "?m.85",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Int.cast_natCast",
... | [
"α : Type u_1\nβ : Type u_2\ninst✝² : Ring α\ninst✝¹ : LinearOrder α\ninst✝ : FloorRing α\na : α\nn : ℕ\n⊢ a ≤ ↑n ↔ a ≤ ↑n"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Order.Field.Basic | {
"line": 699,
"column": 2
} | {
"line": 706,
"column": 14
} | {
"line": 708,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝² : Field α\ninst✝¹ : LinearOrder α\ninst✝ : IsStrictOrderedRing α\na b ε : α\nhε : 0 < ε\n⊢ 2 * a * b ≤ ε * a ^ 2 + ε⁻¹ * b ^ 2",
"ppTerm": "?m.55",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"NonUnitalNonAssocCommRing.toNonUnitalNonAssocCommSemiring",
... | [] | have h : 2 * (ε * a) * b ≤ (ε * a) ^ 2 + b ^ 2 := two_mul_le_add_sq (ε * a) b
calc 2 * a * b
_ = 2 * a * b * (ε * ε⁻¹) := by rw [mul_inv_cancel₀ hε.ne', mul_one]
_ = (2 * (ε * a) * b) * ε⁻¹ := by simp_rw [mul_assoc, mul_comm ε, mul_assoc]
_ ≤ ((ε * a) ^ 2 + b ^ 2) * ε⁻¹ := by gcongr; exact inv_nonneg.mpr hε.le
... | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Order.Field.Basic | {
"line": 699,
"column": 2
} | {
"line": 706,
"column": 14
} | {
"line": 708,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝² : Field α\ninst✝¹ : LinearOrder α\ninst✝ : IsStrictOrderedRing α\na b ε : α\nhε : 0 < ε\n⊢ 2 * a * b ≤ ε * a ^ 2 + ε⁻¹ * b ^ 2",
"ppTerm": "?m.55",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"NonUnitalNonAssocCommRing.toNonUnitalNonAssocCommSemiring",
... | [] | have h : 2 * (ε * a) * b ≤ (ε * a) ^ 2 + b ^ 2 := two_mul_le_add_sq (ε * a) b
calc 2 * a * b
_ = 2 * a * b * (ε * ε⁻¹) := by rw [mul_inv_cancel₀ hε.ne', mul_one]
_ = (2 * (ε * a) * b) * ε⁻¹ := by simp_rw [mul_assoc, mul_comm ε, mul_assoc]
_ ≤ ((ε * a) ^ 2 + b ^ 2) * ε⁻¹ := by gcongr; exact inv_nonneg.mpr hε.le
... | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.List.Basic | {
"line": 324,
"column": 4
} | {
"line": 324,
"column": 72
} | {
"line": 325,
"column": 4
} | [
{
"pp": "α : Type u\na b : α\nl : List α\nh : a :: b :: l ≠ []\n⊢ (a :: b :: l).dropLast ++ [(a :: b :: l).getLast h] = a :: b :: l",
"ppTerm": "?m.32",
"assigned": true,
"usedConstants": [
"List.getLast",
"Eq.mpr",
"congrArg",
"id",
"List.dropLast",
"List.cons",
... | [
"α : Type u\na b : α\nl : List α\nh : a :: b :: l ≠ []\n⊢ a :: ((b :: l).dropLast ++ [(b :: l).getLast ⋯]) = a :: b :: l"
] | rw [dropLast_cons_cons, cons_append, getLast_cons (cons_ne_nil _ _)] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Data.List.Basic | {
"line": 627,
"column": 38
} | {
"line": 628,
"column": 26
} | {
"line": 630,
"column": 0
} | [
{
"pp": "α : Type u\nl : List α\ninst✝¹ : BEq α\ninst✝ : LawfulBEq α\na : α\nhl : l ≠ []\nha : l.head hl ≠ a\n⊢ idxOf a l.tail = idxOf a l - 1",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"List.head",
"False",
"eq_false",
"congrArg",
"HSub.hSub",
"Lis... | [] | by
induction l <;> simp_all | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.List.Basic | {
"line": 653,
"column": 2
} | {
"line": 657,
"column": 23
} | {
"line": 659,
"column": 0
} | [
{
"pp": "α : Type u\nl₁ l₂ : List α\n⊢ l₁ = l₂ ↔ l₁.length = l₂.length ∧ ∀ (n : ℕ) (h₁ : n < l₁.length) (h₂ : n < l₂.length), l₁.get ⟨n, h₁⟩ = l₂.get ⟨n, h₂⟩",
"ppTerm": "?m.13",
"assigned": true,
"usedConstants": [
"List.get",
"Fin.mk",
"List.ext_get",
"List",
"And",
... | [] | constructor
· rintro rfl
exact ⟨rfl, fun _ _ _ ↦ rfl⟩
· intro ⟨h₁, h₂⟩
exact ext_get h₁ h₂ | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.List.Basic | {
"line": 653,
"column": 2
} | {
"line": 657,
"column": 23
} | {
"line": 659,
"column": 0
} | [
{
"pp": "α : Type u\nl₁ l₂ : List α\n⊢ l₁ = l₂ ↔ l₁.length = l₂.length ∧ ∀ (n : ℕ) (h₁ : n < l₁.length) (h₂ : n < l₂.length), l₁.get ⟨n, h₁⟩ = l₂.get ⟨n, h₂⟩",
"ppTerm": "?m.13",
"assigned": true,
"usedConstants": [
"List.get",
"Fin.mk",
"List.ext_get",
"List",
"And",
... | [] | constructor
· rintro rfl
exact ⟨rfl, fun _ _ _ ↦ rfl⟩
· intro ⟨h₁, h₂⟩
exact ext_get h₁ h₂ | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.List.Basic | {
"line": 696,
"column": 30
} | {
"line": 696,
"column": 44
} | {
"line": 696,
"column": 44
} | [
{
"pp": "ι : Type u_1\nα : Type u\nβ : Type v\nγ : Type w\nl✝ l₁ l₂ l : List α\ni j : ℕ\nh : i ≠ j\na : α\nhj : j < (l.set i a).length\n⊢ j < l.length",
"ppTerm": "?m.21",
"assigned": true,
"usedConstants": [
"congrArg",
"Eq.mp",
"List.set",
"Nat",
"LT.lt",
"instL... | [] | simpa using hj | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Data.List.Basic | {
"line": 696,
"column": 30
} | {
"line": 696,
"column": 44
} | {
"line": 696,
"column": 44
} | [
{
"pp": "ι : Type u_1\nα : Type u\nβ : Type v\nγ : Type w\nl✝ l₁ l₂ l : List α\ni j : ℕ\nh : i ≠ j\na : α\nhj : j < (l.set i a).length\n⊢ j < l.length",
"ppTerm": "?m.21",
"assigned": true,
"usedConstants": [
"congrArg",
"Eq.mp",
"List.set",
"Nat",
"LT.lt",
"instL... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.List.Basic | {
"line": 696,
"column": 30
} | {
"line": 696,
"column": 44
} | {
"line": 696,
"column": 44
} | [
{
"pp": "ι : Type u_1\nα : Type u\nβ : Type v\nγ : Type w\nl✝ l₁ l₂ l : List α\ni j : ℕ\nh : i ≠ j\na : α\nhj : j < (l.set i a).length\n⊢ j < l.length",
"ppTerm": "?m.21",
"assigned": true,
"usedConstants": [
"congrArg",
"Eq.mp",
"List.set",
"Nat",
"LT.lt",
"instL... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Tactic.FieldSimp.Lemmas | {
"line": 348,
"column": 6
} | {
"line": 348,
"column": 38
} | {
"line": 348,
"column": 39
} | [
{
"pp": "M : Type u_1\ninst✝ : CommGroupWithZero M\nl : NF M\nr : ℤ\nhr : r ≠ 0\nx : M\nhx : x = l.eval\n⊢ x ^ r = (l ^ r).eval",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"GroupWithZero.toDivInvMonoid",
"congrArg",
"DivInvMonoid.toZPow",
"id",
... | [
"M : Type u_1\ninst✝ : CommGroupWithZero M\nl : NF M\nr : ℤ\nhr : r ≠ 0\nx : M\nhx : x = l.eval\n⊢ zpow' x r = (l ^ r).eval"
] | ← zpow'_of_ne_zero_right x r hr, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.List.Basic | {
"line": 859,
"column": 2
} | {
"line": 859,
"column": 56
} | {
"line": 861,
"column": 0
} | [
{
"pp": "ι : Type u_1\nα : Type u\nβ : Type v\nγ : Type w\nl : List ι\nf : α → β → γ\nop₁ : ι → α → α\nop₂ : ι → β → β\nop₃ : ι → γ → γ\nb : β\nh : ∀ (a : α) (b : β) (i : ι), f (op₁ i a) (op₂ i b) = op₃ i (f a b)\n⊢ ∀ (a : α), foldr op₃ (f a b) l = f (foldr op₁ a l) (foldr op₂ b l)",
"ppTerm": "?m.13",
... | [] | induction l <;> intros <;> [rfl; simp only [*, foldr]] | Batteries.Tactic._aux_Batteries_Tactic_SeqFocus___macroRules_Batteries_Tactic_seq_focus_1 | Batteries.Tactic.seq_focus |
Mathlib.Algebra.Order.Round | {
"line": 217,
"column": 2
} | {
"line": 217,
"column": 17
} | {
"line": 218,
"column": 2
} | [
{
"pp": "α : Type u_2\ninst✝³ : Field α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nx : α\n⊢ ↑(round x) ≤ x + 1 / 2",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"instHDiv",
"Int.floor",
"congrArg",
... | [
"α : Type u_2\ninst✝³ : Field α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nx : α\n⊢ ↑⌊x + 1 / 2⌋ ≤ x + 1 / 2"
] | rw [round_eq x] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Order.Floor.Ring | {
"line": 256,
"column": 93
} | {
"line": 259,
"column": 66
} | {
"line": 261,
"column": 0
} | [
{
"pp": "R : Type u_4\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : IsOrderedAddMonoid R\ninst✝ : FloorRing R\nn : ℤ\nhn : 0 < n\na : R\n⊢ ⌊a * ↑n⌋ / n = ⌊a⌋",
"ppTerm": "?m.30",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"Int.instDiv",
"instHSMul",
... | [] | by
refine eq_of_forall_le_iff fun m ↦ ?_
rw [Int.le_ediv_iff_mul_le hn, le_floor, le_floor, cast_mul,
← zsmul_eq_mul', ← zsmul_eq_mul', zsmul_le_zsmul_iff_right hn] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.Rat.Floor | {
"line": 128,
"column": 38
} | {
"line": 128,
"column": 54
} | {
"line": 128,
"column": 54
} | [
{
"pp": "α : Type u_1\ninst✝³ : Field α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nn d : ℕ\ninv : Invertible ↑d\n⊢ ⌊↑(negOfNat n) / ↑d⌋ = negOfNat ⌈↑↑n / ↑d⌉.toNat",
"ppTerm": "?m.45",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"In... | [
"α : Type u_1\ninst✝³ : Field α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nn d : ℕ\ninv : Invertible ↑d\n⊢ ⌊↑(negOfNat n) / ↑d⌋ = negOfNat ⌈↑n / ↑d⌉.toNat"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Rat.Floor | {
"line": 368,
"column": 75
} | {
"line": 368,
"column": 91
} | {
"line": 368,
"column": 91
} | [
{
"pp": "q : ℚ\nq_pos : 0 < q\nq_num_pos : 0 < q.num\nq_num_abs_eq_q_num : ↑q.num.natAbs = q.num\nq_inv : ℚ := ↑q.den / ↑q.num\nq_inv_def : q_inv = ↑q.den / ↑q.num\n⊢ ↑↑q.den / ↑q.num = ↑q.den / ↑q.num",
"ppTerm": "?m.57",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
... | [
"q : ℚ\nq_pos : 0 < q\nq_num_pos : 0 < q.num\nq_num_abs_eq_q_num : ↑q.num.natAbs = q.num\nq_inv : ℚ := ↑q.den / ↑q.num\nq_inv_def : q_inv = ↑q.den / ↑q.num\n⊢ ↑q.den / ↑q.num = ↑q.den / ↑q.num"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Order.Archimedean.Basic | {
"line": 216,
"column": 2
} | {
"line": 216,
"column": 7
} | {
"line": 217,
"column": 2
} | [
{
"pp": "K : Type u_4\ninst✝³ : Semifield K\ninst✝² : LinearOrder K\ninst✝¹ : IsStrictOrderedRing K\ninst✝ : Archimedean K\nε : K\nhε : 0 < ε\nn : ℕ\nhn : 1 / ε < ↑n\n⊢ ∃ n, 1 / (↑n + 1) < ε",
"ppTerm": "?m.44",
"assigned": true,
"usedConstants": [
"NonAssocSemiring.toAddCommMonoidWithOne",
... | [
"case h\nK : Type u_4\ninst✝³ : Semifield K\ninst✝² : LinearOrder K\ninst✝¹ : IsStrictOrderedRing K\ninst✝ : Archimedean K\nε : K\nhε : 0 < ε\nn : ℕ\nhn : 1 / ε < ↑n\n⊢ 1 / (↑n + 1) < ε"
] | use n | Mathlib.Tactic._aux_Mathlib_Tactic_Use___elabRules_Mathlib_Tactic_useSyntax_1 | Mathlib.Tactic.useSyntax |
Mathlib.Algebra.Order.Archimedean.Basic | {
"line": 351,
"column": 40
} | {
"line": 351,
"column": 59
} | {
"line": 351,
"column": 59
} | [
{
"pp": "G : Type u_1\nM : Type u_2\nR : Type u_3\nK : Type u_4\ninst✝² : Field K\ninst✝¹ : LinearOrder K\ninst✝ : IsStrictOrderedRing K\nq : ℚ\n⊢ q ≤ ↑q",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"le_refl",
"DivisionRing.toRatCast",
"congrArg",
... | [] | by rw [Rat.cast_id] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Order.Floor.Ring | {
"line": 837,
"column": 4
} | {
"line": 837,
"column": 24
} | {
"line": 838,
"column": 4
} | [
{
"pp": "case inr\nk : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\na b : k\nhb : 1 < b\nhba✝ : ↑⌈(b - 1)⁻¹⌉ / b < a\nhba : (b - 1)⁻¹ ≤ a\n⊢ ↑⌈a⌉ < b * a",
"ppTerm": "?inr",
"assigned": true,
"usedConstants": [
"IsRightCancelAdd.addRightStr... | [
"case inr\nk : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\na b : k\nhb : 0 < b - 1\nhba✝ : ↑⌈(b - 1)⁻¹⌉ / b < a\nhba : (b - 1)⁻¹ ≤ a\n⊢ ↑⌈a⌉ < b * a"
] | rw [← sub_pos] at hb | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Order.Floor.Ring | {
"line": 959,
"column": 39
} | {
"line": 959,
"column": 55
} | {
"line": 959,
"column": 55
} | [
{
"pp": "R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : 0 ≤ a\n⊢ ↑⌊a⌋₊ = ↑↑⌊a⌋₊",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"Int.cast_natCast",
"FloorRing.toFloorSemiring",
"congrArg",
"A... | [
"R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : 0 ≤ a\n⊢ ↑⌊a⌋₊ = ↑⌊a⌋₊"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Order.Floor.Ring | {
"line": 962,
"column": 37
} | {
"line": 962,
"column": 53
} | {
"line": 962,
"column": 53
} | [
{
"pp": "R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : 0 ≤ a\n⊢ ↑⌈a⌉₊ = ↑↑⌈a⌉₊",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"Int.cast_natCast",
"FloorRing.toFloorSemiring",
"congrArg",
"A... | [
"R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : 0 ≤ a\n⊢ ↑⌈a⌉₊ = ↑⌈a⌉₊"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Order.Floor.Ring | {
"line": 965,
"column": 51
} | {
"line": 965,
"column": 67
} | {
"line": 965,
"column": 67
} | [
{
"pp": "R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : -1 < a\n⊢ ↑⌈a⌉₊ = ↑↑⌈a⌉₊",
"ppTerm": "?m.24",
"assigned": true,
"usedConstants": [
"Int.cast",
"Eq.mpr",
"Int.cast_natCast",
"FloorRing.toFloorSemiring",
"congrArg",
"... | [
"R : Type u_2\ninst✝² : Ring R\ninst✝¹ : LinearOrder R\ninst✝ : FloorRing R\na : R\nha : -1 < a\n⊢ ↑⌈a⌉₊ = ↑⌈a⌉₊"
] | Int.cast_natCast | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Multiset.ZeroCons | {
"line": 117,
"column": 73
} | {
"line": 118,
"column": 86
} | {
"line": 120,
"column": 0
} | [
{
"pp": "α : Type u_1\np : Multiset α → Prop\nempty : p 0\ncons : ∀ (a : α) (s : Multiset α), p s → p (a ::ₘ s)\n⊢ ∀ (s : Multiset α), p s",
"ppTerm": "?m.5",
"assigned": true,
"usedConstants": [
"Quot.ind",
"Multiset",
"List.rec",
"List",
"List.isSetoid",
"Setoid... | [] | by
rintro ⟨l⟩; induction l with | nil => exact empty | cons _ _ ih => exact cons _ _ ih | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Group.Pointwise.Set.Basic | {
"line": 765,
"column": 19
} | {
"line": 765,
"column": 72
} | {
"line": 767,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝ : CancelMonoid α\ns : Set α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Set.Nontrivial.mul",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mon... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Algebra.Group.Pointwise.Set.Basic | {
"line": 765,
"column": 19
} | {
"line": 765,
"column": 72
} | {
"line": 767,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝ : CancelMonoid α\ns : Set α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Set.Nontrivial.mul",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mon... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Group.Pointwise.Set.Basic | {
"line": 765,
"column": 19
} | {
"line": 765,
"column": 72
} | {
"line": 767,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝ : CancelMonoid α\ns : Set α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Set.Nontrivial.mul",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mon... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Multiset.MapFold | {
"line": 479,
"column": 4
} | {
"line": 481,
"column": 87
} | {
"line": 483,
"column": 0
} | [] | [] | s.map f = s.pmap (fun x _ => f x) fun _ => id := by rw [pmap_eq_map]
_ = s.attach.map fun x => f x.1 := by rw [pmap_eq_map_attach]
_ = t.map g := by rw [this, Multiset.map_map]; exact map_congr rfl fun x _ => h _ _ | Lean.Elab.Tactic._aux_Mathlib_Tactic_Widget_Calc___elabRules_Lean_calcTactic_1 | Lean.calcSteps |
Mathlib.Data.List.Dedup | {
"line": 50,
"column": 64
} | {
"line": 54,
"column": 55
} | {
"line": 56,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : DecidableEq α\na : α\nl : List α\n⊢ a ∈ l.dedup ↔ a ∈ l",
"ppTerm": "?m.9",
"assigned": true,
"usedConstants": [
"instDecidableNot",
"List.forall_mem_pwFilter",
"congrArg",
"List.dedup",
"Membership.mem",
"mt",
"Eq.mp",
"... | [] | by
have := not_congr (@forall_mem_pwFilter α (· ≠ ·) _ ?_ a l)
· simpa only [dedup, forall_mem_ne, not_not] using this
· intro x y z xz
exact not_and_or.1 <| mt (fun h ↦ h.1.trans h.2) xz | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.List.Dedup | {
"line": 135,
"column": 6
} | {
"line": 135,
"column": 11
} | {
"line": 135,
"column": 12
} | [
{
"pp": "case cons\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\n⊢ (a :: l₁ ++ l₂).dedup = List.insert a (l₁ ∪ l₂.dedup)",
"ppTerm": "?cons",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"List.dedup",
... | [
"case cons\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\n⊢ (a :: l₁ ++ l₂).dedup = List.insert a (l₁ ++ l₂).dedup"
] | ← IH, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Multiset.Filter | {
"line": 341,
"column": 4
} | {
"line": 341,
"column": 58
} | {
"line": 342,
"column": 4
} | [
{
"pp": "case neg\nα : Type u_1\nβ : Type v\ninst✝¹ : DecidableEq α\ninst✝ : DecidableEq β\nf : α → β\ns : Multiset α\nhf : Injective f\nx : α\nH : ¬x ∈ s\n⊢ count (f x) (map f s) = count x s",
"ppTerm": "?neg✝",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Multiset.map",
"congr... | [
"case neg\nα : Type u_1\nβ : Type v\ninst✝¹ : DecidableEq α\ninst✝ : DecidableEq β\nf : α → β\ns : Multiset α\nhf : Injective f\nx : α\nH : ¬x ∈ s\n⊢ ¬∃ a, a ∈ s ∧ f a = f x"
] | rw [count_eq_zero_of_notMem H, count_eq_zero, mem_map] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Data.Multiset.UnionInter | {
"line": 245,
"column": 4
} | {
"line": 245,
"column": 38
} | {
"line": 246,
"column": 2
} | [
{
"pp": "α : Type u_1\ninst✝ : DecidableEq α\nM N P Q : Multiset α\nh : ∀ (a : α), count a (M + N) = count a (P + Q)\nx : α\n⊢ count x M + count x N = count x P + count x Q",
"ppTerm": "?m.77",
"assigned": true,
"usedConstants": [
"congrArg",
"Multiset.count",
"Multiset",
"Eq... | [] | simp_all only [Multiset.count_add] | Lean.Elab.Tactic.evalSimpAll | Lean.Parser.Tactic.simpAll |
Mathlib.Data.List.Infix | {
"line": 222,
"column": 23
} | {
"line": 222,
"column": 40
} | {
"line": 222,
"column": 40
} | [
{
"pp": "α : Type u_1\ns✝ : List α\na : α\nt : List α\nmi : s✝ <+: a :: t\nb : α\ns r : List α\nhr : b :: s ++ r = a :: t\nba : b ≍ a\nst : s ++ r ≍ t\n⊢ ∃ l, l ∈ t.inits ∧ a :: l = b :: s",
"ppTerm": "?m.168",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Membership.... | [
"α : Type u_1\ns✝ : List α\na : α\nt : List α\nmi : s✝ <+: a :: t\nb : α\ns r : List α\nhr : b :: s ++ r = a :: t\nba : b ≍ a\nst : s ++ r ≍ t\n⊢ ∃ l, l ∈ t.inits ∧ a :: l = a :: s"
] | rw [eq_of_heq ba] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Data.Finset.Insert | {
"line": 365,
"column": 2
} | {
"line": 365,
"column": 37
} | {
"line": 367,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : DecidableEq α\na : α\ns : Finset α\n⊢ (insert a s).val = (a ::ₘ s.val).dedup",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Multiset.dedup_cons",
"congrArg",
"Finset.dedup_eq_self",
"Finset",
"Multiset.dedup",
... | [] | rw [dedup_cons, dedup_eq_self]; rfl | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Finset.Insert | {
"line": 365,
"column": 2
} | {
"line": 365,
"column": 37
} | {
"line": 367,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : DecidableEq α\na : α\ns : Finset α\n⊢ (insert a s).val = (a ::ₘ s.val).dedup",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Multiset.dedup_cons",
"congrArg",
"Finset.dedup_eq_self",
"Finset",
"Multiset.dedup",
... | [] | rw [dedup_cons, dedup_eq_self]; rfl | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Finset.Fold | {
"line": 119,
"column": 4
} | {
"line": 119,
"column": 70
} | {
"line": 120,
"column": 4
} | [
{
"pp": "case cons\nα : Type u_1\nβ : Type u_2\nγ : Type u_3\nop : β → β → β\nhc : Std.Commutative op\nha : Std.Associative op\nf : α → β\nb : β\ninst✝ : DecidableEq α\ng : γ → α\nhi : Std.IdempotentOp op\nx : γ\nxs : Finset γ\nhx : x ∉ xs\nih : fold op b f (image g xs) = fold op b (f ∘ g) xs\nthis : DecidableE... | [
"case cons\nα : Type u_1\nβ : Type u_2\nγ : Type u_3\nop : β → β → β\nhc : Std.Commutative op\nha : Std.Associative op\nf : α → β\nb : β\ninst✝ : DecidableEq α\ng : γ → α\nhi : Std.IdempotentOp op\nx : γ\nxs : Finset γ\nhx : x ∉ xs\nih : fold op b f (image g xs) = fold op b (f ∘ g) xs\nthis : DecidableEq γ\n⊢ op (f... | rw [fold_cons, cons_eq_insert, image_insert, fold_insert_idem, ih] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Data.Finset.Fold | {
"line": 149,
"column": 66
} | {
"line": 155,
"column": 10
} | {
"line": 157,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\nop : β → β → β\nhc : Std.Commutative op\nha : Std.Associative op\nf : α → β\nb : β\ns : Finset α\nr : β → β → Prop\nhr : ∀ {x y z : β}, r x (op y z) ↔ r x y ∧ r x z\nc : β\n⊢ r c (fold op b f s) ↔ r c b ∧ ∀ x ∈ s, r c (f x)",
"ppTerm": "?m.14",
"assigned": true,
... | [] | by
classical
induction s using Finset.induction_on with
| empty => simp
| insert a s ha IH =>
rw [Finset.fold_insert ha, hr, IH, ← and_assoc, @and_comm (r c (f a)), and_assoc]
simp | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.List.Range | {
"line": 84,
"column": 6
} | {
"line": 88,
"column": 42
} | {
"line": 90,
"column": 0
} | [
{
"pp": "case cons.right\na : ℕ\nl : List ℕ\nhl : Pairwise Disjoint l.ranges\n⊢ Pairwise Disjoint (map (map fun x ↦ a + x) l.ranges)",
"ppTerm": "?cons.right",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"List.Pairwise",
"congrArg",
"List.map",
"id",
"List.pair... | [] | rw [pairwise_map]
apply Pairwise.imp _ hl
intro u v
apply disjoint_map
exact fun u v => Nat.add_left_cancel | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.List.Range | {
"line": 84,
"column": 6
} | {
"line": 88,
"column": 42
} | {
"line": 90,
"column": 0
} | [
{
"pp": "case cons.right\na : ℕ\nl : List ℕ\nhl : Pairwise Disjoint l.ranges\n⊢ Pairwise Disjoint (map (map fun x ↦ a + x) l.ranges)",
"ppTerm": "?cons.right",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"List.Pairwise",
"congrArg",
"List.map",
"id",
"List.pair... | [] | rw [pairwise_map]
apply Pairwise.imp _ hl
intro u v
apply disjoint_map
exact fun u v => Nat.add_left_cancel | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.BigOperators.Group.List.Lemmas | {
"line": 173,
"column": 6
} | {
"line": 173,
"column": 17
} | {
"line": 173,
"column": 18
} | [
{
"pp": "M : Type u_3\ninst✝ : CommMonoid M\nl₁ l₂ : List M\nh : l₁ <+ l₂\nl : List M\nhl : l₂ ~ l₁ ++ l\n⊢ l₁.prod ∣ l₂.prod",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"MulOne.toOne",
"Dvd.dvd",
"Monoid.toMulOneClass",
"congrArg",
"List.P... | [
"M : Type u_3\ninst✝ : CommMonoid M\nl₁ l₂ : List M\nh : l₁ <+ l₂\nl : List M\nhl : l₂ ~ l₁ ++ l\n⊢ l₁.prod ∣ (l₁ ++ l).prod"
] | hl.prod_eq, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.List.Rotate | {
"line": 211,
"column": 6
} | {
"line": 213,
"column": 36
} | {
"line": 214,
"column": 6
} | [
{
"pp": "case inr.e_a\nα : Type u\nl : List α\nn m : ℕ\nhml : m < l.length\nhm : l.length - n % l.length ≤ m\nhlt : n % l.length < l.length\nhm' : l.length ≤ n % l.length + m\n⊢ m - (l.length - n % l.length) = (m + n) % l.length",
"ppTerm": "?inr.e_a",
"assigned": true,
"usedConstants": [
"Eq.... | [
"case inr.e_a\nα : Type u\nl : List α\nn m : ℕ\nhml : m < l.length\nhm : l.length - n % l.length ≤ m\nhlt : n % l.length < l.length\nhm' : l.length ≤ n % l.length + m\nthis : n % l.length + m - l.length < l.length\n⊢ m - (l.length - n % l.length) = (m + n) % l.length"
] | have : n % length l + m - length l < length l := by
rw [Nat.sub_lt_iff_lt_add hm']
exact Nat.add_lt_add hlt hml | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Algebra.BigOperators.Group.Multiset.Basic | {
"line": 45,
"column": 55
} | {
"line": 47,
"column": 43
} | {
"line": 49,
"column": 0
} | [
{
"pp": "ι : Type u_2\nM : Type u_5\ninst✝¹ : CommMonoid M\nm : Multiset ι\nf : ι → M\ninst✝ : DecidableEq ι\na : ι\nh : a ∈ m\n⊢ f a * (map f (m.erase a)).prod = (map f m).prod",
"ppTerm": "?m.19",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Eq.mpr",
"MulOne.toOne",
"Mu... | [] | by
rw [← m.coe_toList, coe_erase, map_coe, map_coe, prod_coe, prod_coe,
List.prod_map_erase f (mem_toList.2 h)] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.BigOperators.Group.Multiset.Basic | {
"line": 58,
"column": 16
} | {
"line": 58,
"column": 85
} | {
"line": 60,
"column": 0
} | [
{
"pp": "M : Type u_5\ninst✝ : CommMonoid M\nm : Multiset M\nn : ℕ\n⊢ ((n + 1) • m).prod = m.prod ^ (n + 1)",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instHSMul",
"HMul.hMul",
"Monoid.toMulOneClass",
"congrArg",
"AddMonoid.toAddZeroClass"... | [] | rw [add_nsmul, one_nsmul, pow_add, pow_one, prod_add, prod_nsmul m n] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.BigOperators.Group.Multiset.Basic | {
"line": 58,
"column": 16
} | {
"line": 58,
"column": 85
} | {
"line": 60,
"column": 0
} | [
{
"pp": "M : Type u_5\ninst✝ : CommMonoid M\nm : Multiset M\nn : ℕ\n⊢ ((n + 1) • m).prod = m.prod ^ (n + 1)",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instHSMul",
"HMul.hMul",
"Monoid.toMulOneClass",
"congrArg",
"AddMonoid.toAddZeroClass"... | [] | rw [add_nsmul, one_nsmul, pow_add, pow_one, prod_add, prod_nsmul m n] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.BigOperators.Group.Multiset.Basic | {
"line": 58,
"column": 16
} | {
"line": 58,
"column": 85
} | {
"line": 60,
"column": 0
} | [
{
"pp": "M : Type u_5\ninst✝ : CommMonoid M\nm : Multiset M\nn : ℕ\n⊢ ((n + 1) • m).prod = m.prod ^ (n + 1)",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instHSMul",
"HMul.hMul",
"Monoid.toMulOneClass",
"congrArg",
"AddMonoid.toAddZeroClass"... | [] | rw [add_nsmul, one_nsmul, pow_add, pow_one, prod_add, prod_nsmul m n] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Finset.Card | {
"line": 802,
"column": 2
} | {
"line": 805,
"column": 9
} | {
"line": 807,
"column": 0
} | [
{
"pp": "α : Type u_1\ns : Finset α\ninst✝ : DecidableEq α\n⊢ #s = 2 ↔ ∃ x y, x ≠ y ∧ s = {x, y}",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Finset",
"Membership.mem",
"Exists",
"id",
"Insert.insert",
"Ne",
"i... | [] | constructor
· rw [card_eq_succ]
grind [card_eq_one]
· grind | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Finset.Card | {
"line": 802,
"column": 2
} | {
"line": 805,
"column": 9
} | {
"line": 807,
"column": 0
} | [
{
"pp": "α : Type u_1\ns : Finset α\ninst✝ : DecidableEq α\n⊢ #s = 2 ↔ ∃ x y, x ≠ y ∧ s = {x, y}",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Finset",
"Membership.mem",
"Exists",
"id",
"Insert.insert",
"Ne",
"i... | [] | constructor
· rw [card_eq_succ]
grind [card_eq_one]
· grind | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.List.Rotate | {
"line": 465,
"column": 31
} | {
"line": 465,
"column": 48
} | {
"line": 465,
"column": 48
} | [
{
"pp": "α : Type u\nl l' : List α\n⊢ l ~r l' ↔ ∃ a, a < l.length + 1 ∧ l.rotate a = l'",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"_private.Mathlib.Data.List.Rotate.0.List.isRotated_iff_mem_map_range._simp_1_3",
"Exists",
"id",
... | [
"α : Type u\nl l' : List α\n⊢ (∃ n, n ≤ l.length ∧ l.rotate n = l') ↔ ∃ a, a < l.length + 1 ∧ l.rotate a = l'"
] | isRotated_iff_mod | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | null |
Mathlib.Data.List.Rotate | {
"line": 474,
"column": 2
} | {
"line": 474,
"column": 7
} | {
"line": 476,
"column": 0
} | [
{
"pp": "α : Type u\nβ : Type u_1\nl₁ : List α\nf : α → β\nn : ℕ\n⊢ List.map f l₁ ~r (List.map f l₁).rotate n",
"ppTerm": "?m.27",
"assigned": true,
"usedConstants": [
"List.map",
"List",
"Nat",
"Exists.intro",
"Eq.refl",
"Eq",
"List.rotate"
],
"used... | [] | use n | Mathlib.Tactic._aux_Mathlib_Tactic_Use___elabRules_Mathlib_Tactic_useSyntax_1 | Mathlib.Tactic.useSyntax |
Mathlib.Order.Fin.Basic | {
"line": 116,
"column": 50
} | {
"line": 116,
"column": 74
} | {
"line": 117,
"column": 4
} | [
{
"pp": "n : ℕ\ninst✝ : NeZero n\n⊢ Subsingleton (Fin n) ↔ n = 1",
"ppTerm": "?m.21",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Fin.subsingleton_iff_le_one",
"id",
"instOfNatNat",
"LE.le",
"instLENat",
"Iff",
"Nat",
"prope... | [
"n : ℕ\ninst✝ : NeZero n\n⊢ n ≤ 1 ↔ n = 1"
] | subsingleton_iff_le_one, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Fin.SuccPred | {
"line": 238,
"column": 2
} | {
"line": 238,
"column": 55
} | {
"line": 240,
"column": 0
} | [
{
"pp": "n : ℕ\nj k : Fin n\n⊢ ↑↑j < ↑↑k ↔ j < k",
"ppTerm": "?m.11",
"assigned": true,
"usedConstants": [
"instNeZeroNatHAdd_1",
"congrArg",
"_private.Mathlib.Data.Fin.SuccPred.0.Fin.coe_succ_lt_iff_lt._simp_1_1",
"instOfNatNat",
"Fin.val",
"Fin.coe_eq_castSucc",... | [] | simp only [coe_eq_castSucc, castSucc_lt_castSucc_iff] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Data.Fin.SuccPred | {
"line": 238,
"column": 2
} | {
"line": 238,
"column": 55
} | {
"line": 240,
"column": 0
} | [
{
"pp": "n : ℕ\nj k : Fin n\n⊢ ↑↑j < ↑↑k ↔ j < k",
"ppTerm": "?m.11",
"assigned": true,
"usedConstants": [
"instNeZeroNatHAdd_1",
"congrArg",
"_private.Mathlib.Data.Fin.SuccPred.0.Fin.coe_succ_lt_iff_lt._simp_1_1",
"instOfNatNat",
"Fin.val",
"Fin.coe_eq_castSucc",... | [] | simp only [coe_eq_castSucc, castSucc_lt_castSucc_iff] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Fin.SuccPred | {
"line": 238,
"column": 2
} | {
"line": 238,
"column": 55
} | {
"line": 240,
"column": 0
} | [
{
"pp": "n : ℕ\nj k : Fin n\n⊢ ↑↑j < ↑↑k ↔ j < k",
"ppTerm": "?m.11",
"assigned": true,
"usedConstants": [
"instNeZeroNatHAdd_1",
"congrArg",
"_private.Mathlib.Data.Fin.SuccPred.0.Fin.coe_succ_lt_iff_lt._simp_1_1",
"instOfNatNat",
"Fin.val",
"Fin.coe_eq_castSucc",... | [] | simp only [coe_eq_castSucc, castSucc_lt_castSucc_iff] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Fin.SuccPred | {
"line": 250,
"column": 2
} | {
"line": 250,
"column": 39
} | {
"line": 252,
"column": 0
} | [
{
"pp": "case pos\nn m : ℕ\ni : Fin n\nh : i.succ = last n\n⊢ (castAdd m i).succ = natAdd n 0",
"ppTerm": "?pos✝",
"assigned": true,
"usedConstants": [
"instNeZeroNatHAdd_1",
"Fin.natAdd",
"Fin.succ",
"Fin.castAdd",
"congrArg",
"id",
"Fin.instOfNat",
"... | [] | exacts [Fin.ext congr($(h).val), rfl] | Batteries.Tactic._aux_Batteries_Tactic_Init___elabRules_Batteries_Tactic_exacts_1 | Batteries.Tactic.exacts |
Mathlib.Data.Fintype.Card | {
"line": 396,
"column": 2
} | {
"line": 396,
"column": 37
} | {
"line": 397,
"column": 2
} | [
{
"pp": "α : Type u_1\ninst✝² : Fintype α\np : α → Prop\ninst✝¹ : Fintype { a // p a }\ninst✝ : DecidablePred p\n⊢ card { x // p x } = #{x | p x}",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Finset.univ",
"Fintype.card_of_subtype",
"Finset.filter"
],
"usedFVar... | [
"α : Type u_1\ninst✝² : Fintype α\np : α → Prop\ninst✝¹ : Fintype { a // p a }\ninst✝ : DecidablePred p\n⊢ ∀ (x : α), x ∈ {x | p x} ↔ p x"
] | refine Fintype.card_of_subtype _ ?_ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 402,
"column": 2
} | {
"line": 402,
"column": 39
} | {
"line": 403,
"column": 2
} | [
{
"pp": "α : Sort u_1\nm n : ℕ\nxs : Fin m → α\nys : Fin n → α\ni : Fin (m + n)\n⊢ append xs ys i.rev = append (ys ∘ rev) (xs ∘ rev) (Fin.cast ⋯ i)",
"ppTerm": "?m.40",
"assigned": true,
"usedConstants": [
"Function.comp",
"Exists",
"instHAdd",
"Fin.cast",
"Exists.cases... | [
"α : Sort u_1\nm n : ℕ\nxs : Fin m → α\nys : Fin n → α\ni : Fin (m + n)\n⊢ append xs ys i.rev.rev = append (ys ∘ rev) (xs ∘ rev) (Fin.cast ⋯ i.rev)"
] | rcases rev_surjective i with ⟨i, rfl⟩ | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases | Lean.Parser.Tactic.rcases |
Mathlib.Data.List.Duplicate | {
"line": 95,
"column": 19
} | {
"line": 95,
"column": 49
} | {
"line": 96,
"column": 2
} | [
{
"pp": "case cons\nα : Type u_1\nl : List α\nx : α\nl' l₁✝ l₂✝ : List α\ny : α\na✝ : l₁✝ <+ l₂✝\nIH : x ∈+ l₁✝ → x ∈+ l₂✝\nhx : x ∈+ l₁✝\n⊢ x ∈+ y :: l₂✝",
"ppTerm": "?cons",
"assigned": true,
"usedConstants": [
"List.Duplicate.duplicate_cons"
],
"usedFVars": [
"α",
"l₂✝",... | [] | exact (IH hx).duplicate_cons _ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Data.List.Duplicate | {
"line": 95,
"column": 19
} | {
"line": 95,
"column": 49
} | {
"line": 96,
"column": 2
} | [
{
"pp": "case cons\nα : Type u_1\nl : List α\nx : α\nl' l₁✝ l₂✝ : List α\ny : α\na✝ : l₁✝ <+ l₂✝\nIH : x ∈+ l₁✝ → x ∈+ l₂✝\nhx : x ∈+ l₁✝\n⊢ x ∈+ y :: l₂✝",
"ppTerm": "?cons",
"assigned": true,
"usedConstants": [
"List.Duplicate.duplicate_cons"
],
"usedFVars": [
"α",
"l₂✝",... | [] | exact (IH hx).duplicate_cons _ | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.List.Duplicate | {
"line": 95,
"column": 19
} | {
"line": 95,
"column": 49
} | {
"line": 96,
"column": 2
} | [
{
"pp": "case cons\nα : Type u_1\nl : List α\nx : α\nl' l₁✝ l₂✝ : List α\ny : α\na✝ : l₁✝ <+ l₂✝\nIH : x ∈+ l₁✝ → x ∈+ l₂✝\nhx : x ∈+ l₁✝\n⊢ x ∈+ y :: l₂✝",
"ppTerm": "?cons",
"assigned": true,
"usedConstants": [
"List.Duplicate.duplicate_cons"
],
"usedFVars": [
"α",
"l₂✝",... | [] | exact (IH hx).duplicate_cons _ | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Fintype.EquivFin | {
"line": 210,
"column": 62
} | {
"line": 216,
"column": 34
} | {
"line": 218,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : Fintype α\n⊢ card α = 1 ↔ ∃ x, ∀ (y : α), y = x",
"ppTerm": "?m.8",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Unit.unit",
"Equiv.instEquivLike",
"congrArg",
"Exists",
"Equiv.mk",
"Fintype.card_eq",
"Fintype.card",
... | [] | by
rw [← card_unit, card_eq]
exact
⟨fun ⟨a⟩ => ⟨a.symm (), fun y => a.injective (Subsingleton.elim _ _)⟩,
fun ⟨x, hx⟩ =>
⟨⟨fun _ => (), fun _ => x, fun _ => (hx _).trans (hx _).symm, fun _ =>
Subsingleton.elim _ _⟩⟩⟩ | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.Fintype.EquivFin | {
"line": 349,
"column": 52
} | {
"line": 351,
"column": 5
} | {
"line": 353,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : Finite α\ne : α ↪ α\n⊢ e.equivOfFiniteSelfEmbedding.toEmbedding = e",
"ppTerm": "?m.6",
"assigned": true,
"usedConstants": [
"Function.Embedding",
"Equiv.toEmbedding",
"Function.Embedding.ext",
"Eq.refl",
"Function.instFunLikeEmbedding",
... | [] | by
ext
rfl | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.List.Sort | {
"line": 155,
"column": 2
} | {
"line": 155,
"column": 14
} | {
"line": 155,
"column": 15
} | [
{
"pp": "α : Type u_1\nr : α → α → Prop\ninst✝² : DecidableRel r\ninst✝¹ : DecidableEq α\ninst✝ : Std.Refl r\nx : α\nxs : List α\n⊢ (orderedInsert r x xs).erase x = xs",
"ppTerm": "?m.11",
"assigned": true,
"usedConstants": [
"List.orderedInsert",
"List.rec",
"instBEqOfDecidableEq"... | [
"case nil\nα : Type u_1\nr : α → α → Prop\ninst✝² : DecidableRel r\ninst✝¹ : DecidableEq α\ninst✝ : Std.Refl r\nx : α\n⊢ (orderedInsert r x []).erase x = []",
"case cons\nα : Type u_1\nr : α → α → Prop\ninst✝² : DecidableRel r\ninst✝¹ : DecidableEq α\ninst✝ : Std.Refl r\nx head✝ : α\ntail✝ : List α\ntail_ih✝ : (o... | induction xs | _private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction | Lean.Parser.Tactic.induction |
Mathlib.Data.List.Sort | {
"line": 161,
"column": 2
} | {
"line": 161,
"column": 14
} | {
"line": 161,
"column": 15
} | [
{
"pp": "α : Type u_1\nr : α → α → Prop\ninst✝¹ : DecidableRel r\ninst✝ : DecidableEq α\nx : α\nxs : List α\nhx : ¬x ∈ xs\n⊢ (orderedInsert r x xs).erase x = xs",
"ppTerm": "?m.13",
"assigned": true,
"usedConstants": [
"Membership.mem",
"List.orderedInsert",
"List.rec",
"inst... | [
"case nil\nα : Type u_1\nr : α → α → Prop\ninst✝¹ : DecidableRel r\ninst✝ : DecidableEq α\nx : α\nhx : ¬x ∈ []\n⊢ (orderedInsert r x []).erase x = []",
"case cons\nα : Type u_1\nr : α → α → Prop\ninst✝¹ : DecidableRel r\ninst✝ : DecidableEq α\nx head✝ : α\ntail✝ : List α\ntail_ih✝ : ¬x ∈ tail✝ → (orderedInsert r ... | induction xs | _private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction | Lean.Parser.Tactic.induction |
Mathlib.Data.List.Sort | {
"line": 170,
"column": 2
} | {
"line": 170,
"column": 14
} | {
"line": 170,
"column": 15
} | [
{
"pp": "α : Type u_1\nr : α → α → Prop\ninst✝ : DecidableRel r\nx : α\nxs : List α\n⊢ xs <+ orderedInsert r x xs",
"ppTerm": "?m.8",
"assigned": true,
"usedConstants": [
"List.orderedInsert",
"List.rec",
"List",
"List.Sublist"
],
"usedFVars": [
"α",
"r",
... | [
"case nil\nα : Type u_1\nr : α → α → Prop\ninst✝ : DecidableRel r\nx : α\n⊢ [] <+ orderedInsert r x []",
"case cons\nα : Type u_1\nr : α → α → Prop\ninst✝ : DecidableRel r\nx head✝ : α\ntail✝ : List α\ntail_ih✝ : tail✝ <+ orderedInsert r x tail✝\n⊢ head✝ :: tail✝ <+ orderedInsert r x (head✝ :: tail✝)"
] | induction xs | _private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction | Lean.Parser.Tactic.induction |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1094,
"column": 39
} | {
"line": 1094,
"column": 50
} | {
"line": 1096,
"column": 0
} | [
{
"pp": "n : ℕ\nα : Fin (n + 1) → Type u_3\n⊢ (insertNthEquiv α 0).symm = (consEquiv α).symm",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Fin.succAbove",
"instNeZeroNatHAdd_1",
"Equiv.instEquivLike",
"Fin.instOfNat",
"Equiv",
"Equiv.ext",
"inst... | [] | ext <;> rfl | Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1» | Lean.Parser.Tactic.«tactic_<;>_» |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1094,
"column": 39
} | {
"line": 1094,
"column": 50
} | {
"line": 1096,
"column": 0
} | [
{
"pp": "n : ℕ\nα : Fin (n + 1) → Type u_3\n⊢ (insertNthEquiv α 0).symm = (consEquiv α).symm",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Fin.succAbove",
"instNeZeroNatHAdd_1",
"Equiv.instEquivLike",
"Fin.instOfNat",
"Equiv",
"Equiv.ext",
"inst... | [] | ext <;> rfl | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1094,
"column": 39
} | {
"line": 1094,
"column": 50
} | {
"line": 1096,
"column": 0
} | [
{
"pp": "n : ℕ\nα : Fin (n + 1) → Type u_3\n⊢ (insertNthEquiv α 0).symm = (consEquiv α).symm",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Fin.succAbove",
"instNeZeroNatHAdd_1",
"Equiv.instEquivLike",
"Fin.instOfNat",
"Equiv",
"Equiv.ext",
"inst... | [] | ext <;> rfl | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1282,
"column": 2
} | {
"line": 1282,
"column": 70
} | {
"line": 1284,
"column": 0
} | [
{
"pp": "n : ℕ\np : Fin n → Bool\nh : (find? p).isSome = true\n⊢ find? p = some (Fin.find (fun x ↦ p x = true) ⋯)",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"dite_congr",
"instDecidableTrue",
"Fin.find?_eq_dite",
"congrArg",
"Option.some",... | [] | simp_rw [find?_eq_dite, exists_eq_true_of_isSome_find? h, dite_true] | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | Mathlib.Tactic.tacticSimp_rw___ |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1282,
"column": 2
} | {
"line": 1282,
"column": 70
} | {
"line": 1284,
"column": 0
} | [
{
"pp": "n : ℕ\np : Fin n → Bool\nh : (find? p).isSome = true\n⊢ find? p = some (Fin.find (fun x ↦ p x = true) ⋯)",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"dite_congr",
"instDecidableTrue",
"Fin.find?_eq_dite",
"congrArg",
"Option.some",... | [] | simp_rw [find?_eq_dite, exists_eq_true_of_isSome_find? h, dite_true] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Fin.Tuple.Basic | {
"line": 1282,
"column": 2
} | {
"line": 1282,
"column": 70
} | {
"line": 1284,
"column": 0
} | [
{
"pp": "n : ℕ\np : Fin n → Bool\nh : (find? p).isSome = true\n⊢ find? p = some (Fin.find (fun x ↦ p x = true) ⋯)",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"dite_congr",
"instDecidableTrue",
"Fin.find?_eq_dite",
"congrArg",
"Option.some",... | [] | simp_rw [find?_eq_dite, exists_eq_true_of_isSome_find? h, dite_true] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.List.OffDiag | {
"line": 42,
"column": 68
} | {
"line": 47,
"column": 55
} | {
"line": 49,
"column": 0
} | [
{
"pp": "α : Type u_1\na : α\nl : List α\n⊢ (a :: l).offDiag ~ map (fun x ↦ (a, x)) l ++ map (fun x ↦ (x, a)) l ++ l.offDiag",
"ppTerm": "?m.27",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"List.eraseIdx",
"List.Perm.refl._simp_1",
"List.append_assoc",
"List.map_con... | [] | by
simp only [offDiag, zipIdx_cons']
have : map (fun x ↦ (x.fst, a)) l.zipIdx = map (·, a) l := by
conv_rhs => rw [← zipIdx_map_fst 0 l, map_map, Function.comp_def]
simp [append_assoc, perm_append_left_iff, flatMap_map,
← (map_append_flatMap_perm _ _ _).congr_left, this] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.Fintype.Pi | {
"line": 100,
"column": 2
} | {
"line": 100,
"column": 71
} | {
"line": 102,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝² : DecidableEq α\ninst✝¹ : Fintype α\nδ : α → Type u_4\nt : (a : α) → Finset (δ a)\na : α\ninst✝ : DecidableEq (δ a)\nx : δ a\nh : x ∈ t a\nf : (b : α) → a ≠ b → δ b\nhf : ∀ (b : α) (a : a ≠ b), f b a ∈ t b\n⊢ ∃ a_1 ∈ piFinset t, a_1 a = x",
"ppTerm": "?m.45",
"assigned": tr... | [] | exact ⟨fun b ↦ if h : a = b then h ▸ x else f _ h, by aesop, by simp⟩ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Data.Nat.Choose.Basic | {
"line": 107,
"column": 26
} | {
"line": 107,
"column": 43
} | {
"line": 107,
"column": 44
} | [
{
"pp": "n : ℕ\n⊢ (n + 1) * (n + 1 - 1) / 2 = (n * (n - 1) + 2 * n) / 2",
"ppTerm": "?m.55",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instHDiv",
"HMul.hMul",
"congrArg",
"HSub.hSub",
"id",
"HDiv.hDiv",
"instSubNat",
"instMulNat",
"in... | [
"n : ℕ\n⊢ (n + 1) * (n + 1 - 1) / 2 = (n * (n - 1) + n * 2) / 2",
"case H\nn : ℕ\n⊢ 0 < 2"
] | Nat.mul_comm 2 n, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.List.OffDiag | {
"line": 120,
"column": 2
} | {
"line": 120,
"column": 56
} | {
"line": 121,
"column": 2
} | [
{
"pp": "α : Type u_1\nl : List α\nh : l.Nodup\nx y : α\n⊢ (x, y) ∈ l.offDiag ↔ (x, y).fst ∈ l ∧ (x, y).snd ∈ l ∧ (x, y).fst ≠ (x, y).snd",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Eq.mpr",
"Iff.of_eq",
"_private.Mathlib.Data.List.OffDiag.0.List.Nod... | [
"α : Type u_1\nl : List α\nh : l.Nodup\nx y : α\n⊢ (∃ i h j h_1, ¬i = j ∧ l[i] = x ∧ l[j] = y) ↔ (∃ i h, l[i] = x) ∧ (∃ i h, l[i] = y) ∧ ¬x = y"
] | simp_rw [mem_offDiag_iff_getElem, mem_iff_getElem, Ne] | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | Mathlib.Tactic.tacticSimp_rw___ |
Mathlib.Data.Nat.Choose.Basic | {
"line": 317,
"column": 2
} | {
"line": 321,
"column": 92
} | {
"line": 323,
"column": 0
} | [
{
"pp": "r n : ℕ\nh : r < n / 2\n⊢ n.choose r ≤ n.choose (r + 1)",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.choose",
"instHDiv",
"Nat.lt_sub_iff_add_lt",
"HMul.hMul",
"Nat.div_mul_le_self",
"congrArg",
"Nat.sub_pos_of_lt",... | [] | refine Nat.le_of_mul_le_mul_right ?_ (Nat.sub_pos_of_lt (h.trans_le (n.div_le_self 2)))
rw [← choose_succ_right_eq]
apply Nat.mul_le_mul_left
rw [← Nat.lt_iff_add_one_le, Nat.lt_sub_iff_add_lt, ← Nat.mul_two]
exact lt_of_lt_of_le (Nat.mul_lt_mul_of_pos_right h Nat.zero_lt_two) (n.div_mul_le_self 2) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Nat.Choose.Basic | {
"line": 317,
"column": 2
} | {
"line": 321,
"column": 92
} | {
"line": 323,
"column": 0
} | [
{
"pp": "r n : ℕ\nh : r < n / 2\n⊢ n.choose r ≤ n.choose (r + 1)",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.choose",
"instHDiv",
"Nat.lt_sub_iff_add_lt",
"HMul.hMul",
"Nat.div_mul_le_self",
"congrArg",
"Nat.sub_pos_of_lt",... | [] | refine Nat.le_of_mul_le_mul_right ?_ (Nat.sub_pos_of_lt (h.trans_le (n.div_le_self 2)))
rw [← choose_succ_right_eq]
apply Nat.mul_le_mul_left
rw [← Nat.lt_iff_add_one_le, Nat.lt_sub_iff_add_lt, ← Nat.mul_two]
exact lt_of_lt_of_le (Nat.mul_lt_mul_of_pos_right h Nat.zero_lt_two) (n.div_mul_le_self 2) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Set.Lattice.Image | {
"line": 418,
"column": 26
} | {
"line": 418,
"column": 46
} | {
"line": 418,
"column": 46
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\nf : α → β\ns : Set β\n⊢ f ⁻¹' ⋃ i ∈ s, {i} = f ⁻¹' s",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Membership.mem",
"Set.biUnion_of_singleton",
"Set.instSingletonSet",
"id",
"Set.preimag... | [
"α : Type u_1\nβ : Type u_2\nf : α → β\ns : Set β\n⊢ f ⁻¹' s = f ⁻¹' s"
] | biUnion_of_singleton | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Set.Lattice.Image | {
"line": 478,
"column": 2
} | {
"line": 478,
"column": 19
} | {
"line": 480,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\nι : Sort u_5\ns : ι → Set α\nt : ι → Set β\nx✝ : α × β\n⊢ x✝ ∈ (⋂ i, s i) ×ˢ ⋂ i, t i ↔ x✝ ∈ ⋂ i, s i ×ˢ t i",
"ppTerm": "?m.24",
"assigned": true,
"usedConstants": [
"Set.instSProd",
"SProd.sprod",
"congrArg",
"Set.iInter",
"Set.mem... | [] | simp [forall_and] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Data.Finset.Lattice.Fold | {
"line": 744,
"column": 2
} | {
"line": 745,
"column": 67
} | {
"line": 747,
"column": 0
} | [
{
"pp": "α : Type u_2\nι : Type u_5\ninst✝ : LinearOrder α\ns : Finset ι\nH : s.Nonempty\nf : ι → α\na : α\n⊢ a ≤ s.sup' H f ↔ ∃ b ∈ s, a ≤ f b",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"WithBot.some",
"WithBot",
"Preorder.toLT",
"Lattice.toSem... | [] | rw [← WithBot.coe_le_coe, coe_sup', Finset.le_sup_iff (WithBot.bot_lt_coe a)]
exact exists_congr (fun _ => and_congr_right' WithBot.coe_le_coe) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Finset.Lattice.Fold | {
"line": 744,
"column": 2
} | {
"line": 745,
"column": 67
} | {
"line": 747,
"column": 0
} | [
{
"pp": "α : Type u_2\nι : Type u_5\ninst✝ : LinearOrder α\ns : Finset ι\nH : s.Nonempty\nf : ι → α\na : α\n⊢ a ≤ s.sup' H f ↔ ∃ b ∈ s, a ≤ f b",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"WithBot.some",
"WithBot",
"Preorder.toLT",
"Lattice.toSem... | [] | rw [← WithBot.coe_le_coe, coe_sup', Finset.le_sup_iff (WithBot.bot_lt_coe a)]
exact exists_congr (fun _ => and_congr_right' WithBot.coe_le_coe) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Finset.Sigma | {
"line": 121,
"column": 30
} | {
"line": 121,
"column": 47
} | {
"line": 121,
"column": 48
} | [
{
"pp": "ι : Type u_1\nα : ι → Type u_2\nβ : Type u_3\ninst✝ : CompleteLattice β\ns : Finset ι\nt : (i : ι) → Finset (α i)\nf : Sigma α → β\n⊢ ⨆ x ∈ ↑(s.sigma t), f x = ⨆ x ∈ ↑s, ⨆ x_1 ∈ ↑(t x), f ⟨x, x_1⟩",
"ppTerm": "?m.48",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Iff.of_eq",
... | [
"ι : Type u_1\nα : ι → Type u_2\nβ : Type u_3\ninst✝ : CompleteLattice β\ns : Finset ι\nt : (i : ι) → Finset (α i)\nf : Sigma α → β\n⊢ ⨆ x ∈ (↑s).sigma fun i ↦ ↑(t i), f x = ⨆ x ∈ ↑s, ⨆ x_1 ∈ ↑(t x), f ⟨x, x_1⟩"
] | Finset.coe_sigma, | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | null |
Mathlib.Data.Finset.Preimage | {
"line": 153,
"column": 2
} | {
"line": 157,
"column": 78
} | {
"line": 159,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Nonempty α\ninst✝¹ : SemilatticeSup β\ninst✝ : OrderBot β\ns : Finset β\nf : α → β\nhf : BijOn f (f ⁻¹' ↑s) ↑s\n⊢ (s.preimage f ⋯).sup f = s.sup id",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Finset.image_eq_preimage_of_leftInvOn_inj... | [] | classical
have hfinvs : ∀ x ∈ s, (f ∘ invFunOn f (f ⁻¹' ↑s)) x = id x := hf.invOn_invFunOn.2
rw [← sup_congr (Eq.refl s) hfinvs, ← sup_image]
congr
exact (image_eq_preimage_of_leftInvOn_injOn hf.invOn_invFunOn.2 hf.2.1).symm | Lean.Elab.Tactic.evalClassical | Lean.Parser.Tactic.classical |
Mathlib.Data.Finset.Preimage | {
"line": 153,
"column": 2
} | {
"line": 157,
"column": 78
} | {
"line": 159,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Nonempty α\ninst✝¹ : SemilatticeSup β\ninst✝ : OrderBot β\ns : Finset β\nf : α → β\nhf : BijOn f (f ⁻¹' ↑s) ↑s\n⊢ (s.preimage f ⋯).sup f = s.sup id",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Finset.image_eq_preimage_of_leftInvOn_inj... | [] | classical
have hfinvs : ∀ x ∈ s, (f ∘ invFunOn f (f ⁻¹' ↑s)) x = id x := hf.invOn_invFunOn.2
rw [← sup_congr (Eq.refl s) hfinvs, ← sup_image]
congr
exact (image_eq_preimage_of_leftInvOn_injOn hf.invOn_invFunOn.2 hf.2.1).symm | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Finset.Preimage | {
"line": 153,
"column": 2
} | {
"line": 157,
"column": 78
} | {
"line": 159,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Nonempty α\ninst✝¹ : SemilatticeSup β\ninst✝ : OrderBot β\ns : Finset β\nf : α → β\nhf : BijOn f (f ⁻¹' ↑s) ↑s\n⊢ (s.preimage f ⋯).sup f = s.sup id",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Finset.image_eq_preimage_of_leftInvOn_inj... | [] | classical
have hfinvs : ∀ x ∈ s, (f ∘ invFunOn f (f ⁻¹' ↑s)) x = id x := hf.invOn_invFunOn.2
rw [← sup_congr (Eq.refl s) hfinvs, ← sup_image]
congr
exact (image_eq_preimage_of_leftInvOn_injOn hf.invOn_invFunOn.2 hf.2.1).symm | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Finset.Preimage | {
"line": 226,
"column": 2
} | {
"line": 226,
"column": 9
} | {
"line": 227,
"column": 2
} | [
{
"pp": "α : Type u\nβ : Type v\nπ : β → Type u_1\ns : Finset β\ne : α ≃ β\n⊢ s.restrict ∘ ⇑(Equiv.piCongrLeft π e) =\n ⇑(Equiv.piCongrLeft (fun b ↦ π ↑b) (e.restrictPreimageFinset s)) ∘ (s.preimage ⇑e ⋯).restrict",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Equiv.instEquivLik... | [
"α : Type u\nβ : Type v\nπ : β → Type u_1\ns : Finset β\ne : α ≃ β\nx : (a : α) → π (e a)\nb : ↥s\n⊢ (s.restrict ∘ ⇑(Equiv.piCongrLeft π e)) x b =\n (⇑(Equiv.piCongrLeft (fun b ↦ π ↑b) (e.restrictPreimageFinset s)) ∘ (s.preimage ⇑e ⋯).restrict) x b"
] | ext x b | _private.Lean.Elab.Tactic.Ext.0.Lean.Elab.Tactic.Ext.evalExt | Lean.Elab.Tactic.Ext.ext |
Mathlib.Algebra.Group.Pointwise.Set.Lattice | {
"line": 271,
"column": 25
} | {
"line": 271,
"column": 41
} | {
"line": 271,
"column": 41
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝ : SMul α β\na : α\nS : Set (Set β)\n⊢ a • ⋃ i ∈ S, i = ⋃ s ∈ S, a • s",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"Set.smul_set_iUnion₂",
"Eq.mpr",
"instHSMul",
"congrArg",
"Membership.mem",
"id",
"HSM... | [
"α : Type u_1\nβ : Type u_2\ninst✝ : SMul α β\na : α\nS : Set (Set β)\n⊢ ⋃ i ∈ S, a • i = ⋃ s ∈ S, a • s"
] | smul_set_iUnion₂ | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Group.Pointwise.Finset.Basic | {
"line": 806,
"column": 2
} | {
"line": 808,
"column": 52
} | {
"line": 810,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝¹ : DecidableEq α\ninst✝ : Monoid α\ns : Finset α\nn : ℕ\n⊢ ↑(npowRec n s) = ↑s ^ n",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"Finset.coe_one",
"Eq.mpr",
"MulOne.toOne",
"Nat.recAux",
"HMul.hMul",
"Monoid.toMulOneClass",... | [] | induction n with
| zero => rw [npowRec, pow_zero, coe_one]
| succ n ih => rw [npowRec, pow_succ, coe_mul, ih] | _private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction | Lean.Parser.Tactic.induction |
Mathlib.Algebra.Group.Pointwise.Finset.Basic | {
"line": 1216,
"column": 19
} | {
"line": 1216,
"column": 72
} | {
"line": 1218,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝¹ : DecidableEq α\ninst✝ : CancelMonoid α\ns : Finset α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mono... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Algebra.Group.Pointwise.Finset.Basic | {
"line": 1216,
"column": 19
} | {
"line": 1216,
"column": 72
} | {
"line": 1218,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝¹ : DecidableEq α\ninst✝ : CancelMonoid α\ns : Finset α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mono... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Group.Pointwise.Finset.Basic | {
"line": 1216,
"column": 19
} | {
"line": 1216,
"column": 72
} | {
"line": 1218,
"column": 0
} | [
{
"pp": "α : Type u_2\ninst✝¹ : DecidableEq α\ninst✝ : CancelMonoid α\ns : Finset α\nhs : s.Nontrivial\nn : ℕ\nx✝ : n + 2 ≠ 0\n⊢ (s ^ (n + 2)).Nontrivial",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"CancelMonoid.toRightCancelMonoid",
"HMul.hMul",
"Mono... | [] | simpa [pow_succ] using (hs.pow n.succ_ne_zero).mul hs | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.