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.Combinatorics.SimpleGraph.Walk.Decomp | {
"line": 271,
"column": 14
} | {
"line": 271,
"column": 51
} | {
"line": 272,
"column": 2
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nw : V\ninst✝ : DecidableEq V\nu v : V\nn : ℕ\np : G.Walk u v\nhw : w ∈ p.support\nhn : n ≤ (p.takeUntil w hw).length\n| p.getVert n",
"ppTerm": "?m.38",
"assigned": true,
"usedConstants": [
"congrArg",
"SimpleGraph.Walk.length",
"HSub.hSub",
... | [
"V : Type u\nG : SimpleGraph V\nw : V\ninst✝ : DecidableEq V\nu v : V\nn : ℕ\np : G.Walk u v\nhw : w ∈ p.support\nhn : n ≤ (p.takeUntil w hw).length\n| if n < (p.takeUntil w hw).length then (p.takeUntil w hw).getVert n\n else (p.dropUntil w hw).getVert (n - (p.takeUntil w hw).length)"
] | rw [← take_spec p hw, getVert_append] | Lean.Elab.Tactic.Conv.evalConvSeq1Indented | Lean.Parser.Tactic.Conv.convSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Walk.Decomp | {
"line": 271,
"column": 14
} | {
"line": 271,
"column": 51
} | {
"line": 272,
"column": 2
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nw : V\ninst✝ : DecidableEq V\nu v : V\nn : ℕ\np : G.Walk u v\nhw : w ∈ p.support\nhn : n ≤ (p.takeUntil w hw).length\n| p.getVert n",
"ppTerm": "?m.38",
"assigned": true,
"usedConstants": [
"congrArg",
"SimpleGraph.Walk.length",
"HSub.hSub",
... | [
"V : Type u\nG : SimpleGraph V\nw : V\ninst✝ : DecidableEq V\nu v : V\nn : ℕ\np : G.Walk u v\nhw : w ∈ p.support\nhn : n ≤ (p.takeUntil w hw).length\n| if n < (p.takeUntil w hw).length then (p.takeUntil w hw).getVert n\n else (p.dropUntil w hw).getVert (n - (p.takeUntil w hw).length)"
] | rw [← take_spec p hw, getVert_append] | Lean.Elab.Tactic.Conv.evalConvSeq | Lean.Parser.Tactic.Conv.convSeq |
Mathlib.Combinatorics.SimpleGraph.Walk.Decomp | {
"line": 288,
"column": 2
} | {
"line": 294,
"column": 39
} | {
"line": 296,
"column": 0
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nv w u : V\ninst✝ : DecidableEq V\nn : ℕ\np : G.Walk v w\nh : u ∈ p.support\nhn : n < (p.takeUntil u h).length\n⊢ p.getVert n ≠ u",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"_private.Mathlib.Combinatorics.SimpleGraph.Walk.Decomp.0.SimpleGra... | [] | rintro rfl
have h₁ : n < (p.takeUntil _ h).support.dropLast.length := by simpa
have : p.getVert n ∈ (p.takeUntil _ h).support.dropLast := by
simp_rw [p.getVert_takeUntil h hn.le ▸ getVert_eq_support_getElem _ hn.le,
← List.getElem_dropLast h₁, List.getElem_mem h₁]
have := dropLast_support_concat _ ▸ p.c... | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Walk.Decomp | {
"line": 288,
"column": 2
} | {
"line": 294,
"column": 39
} | {
"line": 296,
"column": 0
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nv w u : V\ninst✝ : DecidableEq V\nn : ℕ\np : G.Walk v w\nh : u ∈ p.support\nhn : n < (p.takeUntil u h).length\n⊢ p.getVert n ≠ u",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"_private.Mathlib.Combinatorics.SimpleGraph.Walk.Decomp.0.SimpleGra... | [] | rintro rfl
have h₁ : n < (p.takeUntil _ h).support.dropLast.length := by simpa
have : p.getVert n ∈ (p.takeUntil _ h).support.dropLast := by
simp_rw [p.getVert_takeUntil h hn.le ▸ getVert_eq_support_getElem _ hn.le,
← List.getElem_dropLast h₁, List.getElem_mem h₁]
have := dropLast_support_concat _ ▸ p.c... | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.Paths | {
"line": 390,
"column": 2
} | {
"line": 390,
"column": 27
} | {
"line": 391,
"column": 2
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nu : V\np : G.Walk u u\nh : p.IsCircuit\n⊢ p.reverse.IsCircuit",
"ppTerm": "?m.15",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"SimpleGraph.Walk.IsCircuit",
"congrArg",
"SimpleGraph.Walk.isCircuit_def",
"SimpleGraph.Walk",
... | [
"V : Type u\nG : SimpleGraph V\nu : V\np : G.Walk u u\nh : p.IsTrail ∧ p ≠ nil\n⊢ p.reverse.IsTrail ∧ p.reverse ≠ nil"
] | rw [isCircuit_def] at h ⊢ | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.SimpleGraph.Regularity.Chunk | {
"line": 357,
"column": 6
} | {
"line": 357,
"column": 54
} | {
"line": 358,
"column": 6
} | [
{
"pp": "case hab\nα : Type u_1\ninst✝³ : Fintype α\ninst✝² : DecidableEq α\nP : Finpartition univ\nG : SimpleGraph α\ninst✝¹ : DecidableRel G.Adj\nε : ℝ\nU V : Finset α\ninst✝ : Nonempty α\nhP : P.IsEquipartition\nhPα : #P.parts * 16 ^ #P.parts ≤ Fintype.card α\nhPε : 100 ≤ 4 ^ #P.parts * ε ^ 5\nhU : U ∈ P.par... | [
"case hab\nα : Type u_1\ninst✝³ : Fintype α\ninst✝² : DecidableEq α\nP : Finpartition univ\nG : SimpleGraph α\ninst✝¹ : DecidableRel G.Adj\nε : ℝ\nU V : Finset α\ninst✝ : Nonempty α\nhP : P.IsEquipartition\nhPα : #P.parts * 16 ^ #P.parts ≤ Fintype.card α\nhPε : 100 ≤ 4 ^ #P.parts * ε ^ 5\nhU : U ∈ P.parts\nhV : V ∈... | have rflV := Subset.refl (chunk hP G ε hV).parts | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Combinatorics.SimpleGraph.Triangle.Basic | {
"line": 271,
"column": 2
} | {
"line": 273,
"column": 90
} | {
"line": 275,
"column": 0
} | [
{
"pp": "α : Type u_1\n𝕜 : Type u_3\ninst✝⁵ : Field 𝕜\ninst✝⁴ : LinearOrder 𝕜\ninst✝³ : IsStrictOrderedRing 𝕜\nG : SimpleGraph α\nε : 𝕜\ninst✝² : Fintype α\ninst✝¹ : DecidableRel G.Adj\ninst✝ : Nonempty α\nh₀ : G.FarFromTriangleFree ε\nh₁ : G.CliqueFree 3\n⊢ ε ≤ 0",
"ppTerm": "?m.22",
"assigned": t... | [] | have := h₀ (empty_subset _)
rw [coe_empty, Finset.card_empty, cast_zero, deleteEdges_empty] at this
exact nonpos_of_mul_nonpos_left (this h₁) (cast_pos.2 <| sq_pos_of_pos Fintype.card_pos) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Triangle.Basic | {
"line": 271,
"column": 2
} | {
"line": 273,
"column": 90
} | {
"line": 275,
"column": 0
} | [
{
"pp": "α : Type u_1\n𝕜 : Type u_3\ninst✝⁵ : Field 𝕜\ninst✝⁴ : LinearOrder 𝕜\ninst✝³ : IsStrictOrderedRing 𝕜\nG : SimpleGraph α\nε : 𝕜\ninst✝² : Fintype α\ninst✝¹ : DecidableRel G.Adj\ninst✝ : Nonempty α\nh₀ : G.FarFromTriangleFree ε\nh₁ : G.CliqueFree 3\n⊢ ε ≤ 0",
"ppTerm": "?m.22",
"assigned": t... | [] | have := h₀ (empty_subset _)
rw [coe_empty, Finset.card_empty, cast_zero, deleteEdges_empty] at this
exact nonpos_of_mul_nonpos_left (this h₁) (cast_pos.2 <| sq_pos_of_pos Fintype.card_pos) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.DegreeSum | {
"line": 61,
"column": 24
} | {
"line": 61,
"column": 35
} | {
"line": 61,
"column": 35
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\ninst✝² : Fintype V\ninst✝¹ : DecidableRel G.Adj\ninst✝ : DecidableEq V\nd : G.Dart\n⊢ G.dartOfNeighborSet d.toProd.1 ⟨d.toProd.2, ⋯⟩ = d",
"ppTerm": "?m.47",
"assigned": true,
"usedConstants": [
"SimpleGraph.dartOfNeighborSet",
"SimpleGraph.Dart.ex... | [] | ext <;> rfl | Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1» | Lean.Parser.Tactic.«tactic_<;>_» |
Mathlib.Combinatorics.SimpleGraph.DegreeSum | {
"line": 61,
"column": 24
} | {
"line": 61,
"column": 35
} | {
"line": 61,
"column": 35
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\ninst✝² : Fintype V\ninst✝¹ : DecidableRel G.Adj\ninst✝ : DecidableEq V\nd : G.Dart\n⊢ G.dartOfNeighborSet d.toProd.1 ⟨d.toProd.2, ⋯⟩ = d",
"ppTerm": "?m.47",
"assigned": true,
"usedConstants": [
"SimpleGraph.dartOfNeighborSet",
"SimpleGraph.Dart.ex... | [] | ext <;> rfl | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.DegreeSum | {
"line": 61,
"column": 24
} | {
"line": 61,
"column": 35
} | {
"line": 61,
"column": 35
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\ninst✝² : Fintype V\ninst✝¹ : DecidableRel G.Adj\ninst✝ : DecidableEq V\nd : G.Dart\n⊢ G.dartOfNeighborSet d.toProd.1 ⟨d.toProd.2, ⋯⟩ = d",
"ppTerm": "?m.47",
"assigned": true,
"usedConstants": [
"SimpleGraph.dartOfNeighborSet",
"SimpleGraph.Dart.ex... | [] | ext <;> rfl | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.DegreeSum | {
"line": 97,
"column": 2
} | {
"line": 97,
"column": 24
} | {
"line": 99,
"column": 0
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\ninst✝¹ : Fintype V\ninst✝ : DecidableRel G.Adj\ne : Sym2 V\nh : e ∈ G.edgeFinset\n⊢ e ∈ G.edgeSet",
"ppTerm": "?m.65",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Finset",
"SimpleGraph.fintypeEdgeSet",
"Membership.... | [] | rwa [← mem_edgeFinset] | Lean.Elab.Tactic.evalRwa | Lean.Parser.Tactic.rwa |
Mathlib.Combinatorics.SimpleGraph.Paths | {
"line": 736,
"column": 44
} | {
"line": 740,
"column": 7
} | {
"line": 742,
"column": 0
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nu v : V\ninst✝ : DecidableEq V\nc : G.Walk v v\nhc : c.IsCycle\nhu : u ∈ c.support\nhv : u ≠ v\n⊢ List.count u c.support = 1",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"List.head?",
"List.head",
"List.head?_eq_some_head",
... | [] | by
have := List.eq_or_mem_of_mem_cons <| List.cons_head_tail c.support_ne_nil ▸ hu
have := List.count_eq_one_of_mem hc.support_nodup <| this.resolve_left <| head_support _ ▸ hv
have := c.head_support ▸ List.head?_eq_some_head c.support_ne_nil
grind | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.SimpleGraph.Clique | {
"line": 567,
"column": 2
} | {
"line": 567,
"column": 62
} | {
"line": 568,
"column": 2
} | [
{
"pp": "case right\nα : Type u_1\nG : SimpleGraph α\nn : ℕ\ninst✝ : DecidableEq α\nh : Maximal (fun H ↦ H.CliqueFree (n + 1)) G\nx y : α\nhne : x ≠ y\nhn : ¬G.Adj x y\nt : Finset α\nhc : (G ⊔ edge x y).IsNClique (n + 1) t\nh1 : x ∈ t\n⊢ G.IsNClique n (insert x ((t.erase x).erase y)) ∧ G.IsNClique n (insert y (... | [
"case right\nα : Type u_1\nG : SimpleGraph α\nn : ℕ\ninst✝ : DecidableEq α\nh : Maximal (fun H ↦ H.CliqueFree (n + 1)) G\nx y : α\nhne : x ≠ y\nhn : ¬G.Adj x y\nt : Finset α\nhc : (G ⊔ edge x y).IsNClique (n + 1) t\nh1 : x ∈ t\nh2 : y ∈ t\n⊢ G.IsNClique n (insert x ((t.erase x).erase y)) ∧ G.IsNClique n (insert y (... | have h2 := h.1.mem_of_sup_edge_isNClique (edge_comm .. ▸ hc) | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Combinatorics.SimpleGraph.Triangle.Counting | {
"line": 119,
"column": 2
} | {
"line": 130,
"column": 10
} | {
"line": 131,
"column": 2
} | [
{
"pp": "α : Type u_1\nG : SimpleGraph α\ninst✝ : DecidableRel G.Adj\nε : ℝ\ns t u : Finset α\ndst : 2 * ε ≤ ↑(G.edgeDensity s t)\nhst : G.IsUniform ε s t\ndsu : 2 * ε ≤ ↑(G.edgeDensity s u)\nusu : G.IsUniform ε s u\ndtu : 2 * ε ≤ ↑(G.edgeDensity t u)\nutu : G.IsUniform ε t u\nh₁ : ↑(#(G.badVertices ε s t)) ≤ ↑... | [
"α : Type u_1\nG : SimpleGraph α\ninst✝ : DecidableRel G.Adj\nε : ℝ\ns t u : Finset α\ndst : 2 * ε ≤ ↑(G.edgeDensity s t)\nhst : G.IsUniform ε s t\ndsu : 2 * ε ≤ ↑(G.edgeDensity s u)\nusu : G.IsUniform ε s u\ndtu : 2 * ε ≤ ↑(G.edgeDensity t u)\nutu : G.IsUniform ε t u\nh₁ : ↑(#(G.badVertices ε s t)) ≤ ↑(#s) * ε\nh₂... | · apply le_trans _ (card_nsmul_le_sum X' _ _ <| G.good_vertices_triangle_card dst dsu dtu utu)
rw [nsmul_eq_mul]
have := hst.pos.le
suffices hX' : (1 - 2 * ε) * #s ≤ #X' by
exact Eq.trans_le (by ring) (mul_le_mul_of_nonneg_right hX' <| by positivity)
have i : badVertices G ε s t ∪ badVertices G ε ... | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.FieldTheory.ChevalleyWarning | {
"line": 77,
"column": 2
} | {
"line": 82,
"column": 61
} | {
"line": 83,
"column": 2
} | [
{
"pp": "K : Type u_1\nσ : Type u_2\ninst✝³ : Fintype K\ninst✝² : Field K\ninst✝¹ : Fintype σ\ninst✝ : DecidableEq σ\nf : MvPolynomial σ K\nh : f.totalDegree < (q - 1) * Fintype.card σ\nthis : DecidableEq K\nd : σ →₀ ℕ\nhd : d ∈ f.support\ni : σ\nhi : d i < q - 1\nx₀ : { j // j ≠ i } → K\ne : K ≃ { x // x ∘ Sub... | [
"K : Type u_1\nσ : Type u_2\ninst✝³ : Fintype K\ninst✝² : Field K\ninst✝¹ : Fintype σ\ninst✝ : DecidableEq σ\nf : MvPolynomial σ K\nh : f.totalDegree < (q - 1) * Fintype.card σ\nthis : DecidableEq K\nd : σ →₀ ℕ\nhd : d ∈ f.support\ni : σ\nhi : d i < q - 1\nx₀ : { j // j ≠ i } → K\ne : K ≃ { x // x ∘ Subtype.val = x... | calc
(∑ x : { x : σ → K // x ∘ (↑) = x₀ }, ∏ j, (x : σ → K) j ^ d j) =
∑ a : K, ∏ j : σ, (e a : σ → K) j ^ d j := (e.sum_comp _).symm
_ = ∑ a : K, (∏ j, x₀ j ^ d j) * a ^ d i := Fintype.sum_congr _ _ ?_
_ = (∏ j, x₀ j ^ d j) * ∑ a : K, a ^ d i := by rw [mul_sum]
_ = 0 := by rw [sum_pow_lt_card_s... | Lean.Elab.Tactic._aux_Mathlib_Tactic_Widget_Calc___elabRules_Lean_calcTactic_1 | Lean.calcTactic |
Mathlib.FieldTheory.ChevalleyWarning | {
"line": 112,
"column": 77
} | {
"line": 112,
"column": 86
} | {
"line": 113,
"column": 2
} | [
{
"pp": "K : Type u_1\nσ : Type u_2\nι : Type u_3\ninst✝⁵ : Fintype K\ninst✝⁴ : Field K\ninst✝³ : Fintype σ\ninst✝² : DecidableEq σ\ninst✝¹ : DecidableEq K\np : ℕ\ninst✝ : CharP K p\ns : Finset ι\nf : ι → MvPolynomial σ K\nh : ∑ i ∈ s, (f i).totalDegree < Fintype.card σ\n⊢ Nonempty Kˣ",
"ppTerm": "?m.51",
... | [] | exact ⟨1⟩ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Combinatorics.Additive.Energy | {
"line": 179,
"column": 2
} | {
"line": 179,
"column": 76
} | {
"line": 180,
"column": 2
} | [
{
"pp": "α : Type u_1\ninst✝² : DecidableEq α\ninst✝¹ : CommGroup α\ninst✝ : Fintype α\nt : Finset α\n⊢ Eₘ[univ, t] = Fintype.card α * #t ^ 2",
"ppTerm": "?m.24",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"HMul.hMul",
"Finset.univ",
"Monoid.toMulOneClass",
"SProd.s... | [
"α : Type u_1\ninst✝² : DecidableEq α\ninst✝¹ : CommGroup α\ninst✝ : Fintype α\nt : Finset α\n⊢ #({x ∈ univ ×ˢ t ×ˢ t | x.1.1 * x.2.1 = x.1.2 * x.2.2}) = #(univ ×ˢ t ×ˢ t)"
] | simp only [mulEnergy, univ_product_univ, Fintype.card, sq, ← card_product] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.Additive.ErdosGinzburgZiv | {
"line": 140,
"column": 8
} | {
"line": 140,
"column": 96
} | {
"line": 141,
"column": 6
} | [
{
"pp": "case refine_1\nm : ℕ\nhm : 2 ≤ m\nihm : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * m - 1 ≤ #s → ∃ t ⊆ s, #t = m ∧ ↑m ∣ ∑ i ∈ t, a i\nn : ℕ\nhn : 2 ≤ n\nihn : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * n - 1 ≤ #s → ∃ t ⊆ s, #t = n ∧ ↑n ∣ ∑ i ∈ t, a i\nι : Type u_1\ns : Finset ι\na : ι → ℤ\nh... | [] | rw [card_biUnion (h𝒜disj.mono hℬ𝒜), sum_const_nat fun t ht ↦ (h𝒜 <| hℬ𝒜 ht).2.1, hℬcard] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.Additive.ErdosGinzburgZiv | {
"line": 140,
"column": 8
} | {
"line": 140,
"column": 96
} | {
"line": 141,
"column": 6
} | [
{
"pp": "case refine_1\nm : ℕ\nhm : 2 ≤ m\nihm : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * m - 1 ≤ #s → ∃ t ⊆ s, #t = m ∧ ↑m ∣ ∑ i ∈ t, a i\nn : ℕ\nhn : 2 ≤ n\nihn : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * n - 1 ≤ #s → ∃ t ⊆ s, #t = n ∧ ↑n ∣ ∑ i ∈ t, a i\nι : Type u_1\ns : Finset ι\na : ι → ℤ\nh... | [] | rw [card_biUnion (h𝒜disj.mono hℬ𝒜), sum_const_nat fun t ht ↦ (h𝒜 <| hℬ𝒜 ht).2.1, hℬcard] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.Additive.ErdosGinzburgZiv | {
"line": 140,
"column": 8
} | {
"line": 140,
"column": 96
} | {
"line": 141,
"column": 6
} | [
{
"pp": "case refine_1\nm : ℕ\nhm : 2 ≤ m\nihm : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * m - 1 ≤ #s → ∃ t ⊆ s, #t = m ∧ ↑m ∣ ∑ i ∈ t, a i\nn : ℕ\nhn : 2 ≤ n\nihn : ∀ {ι : Type u_1} {s : Finset ι} (a : ι → ℤ), 2 * n - 1 ≤ #s → ∃ t ⊆ s, #t = n ∧ ↑n ∣ ∑ i ∈ t, a i\nι : Type u_1\ns : Finset ι\na : ι → ℤ\nh... | [] | rw [card_biUnion (h𝒜disj.mono hℬ𝒜), sum_const_nat fun t ht ↦ (h𝒜 <| hℬ𝒜 ht).2.1, hℬcard] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Nat.BitIndices | {
"line": 108,
"column": 2
} | {
"line": 108,
"column": 49
} | {
"line": 109,
"column": 2
} | [
{
"pp": "case cons\na : ℕ\nL : List ℕ\nhL : (a :: L).SortedLT\n⊢ (map (fun i ↦ 2 ^ i) (a :: L)).sum.bitIndices = a :: L",
"ppTerm": "?cons",
"assigned": true,
"usedConstants": [
"Nat.instMulZeroClass",
"Preorder.toLT",
"List.Pairwise",
"List.SortedLT.pairwise",
"Nat.bit... | [
"case cons\na : ℕ\nL : List ℕ\nhL✝ : (a :: L).SortedLT\nhaL : ∀ (a' : ℕ), a' ∈ L → a < a'\nhL : List.Pairwise (fun x1 x2 ↦ x1 < x2) L\n⊢ (map (fun i ↦ 2 ^ i) (a :: L)).sum.bitIndices = a :: L"
] | obtain ⟨haL, hL⟩ := pairwise_cons.1 hL.pairwise | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain | Lean.Parser.Tactic.obtain |
Mathlib.Combinatorics.Colex | {
"line": 296,
"column": 89
} | {
"line": 307,
"column": 75
} | {
"line": 309,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝ : LinearOrder α\ns t : Finset α\n⊢ toColex s ≤ toColex t ↔ ∀ (hst : s ≠ t), (s ∆ t).max' ⋯ ∈ t",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Eq.mpr",
"False",
"Preorder.toLT",
"lt_irrefl",
"Equiv.instEquivLike",... | [] | by
refine ⟨fun h hst ↦ ?_, fun h a has hat ↦ ?_⟩
· set m := (s ∆ t).max' (symmDiff_nonempty.2 hst)
by_contra hmt
have hms : m ∈ s := by
simpa [m, mem_symmDiff, hmt] using max'_mem _ <| symmDiff_nonempty.2 hst
have ⟨b, hbt, hbs, hmb⟩ := h hms hmt
exact lt_irrefl _ <| (max'_lt_iff _ _).1 (hmb.lt... | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Additive.VerySmallDoubling | {
"line": 93,
"column": 2
} | {
"line": 93,
"column": 34
} | {
"line": 95,
"column": 0
} | [
{
"pp": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : DecidableEq G\nA B : Finset G\na b : G\nha : a ∈ B\nhb : b ∈ B\nthis : #(a •> A ∪ b •> A) ≤ #(B * A)\n⊢ 2 * #A ≤ #(a •> A) + #(b •> A)",
"ppTerm": "?m.124",
"assigned": true,
"usedConstants": [
"instHSMul",
"instSMulOfMul",
"HMul.hMu... | [] | simp [card_smul_finset, two_mul] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.Configuration | {
"line": 496,
"column": 22
} | {
"line": 496,
"column": 38
} | {
"line": 496,
"column": 39
} | [
{
"pp": "K : Type u_3\ninst✝ : Field K\na b c d : Fin 3 → K\nhac : a ⬝ᵥ c = 0\nhbc : b ⬝ᵥ c = 0\nhad : a ⬝ᵥ d = 0\nhbd : b ⬝ᵥ d = 0\nh : LinearIndependent K (of ![a, b]).row ∧ LinearIndependent K (of ![c, d]).row\nA : Matrix (Fin 2) (Fin 3) K := of ![a, b]\nB : Matrix (Fin 2) (Fin 3) K := of ![c, d]\nhAB : A.ra... | [
"K : Type u_3\ninst✝ : Field K\na b c d : Fin 3 → K\nhac : a ⬝ᵥ c = 0\nhbc : b ⬝ᵥ c = 0\nhad : a ⬝ᵥ d = 0\nhbd : b ⬝ᵥ d = 0\nh : LinearIndependent K (of ![a, b]).row ∧ LinearIndependent K (of ![c, d]).row\nA : Matrix (Fin 2) (Fin 3) K := of ![a, b]\nB : Matrix (Fin 2) (Fin 3) K := of ![c, d]\nhAB : Fintype.card (Fi... | h.1.rank_matrix, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Additive.VerySmallDoubling | {
"line": 371,
"column": 2
} | {
"line": 372,
"column": 80
} | {
"line": 373,
"column": 2
} | [
{
"pp": "G : Type u_1\ninst✝² : Group G\ninst✝¹ : DecidableEq G\nH : Subgroup G\ninst✝ : Fintype ↥H\nZ : Finset G\nhZ : Set.InjOn (fun x ↦ ↑H <• x) ↑Z\nh₁ z₁ h₂ z₂ : G\nh : h₁ * z₁ = h₂ * z₂\nhh₁ : h₁ ∈ H\nhz₁ : z₁ ∈ Z\nhh₂ : h₂ ∈ H\nhz₂ : z₂ ∈ Z\n⊢ (h₁, z₁) = (h₂, z₂)",
"ppTerm": "?m.83",
"assigned": t... | [
"G : Type u_1\ninst✝² : Group G\ninst✝¹ : DecidableEq G\nH : Subgroup G\ninst✝ : Fintype ↥H\nZ : Finset G\nhZ : Set.InjOn (fun x ↦ ↑H <• x) ↑Z\nh₁ z₁ h₂ : G\nhh₁ : h₁ ∈ H\nhz₁ : z₁ ∈ Z\nhh₂ : h₂ ∈ H\nh : h₁ * z₁ = h₂ * z₁\nhz₂ : z₁ ∈ Z\n⊢ (h₁, z₁) = (h₂, z₁)"
] | obtain rfl := hZ hz₁ hz₂ <| (rightCoset_eq_iff _).2 <| by
simpa [eq_inv_mul_iff_mul_eq.2 h, mul_assoc] using mul_mem (inv_mem hh₂) hh₁ | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain | Lean.Parser.Tactic.obtain |
Mathlib.Combinatorics.Enumerative.DyckWord | {
"line": 129,
"column": 76
} | {
"line": 139,
"column": 5
} | {
"line": 141,
"column": 0
} | [
{
"pp": "p : DyckWord\nh : p ≠ 0\n⊢ U :: (↑p).dropLast.tail ++ [D] = ↑p",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"List.head",
"Iff.mpr",
"List.getLast",
"Eq.mpr",
"instDecidableEqDyckStep",
"False",
"Nat.instMulZeroClass",
"DyckWord.ge... | [] | by
have h' := toList_ne_nil.mpr h
have : p.toList.dropLast.take 1 = [p.toList.head h'] := by
rcases p with - | ⟨s, ⟨- | ⟨t, r⟩⟩⟩
· tauto
· rename_i bal _
cases s <;> simp at bal
· tauto
nth_rw 2 [← p.toList.dropLast_append_getLast h', ← p.toList.dropLast.take_append_drop 1]
rw [getLast_eq_... | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Enumerative.Bell | {
"line": 79,
"column": 2
} | {
"line": 79,
"column": 13
} | {
"line": 80,
"column": 2
} | [
{
"pp": "m : Multiset ℕ\n⊢ m.bell * (map (fun j ↦ j !) m).prod * ∏ j ∈ m.toFinset.erase 0, (count j m)! = m.sum !",
"ppTerm": "?m.30",
"assigned": true,
"usedConstants": [
"Multiset.sum",
"Multiset.toFinset",
"HMul.hMul",
"Multiset.map",
"Multiset.prod",
"Multiset... | [
"m : Multiset ℕ\n⊢ ((Nat.multinomial m.toFinset fun k ↦ k * count k m) *\n ∏ k ∈ m.toFinset.erase 0, ∏ j ∈ Finset.range (count k m), (j * k + k - 1).choose (k - 1)) *\n (map (fun j ↦ j !) m).prod *\n ∏ j ∈ m.toFinset.erase 0, (count j m)! =\n m.sum !"
] | unfold bell | Lean.Elab.Tactic.evalUnfold | Lean.Parser.Tactic.unfold |
Mathlib.Combinatorics.Enumerative.DyckWord | {
"line": 264,
"column": 29
} | {
"line": 264,
"column": 41
} | {
"line": 264,
"column": 42
} | [
{
"pp": "p : DyckWord\nh : p ≠ 0\n⊢ ¬p.firstReturn = 0",
"ppTerm": "?m.15",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instDecidableEqDyckStep",
"DyckStep.U",
"congrArg",
"id",
"instOfNatNat",
"List.range",
"instBEqOfDecidableEq",
"instHAdd"... | [
"p : DyckWord\nh : p ≠ 0\n⊢ ¬findIdx (fun i ↦ decide (count U (List.take (i + 1) ↑p) = count D (List.take (i + 1) ↑p))) (range (↑p).length) = 0"
] | firstReturn, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Enumerative.DyckWord | {
"line": 298,
"column": 6
} | {
"line": 298,
"column": 18
} | {
"line": 298,
"column": 19
} | [
{
"pp": "case neg\np q : DyckWord\nh : ¬p = 0\nu : ↑(p + q) = ↑p ++ ↑q\n⊢ (p + q).firstReturn = p.firstReturn",
"ppTerm": "?neg✝",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instDecidableEqDyckStep",
"instAddDyckWord",
"DyckStep.U",
"congrArg",
"DyckWord",
... | [
"case neg\np q : DyckWord\nh : ¬p = 0\nu : ↑(p + q) = ↑p ++ ↑q\n⊢ findIdx (fun i ↦ decide (count U (List.take (i + 1) ↑(p + q)) = count D (List.take (i + 1) ↑(p + q))))\n (range (↑(p + q)).length) =\n p.firstReturn"
] | firstReturn, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Enumerative.DyckWord | {
"line": 314,
"column": 6
} | {
"line": 314,
"column": 18
} | {
"line": 314,
"column": 19
} | [
{
"pp": "p : DyckWord\nu : ↑p.nest = U :: ↑p ++ [D]\n⊢ p.nest.firstReturn = (↑p).length + 1",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instDecidableEqDyckStep",
"DyckStep.U",
"congrArg",
"id",
"instOfNatNat",
"List.range",
"in... | [
"p : DyckWord\nu : ↑p.nest = U :: ↑p ++ [D]\n⊢ findIdx (fun i ↦ decide (count U (List.take (i + 1) ↑p.nest) = count D (List.take (i + 1) ↑p.nest)))\n (range (↑p.nest).length) =\n (↑p).length + 1"
] | firstReturn, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Enumerative.Bell | {
"line": 275,
"column": 33
} | {
"line": 275,
"column": 50
} | {
"line": 275,
"column": 51
} | [
{
"pp": "n✝ n : ℕ\nih : ∀ m < n + 1, m.bell = ∑ p, p.parts.bell\n⊢ ∑ i ∈ Finset.range (n + 1), ∑ p, n.choose i * ((↑p).parts.erase (i + 1)).bell =\n ∑ x, n.choose (↑x.snd - 1) * (x.fst.parts.erase ↑x.snd).bell",
"ppTerm": "?m.352",
"assigned": true,
"usedConstants": [
"Multiset.toFinset",
... | [
"n✝ n : ℕ\nih : ∀ m < n + 1, m.bell = ∑ p, p.parts.bell\n⊢ ∑ i, ∑ p, n.choose ↑i * ((↑p).parts.erase (↑i + 1)).bell =\n ∑ x, n.choose (↑x.snd - 1) * (x.fst.parts.erase ↑x.snd).bell"
] | Finset.sum_range, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Enumerative.IncidenceAlgebra | {
"line": 278,
"column": 17
} | {
"line": 278,
"column": 66
} | {
"line": 279,
"column": 2
} | [
{
"pp": "𝕜 : Type u_1\n𝕝 : Type u_2\n𝕞 : Type u_3\nα : Type u_4\nβ : Type u_5\ninst✝⁵ : Preorder α\ninst✝⁴ : LocallyFiniteOrder α\ninst✝³ : DecidableEq α\ninst✝² : Semiring 𝕜\ninst✝¹ : Semiring 𝕝\ninst✝ : Module 𝕜 𝕝\nf : IncidenceAlgebra 𝕝 α\n⊢ 0 • f = 0",
"ppTerm": "?m.153",
"assigned": true,
... | [] | by ext; exact sum_eq_zero fun x _ ↦ zero_smul _ _ | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Enumerative.IncidenceAlgebra | {
"line": 443,
"column": 98
} | {
"line": 444,
"column": 44
} | {
"line": 446,
"column": 0
} | [
{
"pp": "𝕜 : Type u_1\nα : Type u_4\ninst✝⁴ : AddCommGroup 𝕜\ninst✝³ : One 𝕜\ninst✝² : Preorder α\ninst✝¹ : LocallyFiniteOrder α\ninst✝ : DecidableEq α\na b : α\n⊢ (mu' 𝕜) a b = if a = b then 1 else -∑ x ∈ Ioc a b, (mu' 𝕜) x b",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Eq.... | [] | by
rw [mu', coe_mk, muFun'_apply, sum_attach] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Enumerative.IncidenceAlgebra | {
"line": 553,
"column": 10
} | {
"line": 553,
"column": 44
} | {
"line": 553,
"column": 44
} | [
{
"pp": "𝕜 : Type u_1\nα : Type u_4\ninst✝⁴ : Ring 𝕜\ninst✝³ : PartialOrder α\ninst✝² : OrderTop α\ninst✝¹ : LocallyFiniteOrder α\ninst✝ : DecidableEq α\nf g : α → 𝕜\nh : ∀ (x : α), g x = ∑ y ≥ x, f y\nx : α\nthis : DecidableLE α := Classical.decRel LE.le\n⊢ ∑ x_1 ∈ (Ici x).sigma fun y ↦ Ici y, (mu 𝕜) x x_1... | [
"𝕜 : Type u_1\nα : Type u_4\ninst✝⁴ : Ring 𝕜\ninst✝³ : PartialOrder α\ninst✝² : OrderTop α\ninst✝¹ : LocallyFiniteOrder α\ninst✝ : DecidableEq α\nf g : α → 𝕜\nh : ∀ (x : α), g x = ∑ y ≥ x, f y\nx : α\nthis : DecidableLE α := Classical.decRel LE.le\n⊢ ∑ x_1 ∈ (Ici x).sigma fun y ↦ Ici y, (mu 𝕜) x x_1.fst * (zeta... | sum_sigma' (Ici x) fun z ↦ Icc x z | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Additive.VerySmallDoubling | {
"line": 523,
"column": 28
} | {
"line": 523,
"column": 37
} | {
"line": 524,
"column": 2
} | [
{
"pp": "G : Type u_1\ninst✝¹ : Group G\ninst✝ : DecidableEq G\nK : ℝ\nA S : Finset G\nhK : K < 1\nhS : S.Nonempty\nhA : A.Nonempty\n⊢ 0 < ↑(#A)",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"Real.instIsOrderedRing",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Real.part... | [] | simp [hA] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.Enumerative.Pentagonal.Ring | {
"line": 125,
"column": 4
} | {
"line": 126,
"column": 23
} | {
"line": 127,
"column": 2
} | [
{
"pp": "case zero\nR : Type u_1\ninst✝³ : CommRing R\ninst✝² : TopologicalSpace R\ninst✝¹ : IsTopologicalRing R\ninst✝ : T2Space R\nx : R\nhx : IsTopologicallyNilpotent x\nhsum : ∀ (k : ℕ), Summable fun x_1 ↦ powMulProdOneSubPow k x_1 x\nh : ∀ (k : ℕ), Multipliable fun n ↦ 1 - x ^ (n + k + 1)\n⊢ ∏' (n : ℕ), (1... | [] | simp [tprod_one_sub_pow_eq_powMulProdOneSubPow_zero hsum h, powMulProdOneSubPow,
← sub_eq_add_neg] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.Enumerative.Pentagonal.Ring | {
"line": 125,
"column": 4
} | {
"line": 126,
"column": 23
} | {
"line": 127,
"column": 2
} | [
{
"pp": "case zero\nR : Type u_1\ninst✝³ : CommRing R\ninst✝² : TopologicalSpace R\ninst✝¹ : IsTopologicalRing R\ninst✝ : T2Space R\nx : R\nhx : IsTopologicallyNilpotent x\nhsum : ∀ (k : ℕ), Summable fun x_1 ↦ powMulProdOneSubPow k x_1 x\nh : ∀ (k : ℕ), Multipliable fun n ↦ 1 - x ^ (n + k + 1)\n⊢ ∏' (n : ℕ), (1... | [] | simp [tprod_one_sub_pow_eq_powMulProdOneSubPow_zero hsum h, powMulProdOneSubPow,
← sub_eq_add_neg] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.Enumerative.Pentagonal.Ring | {
"line": 125,
"column": 4
} | {
"line": 126,
"column": 23
} | {
"line": 127,
"column": 2
} | [
{
"pp": "case zero\nR : Type u_1\ninst✝³ : CommRing R\ninst✝² : TopologicalSpace R\ninst✝¹ : IsTopologicalRing R\ninst✝ : T2Space R\nx : R\nhx : IsTopologicallyNilpotent x\nhsum : ∀ (k : ℕ), Summable fun x_1 ↦ powMulProdOneSubPow k x_1 x\nh : ∀ (k : ℕ), Multipliable fun n ↦ 1 - x ^ (n + k + 1)\n⊢ ∏' (n : ℕ), (1... | [] | simp [tprod_one_sub_pow_eq_powMulProdOneSubPow_zero hsum h, powMulProdOneSubPow,
← sub_eq_add_neg] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.Enumerative.Pentagonal.PowerSeries | {
"line": 161,
"column": 4
} | {
"line": 161,
"column": 83
} | {
"line": 162,
"column": 4
} | [
{
"pp": "case refine_5\nR : Type u_1\ninst✝³ : CommRing R\ninst✝² : TopologicalSpace R\ninst✝¹ : IsTopologicalRing R\ninst✝ : T2Space R\na✝ : Nontrivial R\nn k : ℕ\nhk : k ≥ n\n⊢ ↑n <\n ((-1) ^ (k + 1)).order + (X ^ ((k + 1) * (3 * k + 4) / 2)).order +\n (∑' (n : ℕ), X ^ ((k + 1) * n) * ∏ i ∈ Finset.ran... | [
"case refine_5\nR : Type u_1\ninst✝³ : CommRing R\ninst✝² : TopologicalSpace R\ninst✝¹ : IsTopologicalRing R\ninst✝ : T2Space R\na✝ : Nontrivial R\nn k : ℕ\nhk : k ≥ n\n⊢ ↑n < (X ^ ((k + 1) * (3 * k + 4) / 2)).order"
] | refine (lt_add_of_lt_of_nonneg (lt_add_of_nonneg_of_lt (by simp) ?_) (by simp)) | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Combinatorics.Graph.Basic | {
"line": 170,
"column": 71
} | {
"line": 173,
"column": 31
} | {
"line": 175,
"column": 0
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\nx y : α\ne : β\nG : Graph α β\nx' y' : α\nh : G.IsLink e x y\nh' : G.IsLink e x' y'\n⊢ x = x' ∧ y = y' ∨ x = y' ∧ y = x'",
"ppTerm": "?m.9",
"assigned": true,
"usedConstants": [
"congrArg",
"and_self",
"true_or",
"Or.casesOn",
"Graph... | [] | by
obtain rfl | rfl := h.left_eq_or_eq h'
· simp [h.right_unique h']
simp [h'.symm.right_unique h] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Matroid.Minor.Delete | {
"line": 174,
"column": 6
} | {
"line": 174,
"column": 24
} | {
"line": 174,
"column": 24
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI D X : Set α\nh : M.IsBasis I X\nhX : Disjoint X D\n⊢ (M \ D).IsBasis I X",
"ppTerm": "?m.7",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"ChainCompletePartialOrder.instOfCompleteLattice",
"CompleteBooleanAlgebra.toCompleteDistribLattice",
... | [
"α : Type u_1\nM : Matroid α\nI D X : Set α\nh : M.IsBasis I X\nhX : Disjoint X D\n⊢ M.IsBasis I X ∧ Disjoint X D"
] | delete_isBasis_iff | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Matroid.Minor.Contract | {
"line": 204,
"column": 4
} | {
"line": 204,
"column": 85
} | {
"line": 206,
"column": 0
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI J X : Set α\nhIX : M.IsBasis' I X\nhJI : J ⊆ I\nK : Set α\nhJK : Disjoint K J\nhKJi : M.Indep (K ∪ J)\nhKX : K ⊆ X\nhIJK : I ⊆ K ∪ J\n⊢ K ⊆ I",
"ppTerm": "?m.35",
"assigned": true,
"usedConstants": [
"Set.instMax",
"Lattice.toSemilatticeSup",
... | [] | simp [hIX.eq_of_subset_indep hKJi hIJK (union_subset hKX (hJI.trans hIX.subset))] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.Matroid.Minor.Contract | {
"line": 204,
"column": 4
} | {
"line": 204,
"column": 85
} | {
"line": 206,
"column": 0
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI J X : Set α\nhIX : M.IsBasis' I X\nhJI : J ⊆ I\nK : Set α\nhJK : Disjoint K J\nhKJi : M.Indep (K ∪ J)\nhKX : K ⊆ X\nhIJK : I ⊆ K ∪ J\n⊢ K ⊆ I",
"ppTerm": "?m.35",
"assigned": true,
"usedConstants": [
"Set.instMax",
"Lattice.toSemilatticeSup",
... | [] | simp [hIX.eq_of_subset_indep hKJi hIJK (union_subset hKX (hJI.trans hIX.subset))] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.Matroid.Minor.Contract | {
"line": 204,
"column": 4
} | {
"line": 204,
"column": 85
} | {
"line": 206,
"column": 0
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI J X : Set α\nhIX : M.IsBasis' I X\nhJI : J ⊆ I\nK : Set α\nhJK : Disjoint K J\nhKJi : M.Indep (K ∪ J)\nhKX : K ⊆ X\nhIJK : I ⊆ K ∪ J\n⊢ K ⊆ I",
"ppTerm": "?m.35",
"assigned": true,
"usedConstants": [
"Set.instMax",
"Lattice.toSemilatticeSup",
... | [] | simp [hIX.eq_of_subset_indep hKJi hIJK (union_subset hKX (hJI.trans hIX.subset))] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.Matroid.Minor.Contract | {
"line": 295,
"column": 39
} | {
"line": 295,
"column": 57
} | {
"line": 295,
"column": 57
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI J X C : Set α\nh : M.IsBasis I X\nhJC : M.IsBasis' J C\nh_ind : M.Indep (I \\ C ∪ J)\nhIX : I ⊆ X\nhJCss : J ⊆ C\n⊢ (M / J \ (C \\ J)).IsBasis (I \\ C) (X \\ C)",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"ChainCompleteParti... | [
"α : Type u_1\nM : Matroid α\nI J X C : Set α\nh : M.IsBasis I X\nhJC : M.IsBasis' J C\nh_ind : M.Indep (I \\ C ∪ J)\nhIX : I ⊆ X\nhJCss : J ⊆ C\n⊢ (M / J).IsBasis (I \\ C) (X \\ C) ∧ Disjoint (X \\ C) (C \\ J)"
] | delete_isBasis_iff | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.Matroid.Minor.Contract | {
"line": 316,
"column": 2
} | {
"line": 316,
"column": 95
} | {
"line": 318,
"column": 0
} | [
{
"pp": "α : Type u_1\nM : Matroid α\nI J X C : Set α\nh : M.IsBasis I X\nhJC : M.IsBasis J C\nhdj : Disjoint C X\nh_ind : M.Indep (I ∪ J)\nh' : M.Indep (I \\ C ∪ J) → (M / C).IsBasis (I \\ C) (X \\ C)\n⊢ (M / C).IsBasis I X",
"ppTerm": "?m.19",
"assigned": true,
"usedConstants": [
"Set.instMa... | [] | rwa [(hdj.mono_right h.subset).sdiff_eq_right, hdj.sdiff_eq_right, imp_iff_right h_ind] at h' | Lean.Elab.Tactic.evalRwaAt | Lean.Parser.Tactic.rwaAt |
Mathlib.RingTheory.MvPolynomial.Groebner | {
"line": 158,
"column": 6
} | {
"line": 158,
"column": 17
} | {
"line": 159,
"column": 6
} | [
{
"pp": "σ : Type u_1\nm : MonomialOrder σ\nR : Type u_2\ninst✝ : CommRing R\nι : Type u_3\nb : ι → MvPolynomial σ R\nhb : ∀ (i : ι), IsUnit (m.leadingCoeff (b i))\nf : MvPolynomial σ R\nhb' : ∀ (i : ι), m.degree (b i) ≠ 0\nhf0 : ¬f = 0\ni : ι\nhf : m.degree (b i) ≤ m.degree f\nhf0' : m.degree f = 0\n⊢ False",
... | [
"σ : Type u_1\nm : MonomialOrder σ\nR : Type u_2\ninst✝ : CommRing R\nι : Type u_3\nb : ι → MvPolynomial σ R\nhb : ∀ (i : ι), IsUnit (m.leadingCoeff (b i))\nf : MvPolynomial σ R\nhb' : ∀ (i : ι), m.degree (b i) ≠ 0\nhf0 : ¬f = 0\ni : ι\nhf : m.degree (b i) ≤ m.degree f\nhf0' : m.degree f = 0\n⊢ m.degree (b i) = 0"
... | apply hb' i | Lean.Elab.Tactic.evalApply | Lean.Parser.Tactic.apply |
Mathlib.Combinatorics.Matroid.Sum | {
"line": 293,
"column": 71
} | {
"line": 296,
"column": 70
} | {
"line": 298,
"column": 0
} | [
{
"pp": "α : Type u_1\nM N : Matroid α\nh : Disjoint M.E N.E\nI : Set α\nhI : (M.disjointSum N h).Indep I\n⊢ ∃ IM IN, M.Indep IM ∧ N.Indep IN ∧ Disjoint IM IN ∧ I = IM ∪ IN",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Set.instMax",
"ChainCompletePartialOrder... | [] | by
rw [disjointSum_indep_iff] at hI
refine ⟨_, _, hI.1, hI.2.1, h.mono inter_subset_right inter_subset_right, ?_⟩
rw [← inter_union_distrib_left, inter_eq_self_of_subset_left hI.2.2] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.Quiver.Path.Vertices | {
"line": 121,
"column": 2
} | {
"line": 121,
"column": 19
} | {
"line": 123,
"column": 0
} | [
{
"pp": "V : Type u_1\ninst✝ : Quiver V\na : V\np : Path a a\n⊢ p.length = 0 ↔ p = nil",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Quiver.Hom",
"Quiver.Path.nil",
"HEq.refl",
"False.elim",
"noConfusion_of_Nat",
"instOfNatNat",
"Quiver.Path",
... | [] | cases p <;> tauto | Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1» | Lean.Parser.Tactic.«tactic_<;>_» |
Mathlib.Combinatorics.Quiver.Path.Vertices | {
"line": 121,
"column": 2
} | {
"line": 121,
"column": 19
} | {
"line": 123,
"column": 0
} | [
{
"pp": "V : Type u_1\ninst✝ : Quiver V\na : V\np : Path a a\n⊢ p.length = 0 ↔ p = nil",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Quiver.Hom",
"Quiver.Path.nil",
"HEq.refl",
"False.elim",
"noConfusion_of_Nat",
"instOfNatNat",
"Quiver.Path",
... | [] | cases p <;> tauto | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.Quiver.Path.Vertices | {
"line": 121,
"column": 2
} | {
"line": 121,
"column": 19
} | {
"line": 123,
"column": 0
} | [
{
"pp": "V : Type u_1\ninst✝ : Quiver V\na : V\np : Path a a\n⊢ p.length = 0 ↔ p = nil",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Quiver.Hom",
"Quiver.Path.nil",
"HEq.refl",
"False.elim",
"noConfusion_of_Nat",
"instOfNatNat",
"Quiver.Path",
... | [] | cases p <;> tauto | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SetFamily.Compression.Down | {
"line": 248,
"column": 2
} | {
"line": 248,
"column": 34
} | {
"line": 249,
"column": 2
} | [
{
"pp": "case pos\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\ns : Finset α\na : α\nh : insert a s ∈ 𝓓 a 𝒜\nha : a ∈ s\n⊢ s ∈ 𝓓 a 𝒜",
"ppTerm": "?pos✝",
"assigned": true,
"usedConstants": [
"congrArg",
"Finset",
"Membership.mem",
"Eq.mp",
"Insert.in... | [
"case neg\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\ns : Finset α\na : α\nh : insert a s ∈ 𝓓 a 𝒜\nha : a ∉ s\n⊢ s ∈ 𝓓 a 𝒜"
] | · rwa [insert_eq_of_mem ha] at h | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Combinatorics.SetFamily.Shatter | {
"line": 162,
"column": 2
} | {
"line": 162,
"column": 24
} | {
"line": 163,
"column": 2
} | [
{
"pp": "case inl\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\ns : Finset α\na : α\nhs : (𝓓 a 𝒜).Shatters s\nu : Finset α\nht : s ∩ u ⊆ s\nhu : u ∈ 𝒜 ∧ u.erase a ∈ 𝒜\n⊢ ∃ u_1 ∈ 𝒜, s ∩ u_1 = s ∩ u",
"ppTerm": "?inl",
"assigned": true,
"usedConstants": [
"Finset",
"Me... | [
"case inr\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\ns : Finset α\na : α\nhs : (𝓓 a 𝒜).Shatters s\nu : Finset α\nht : s ∩ u ⊆ s\nhu : u ∉ 𝒜 ∧ insert a u ∈ 𝒜\n⊢ ∃ u_1 ∈ 𝒜, s ∩ u_1 = s ∩ u"
] | · exact ⟨u, hu.1, rfl⟩ | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Combinatorics.SetFamily.DualVC | {
"line": 147,
"column": 4
} | {
"line": 148,
"column": 52
} | {
"line": 149,
"column": 4
} | [
{
"pp": "case refine_2.refine_1\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\nX : Finset α\nS : Finset (Finset α)\nhS : (𝒜.dualFamily X).Shatters S\nn : ℕ\nhcard : 2 ^ n ≤ #S\nhSsub : S ⊆ 𝒜\ncube : (Fin n → Bool) ↪ ↥S := S.cubeEmbedding hcard\nx : Fin n → α\nhxX : ∀ (k : Fin n), x k ∈ X\nhx : ... | [
"case refine_2.refine_2\nα : Type u_1\ninst✝ : DecidableEq α\n𝒜 : Finset (Finset α)\nX : Finset α\nS : Finset (Finset α)\nhS : (𝒜.dualFamily X).Shatters S\nn : ℕ\nhcard : 2 ^ n ≤ #S\nhSsub : S ⊆ 𝒜\ncube : (Fin n → Bool) ↪ ↥S := S.cubeEmbedding hcard\nx : Fin n → α\nhxX : ∀ (k : Fin n), x k ∈ X\nhx : ∀ (k : Fin n... | · obtain ⟨k, _, rfl⟩ := mem_map.mp hyT
exact of_decide_eq_true ((hx_cube _ k).mp hyA) | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Order.Birkhoff | {
"line": 105,
"column": 78
} | {
"line": 106,
"column": 29
} | {
"line": 108,
"column": 0
} | [
{
"pp": "α : Type u_1\ninst✝¹ : PartialOrder α\ninst✝ : Finite α\n⊢ Surjective ⇑supIrredLowerSet",
"ppTerm": "?m.5",
"assigned": true,
"usedConstants": [
"Lattice.toSemilatticeSup",
"LowerSet.completeLattice",
"congrArg",
"PartialOrder.toPreorder",
"Subtype.forall._simp... | [] | by
aesop (add simp Surjective) | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Order.Birkhoff | {
"line": 164,
"column": 10
} | {
"line": 164,
"column": 50
} | {
"line": 165,
"column": 8
} | [
{
"pp": "case refine_1\nα : Type u_1\ninst✝³ : DistribLattice α\ninst✝² : Fintype α\ninst✝¹ : DecidablePred SupIrred\ninst✝ : OrderBot α\ns : LowerSet { a // SupIrred a }\na : { a // SupIrred a }\nha✝ : a ∈ ↑{ carrier := {b | ↑b ≤ (↑s).toFinset.sup Subtype.val}, lower' := ⋯ }\ni : { a // SupIrred a }\nhi : i ∈ ... | [] | exact s.lower ha (Set.mem_toFinset.1 hi) | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Order.Birkhoff | {
"line": 176,
"column": 2
} | {
"line": 176,
"column": 94
} | {
"line": 178,
"column": 0
} | [
{
"pp": "case neg\nα : Type u_1\ninst✝² : DistribLattice α\ninst✝¹ : Fintype α\ninst✝ : DecidablePred SupIrred\nh : Nonempty α\nthis : OrderBot α\n⊢ α ↪o Set { a // SupIrred a }",
"ppTerm": "?neg✝",
"assigned": true,
"usedConstants": [
"RelEmbedding.mk",
"Lattice.toSemilatticeSup",
... | [] | exact OrderIso.lowerSetSupIrred.toOrderEmbedding.trans ⟨⟨_, SetLike.coe_injective⟩, Iff.rfl⟩ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Combinatorics.SetFamily.AhlswedeZhang | {
"line": 422,
"column": 4
} | {
"line": 422,
"column": 47
} | {
"line": 423,
"column": 2
} | [
{
"pp": "case ind.inr.succ.h𝒜\nα : Type u_1\ninst✝² : Fintype α\ninst✝¹ : DecidableEq α\ninst✝ : Nonempty α\ns : Finset α\n𝒜 : Finset (Finset α)\nhs : s ∉ 𝒜\nh𝒜₁ : (insert s 𝒜).Nonempty\nh𝒜₂ : univ ∉ insert s 𝒜\nh𝒜₃ : (insert s 𝒜).Nontrivial\nih :\n ∀ (𝒜_1 : Finset (Finset α)),\n #𝒜_1 < #𝒜 + 1 →... | [] | exact card_image_le.trans_lt (lt_add_one _) | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Combinatorics.SetFamily.AhlswedeZhang | {
"line": 422,
"column": 4
} | {
"line": 422,
"column": 47
} | {
"line": 423,
"column": 2
} | [
{
"pp": "case ind.inr.succ.h𝒜\nα : Type u_1\ninst✝² : Fintype α\ninst✝¹ : DecidableEq α\ninst✝ : Nonempty α\ns : Finset α\n𝒜 : Finset (Finset α)\nhs : s ∉ 𝒜\nh𝒜₁ : (insert s 𝒜).Nonempty\nh𝒜₂ : univ ∉ insert s 𝒜\nh𝒜₃ : (insert s 𝒜).Nontrivial\nih :\n ∀ (𝒜_1 : Finset (Finset α)),\n #𝒜_1 < #𝒜 + 1 →... | [] | exact card_image_le.trans_lt (lt_add_one _) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SetFamily.AhlswedeZhang | {
"line": 422,
"column": 4
} | {
"line": 422,
"column": 47
} | {
"line": 423,
"column": 2
} | [
{
"pp": "case ind.inr.succ.h𝒜\nα : Type u_1\ninst✝² : Fintype α\ninst✝¹ : DecidableEq α\ninst✝ : Nonempty α\ns : Finset α\n𝒜 : Finset (Finset α)\nhs : s ∉ 𝒜\nh𝒜₁ : (insert s 𝒜).Nonempty\nh𝒜₂ : univ ∉ insert s 𝒜\nh𝒜₃ : (insert s 𝒜).Nontrivial\nih :\n ∀ (𝒜_1 : Finset (Finset α)),\n #𝒜_1 < #𝒜 + 1 →... | [] | exact card_image_le.trans_lt (lt_add_one _) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SetFamily.LYM | {
"line": 226,
"column": 6
} | {
"line": 226,
"column": 36
} | {
"line": 226,
"column": 36
} | [
{
"pp": "𝕜 : Type u_1\nα : Type u_2\ninst✝³ : Semifield 𝕜\ninst✝² : LinearOrder 𝕜\ninst✝¹ : IsStrictOrderedRing 𝕜\ninst✝ : Fintype α\n𝒜 : Finset (Finset α)\nh𝒜 : IsAntichain (fun x1 x2 ↦ x1 ⊆ x2) ↑𝒜\n⊢ ∑ s ∈ 𝒜, (↑((Fintype.card α).choose #s))⁻¹ =\n ∑ r ∈ range (Fintype.card α + 1), ∑ s ∈ 𝒜 with #s =... | [
"case h\n𝕜 : Type u_1\nα : Type u_2\ninst✝³ : Semifield 𝕜\ninst✝² : LinearOrder 𝕜\ninst✝¹ : IsStrictOrderedRing 𝕜\ninst✝ : Fintype α\n𝒜 : Finset (Finset α)\nh𝒜 : IsAntichain (fun x1 x2 ↦ x1 ⊆ x2) ↑𝒜\n⊢ ∀ i ∈ 𝒜, #i ∈ range (Fintype.card α + 1)"
] | rw [sum_fiberwise_of_maps_to'] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Order.Setoid.Partition | {
"line": 117,
"column": 4
} | {
"line": 117,
"column": 24
} | {
"line": 118,
"column": 4
} | [
{
"pp": "case mp\nα : Type u_1\nc : Set (Set α)\nH : ∀ (a : α), ∃! b, b ∈ c ∧ a ∈ b\ns : Set α\ny : α\nhs : s ∈ c\nhy : y ∈ s\nx : α\n⊢ x ∈ s → x ∈ {x | (mkClasses c H) x y}",
"ppTerm": "?mp",
"assigned": true,
"usedConstants": [
"Membership.mem",
"Set.instMembership",
"Set"
],... | [
"case mp\nα : Type u_1\nc : Set (Set α)\nH : ∀ (a : α), ∃! b, b ∈ c ∧ a ∈ b\ns : Set α\ny : α\nhs : s ∈ c\nhy : y ∈ s\nx : α\nhx : x ∈ s\n_s' : Set α\nhs' : _s' ∈ c\nhx' : x ∈ _s'\n⊢ y ∈ _s'"
] | intro hx _s' hs' hx' | Lean.Elab.Tactic.evalIntro | Lean.Parser.Tactic.intro |
Mathlib.Order.Setoid.Partition | {
"line": 278,
"column": 17
} | {
"line": 280,
"column": 7
} | {
"line": 281,
"column": 2
} | [
{
"pp": "α : Type u_1\nC : Partitions α\n⊢ (fun r ↦ ⟨r.classes, ⋯⟩) ((fun C ↦ mkClasses ↑C ⋯) C) = C",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Setoid.classes_mkClasses",
"Setoid.Partitions.isPartition",
"Setoid.mkClasses",
"congrArg",
"M... | [] | by
rw [Partitions.ext_iff, ← classes_mkClasses C.toSet C.isPartition]
rfl | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.SetFamily.KruskalKatona | {
"line": 250,
"column": 4
} | {
"line": 250,
"column": 78
} | {
"line": 251,
"column": 2
} | [
{
"pp": "n r : ℕ\n𝒜 : Finset (Finset (Fin n))\nh✝ : Set.Sized r ↑𝒜\nusable : Finset (Finset (Fin n) × Finset (Fin n)) := {t | UsefulCompression t.1 t.2 ∧ ¬IsCompressed t.1 t.2 𝒜}\nhusable : usable.Nonempty\nU V : Finset (Fin n)\nhUV : (U, V) ∈ univ ∧ UsefulCompression (U, V).1 (U, V).2 ∧ ¬IsCompressed (U, V)... | [] | exact hUcard.not_ge <| t ⟨U₁, V₁⟩ <| mem_filter.2 ⟨mem_univ _, huseful, h⟩ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Combinatorics.SimpleGraph.Coloring.Vertex | {
"line": 153,
"column": 2
} | {
"line": 153,
"column": 67
} | {
"line": 154,
"column": 2
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nn : ℕ\nι : Type u_1\nα : Type u_2\nβ : Type u_3\nC✝ : G.Coloring α\ninst✝² : Nonempty (G.Coloring α)\ninst✝¹ : Infinite α\ninst✝ : Nonempty V\nC : G.Coloring α\nv : V\n⊢ Infinite (G.Coloring α)",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"S... | [
"V : Type u\nG : SimpleGraph V\nn : ℕ\nι : Type u_1\nα : Type u_2\nβ : Type u_3\nC✝ : G.Coloring α\ninst✝² : Nonempty (G.Coloring α)\ninst✝¹ : Infinite α\ninst✝ : Nonempty V\nC : G.Coloring α\nv : V\nf : α → G →g completeGraph α := fun c ↦ (Iso.completeGraph (Equiv.swap (C v) c)).toHom.comp C\n⊢ Infinite (G.Colorin... | let f c := (Iso.completeGraph <| Equiv.swap (C v) c).toHom.comp C | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticLet___1 | Lean.Parser.Tactic.tacticLet__ |
Mathlib.Combinatorics.SimpleGraph.Coloring.Vertex | {
"line": 518,
"column": 6
} | {
"line": 519,
"column": 34
} | {
"line": 519,
"column": 34
} | [
{
"pp": "V✝ : Type u\nG : SimpleGraph V✝\nn : ℕ\nι : Type u_1\nα : Type u_2\nβ : Type u_3\nC : G.Coloring α\nV : Type u_4\nW : Type u_5\n⊢ ∀ {v w : V ⊕ W}, (completeBipartiteGraph V W).Adj v w → v.isRight ≠ w.isRight",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Sum.isRight",
... | [] | intro v w
cases v <;> cases w <;> simp | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Coloring.Vertex | {
"line": 518,
"column": 6
} | {
"line": 519,
"column": 34
} | {
"line": 519,
"column": 34
} | [
{
"pp": "V✝ : Type u\nG : SimpleGraph V✝\nn : ℕ\nι : Type u_1\nα : Type u_2\nβ : Type u_3\nC : G.Coloring α\nV : Type u_4\nW : Type u_5\n⊢ ∀ {v w : V ⊕ W}, (completeBipartiteGraph V W).Adj v w → v.isRight ≠ w.isRight",
"ppTerm": "?m.10",
"assigned": true,
"usedConstants": [
"Sum.isRight",
... | [] | intro v w
cases v <;> cases w <;> simp | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SetFamily.KruskalKatona | {
"line": 327,
"column": 6
} | {
"line": 338,
"column": 40
} | {
"line": 340,
"column": 0
} | [
{
"pp": "n r k i : ℕ\n𝒜 : Finset (Finset (Fin n))\nhir : i ≤ r\nhrk : r ≤ k\nhkn : k ≤ n\nh₁ : Set.Sized r ↑𝒜\nh₂ : k.choose r ≤ #𝒜\nrange'k : Finset (Fin n) := (range k).attachFin ⋯\n𝒞 : Finset (Finset (Fin n)) := powersetCard r range'k\nthis : Set.Sized r ↑𝒞\n⊢ #(∂^[i] 𝒞) ≤ #(∂^[i] 𝒜)",
"ppTerm": "... | [] | refine iterated_kk h₁ ?_ ⟨‹_›, ?_⟩
· rwa [card_powersetCard, card_attachFin, card_range]
simp_rw [𝒞, mem_powersetCard]
rintro A B hA ⟨HB₁, HB₂⟩
refine ⟨fun t ht ↦ ?_, ‹_›⟩
rw [mem_attachFin, mem_range]
have : toColex (image Fin.val B) < toColex (image Fin.val A) := by
rwa [t... | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SetFamily.KruskalKatona | {
"line": 327,
"column": 6
} | {
"line": 338,
"column": 40
} | {
"line": 340,
"column": 0
} | [
{
"pp": "n r k i : ℕ\n𝒜 : Finset (Finset (Fin n))\nhir : i ≤ r\nhrk : r ≤ k\nhkn : k ≤ n\nh₁ : Set.Sized r ↑𝒜\nh₂ : k.choose r ≤ #𝒜\nrange'k : Finset (Fin n) := (range k).attachFin ⋯\n𝒞 : Finset (Finset (Fin n)) := powersetCard r range'k\nthis : Set.Sized r ↑𝒞\n⊢ #(∂^[i] 𝒞) ≤ #(∂^[i] 𝒜)",
"ppTerm": "... | [] | refine iterated_kk h₁ ?_ ⟨‹_›, ?_⟩
· rwa [card_powersetCard, card_attachFin, card_range]
simp_rw [𝒞, mem_powersetCard]
rintro A B hA ⟨HB₁, HB₂⟩
refine ⟨fun t ht ↦ ?_, ‹_›⟩
rw [mem_attachFin, mem_range]
have : toColex (image Fin.val B) < toColex (image Fin.val A) := by
rwa [t... | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 209,
"column": 2
} | {
"line": 209,
"column": 38
} | {
"line": 210,
"column": 2
} | [
{
"pp": "V : Type u_1\nv : V\nG : SimpleGraph V\ns t : Finset V\ninst✝ : Fintype ↑(G.neighborSet v)\nh : G.IsBipartiteWith ↑s ↑t\nhv : v ∈ s\n⊢ G.degree v ≤ #t",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"SimpleGraph.neighborFinset",
"id",
... | [
"V : Type u_1\nv : V\nG : SimpleGraph V\ns t : Finset V\ninst✝ : Fintype ↑(G.neighborSet v)\nh : G.IsBipartiteWith ↑s ↑t\nhv : v ∈ s\n⊢ #(G.neighborFinset v) ≤ #t"
] | rw [← card_neighborFinset_eq_degree] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 228,
"column": 2
} | {
"line": 228,
"column": 38
} | {
"line": 229,
"column": 2
} | [
{
"pp": "V : Type u_1\nw : V\nG : SimpleGraph V\ns t : Finset V\ninst✝ : Fintype ↑(G.neighborSet w)\nh : G.IsBipartiteWith ↑s ↑t\nhw : w ∈ t\n⊢ G.degree w ≤ #s",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"SimpleGraph.neighborFinset",
"id",
... | [
"V : Type u_1\nw : V\nG : SimpleGraph V\ns t : Finset V\ninst✝ : Fintype ↑(G.neighborSet w)\nh : G.IsBipartiteWith ↑s ↑t\nhw : w ∈ t\n⊢ #(G.neighborFinset w) ≤ #s"
] | rw [← card_neighborFinset_eq_degree] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 247,
"column": 11
} | {
"line": 247,
"column": 60
} | {
"line": 248,
"column": 4
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\ns t : Finset V\ninst✝ : G.LocallyFinite\nh : G.IsBipartiteWith ↑s ↑t\n⊢ ∑ v ∈ s.attach, #(bipartiteAbove G.Adj t ↑v) = ∑ w ∈ t.attach, #(bipartiteBelow G.Adj s ↑w)",
"ppTerm": "?m.72",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
... | [
"V : Type u_1\nG : SimpleGraph V\ns t : Finset V\ninst✝ : G.LocallyFinite\nh : G.IsBipartiteWith ↑s ↑t\n⊢ ∑ x ∈ s, #(bipartiteAbove G.Adj t x) = ∑ w ∈ t.attach, #(bipartiteBelow G.Adj s ↑w)"
] | sum_attach s fun w ↦ #(bipartiteAbove G.Adj t w), | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | null |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 377,
"column": 4
} | {
"line": 379,
"column": 25
} | {
"line": 380,
"column": 4
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝¹ : Fintype α\ninst✝ : Fintype β\n⊢ completeBipartiteGraph α β ⊑ G →\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.IsCompleteBetween ↑left ↑right",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants... | [
"V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝¹ : Fintype α\ninst✝ : Fintype β\nx✝² : completeBipartiteGraph α β ⊑ G\nf : (completeBipartiteGraph α β).Copy G\nx✝¹ : V\nhl : x✝¹ ∈ ↑(map { toFun := ⇑f ∘ Sum.inl, inj' := ⋯ } univ)\nx✝ : V\nhr : x✝ ∈ ↑(map { toFun := ⇑f ∘ Sum.inr, inj' := ⋯ } univ)... | refine fun ⟨f⟩ ↦ ⟨univ.map ⟨f ∘ Sum.inl, f.injective.comp Sum.inl_injective⟩,
univ.map ⟨f ∘ Sum.inr, f.injective.comp Sum.inr_injective⟩, by simp, by simp,
fun _ hl _ hr ↦ ?_⟩ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Combinatorics.SimpleGraph.Connectivity.Subgraph | {
"line": 167,
"column": 2
} | {
"line": 167,
"column": 44
} | {
"line": 169,
"column": 0
} | [
{
"pp": "case refine_2\nV : Type u\nG : SimpleGraph V\nG' : G.Subgraph\nx✝ : ∃ C, C.toSubgraph = G'\nC : G.ConnectedComponent\nh : C.toSubgraph = G'\n⊢ Maximal Subgraph.Connected G'",
"ppTerm": "?refine_2",
"assigned": true,
"usedConstants": [
"SimpleGraph.Subgraph.instPartialOrder",
"Si... | [] | · exact h ▸ maximal_connected_toSubgraph _ | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Combinatorics.SimpleGraph.Metric | {
"line": 106,
"column": 6
} | {
"line": 106,
"column": 55
} | {
"line": 107,
"column": 6
} | [
{
"pp": "case inr.inr\nV : Type u_1\nG : SimpleGraph V\nu v w : V\nhuv : G.edist u v ≠ ⊤\nhvw : G.edist v w ≠ ⊤\np : G.Walk u v\nhp : ↑p.length = G.edist u v\n⊢ G.edist u w ≤ G.edist u v + G.edist v w",
"ppTerm": "?inr.inr",
"assigned": true,
"usedConstants": [
"ENat.instNatCast",
"Simpl... | [
"case inr.inr\nV : Type u_1\nG : SimpleGraph V\nu v w : V\nhuv : G.edist u v ≠ ⊤\nhvw : G.edist v w ≠ ⊤\np : G.Walk u v\nhp : ↑p.length = G.edist u v\nq : G.Walk v w\nhq : ↑q.length = G.edist v w\n⊢ G.edist u w ≤ G.edist u v + G.edist v w"
] | obtain ⟨q, hq⟩ := exists_walk_of_edist_ne_top hvw | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain | Lean.Parser.Tactic.obtain |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 584,
"column": 6
} | {
"line": 584,
"column": 25
} | {
"line": 584,
"column": 26
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [
"case inl\nV : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right\n... | rcases l with l | l | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases | Lean.Parser.Tactic.rcases |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 588,
"column": 6
} | {
"line": 588,
"column": 25
} | {
"line": 588,
"column": 26
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [
"case inl\nV : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right\n... | rcases l with l | l | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases | Lean.Parser.Tactic.rcases |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 590,
"column": 4
} | {
"line": 590,
"column": 23
} | {
"line": 590,
"column": 24
} | [
{
"pp": "case refine_1\nV : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetwe... | [
"case refine_1.inl\nV : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left... | rcases l with l | l | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases | Lean.Parser.Tactic.rcases |
Mathlib.Combinatorics.SimpleGraph.Connectivity.Subgraph | {
"line": 680,
"column": 25
} | {
"line": 680,
"column": 41
} | {
"line": 681,
"column": 2
} | [
{
"pp": "V : Type u\nG : SimpleGraph V\nG' : G.Subgraph\nG'' : G'.coe.Subgraph\nf : G'.coe →g G\nhpreconn : G''.Preconnected\nu' : V\nu : ↑G'.verts\nhu : u ∈ G''.verts\nhfu : f u = u'\n⊢ ∀ (v : ↑(Subgraph.map f G'').verts), (Subgraph.map f G'').coe.Reachable ⟨u', ⋯⟩ v",
"ppTerm": "?m.59",
"assigned": tr... | [
"V : Type u\nG : SimpleGraph V\nG' : G.Subgraph\nG'' : G'.coe.Subgraph\nf : G'.coe →g G\nhpreconn : G''.Preconnected\nu' : V\nu : ↑G'.verts\nhu : u ∈ G''.verts\nhfu : f u = u'\nv' : V\nv : ↑G'.verts\nhv : v ∈ G''.verts\nhfv : f v = v'\n⊢ (Subgraph.map f G'').coe.Reachable ⟨u', ⋯⟩ ⟨v', ⋯⟩"
] | ⟨v', v, hv, hfv⟩ | Lean.Elab.Tactic.evalIntro | Lean.Parser.Term.anonymousCtor |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 595,
"column": 58
} | {
"line": 595,
"column": 72
} | {
"line": 595,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 595,
"column": 58
} | {
"line": 595,
"column": 72
} | {
"line": 595,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 595,
"column": 58
} | {
"line": 595,
"column": 72
} | {
"line": 595,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 603,
"column": 58
} | {
"line": 603,
"column": 72
} | {
"line": 603,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 603,
"column": 58
} | {
"line": 603,
"column": 72
} | {
"line": 603,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Combinatorics.SimpleGraph.Bipartite | {
"line": 603,
"column": 58
} | {
"line": 603,
"column": 72
} | {
"line": 603,
"column": 72
} | [
{
"pp": "V : Type u_1\nG : SimpleGraph V\nα : Type u_2\nβ : Type u_3\ninst✝³ : Finite α\ninst✝² : Finite β\ninst✝¹ : Nonempty α\ninst✝ : Nonempty β\nthis✝ : Fintype α\nthis : Fintype β\nx✝ :\n ∃ left right, #left = Fintype.card α ∧ #right = Fintype.card β ∧ G.bipartiteDoubleCover.IsCompleteBetween ↑left ↑right... | [] | simpa using hj | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Combinatorics.SimpleGraph.Acyclic | {
"line": 251,
"column": 4
} | {
"line": 251,
"column": 18
} | {
"line": 252,
"column": 4
} | [
{
"pp": "case mpr\nV : Type u_1\nG : SimpleGraph V\n⊢ (Nonempty V ∧ ∀ (v w : V), ∃! p, p.IsPath) → G.Connected ∧ ∀ (u v : V) (x y : G.Path u v), x = y",
"ppTerm": "?mpr",
"assigned": true,
"usedConstants": [
"SimpleGraph.Walk",
"SimpleGraph.Path",
"SimpleGraph.Connected",
"An... | [
"case mpr\nV : Type u_1\nG : SimpleGraph V\nhV : Nonempty V\nh : ∀ (v w : V), ∃! p, p.IsPath\n⊢ G.Connected ∧ ∀ (u v : V) (x y : G.Path u v), x = y"
] | rintro ⟨hV, h⟩ | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRIntro | Lean.Parser.Tactic.rintro |
Mathlib.Combinatorics.SimpleGraph.Acyclic | {
"line": 254,
"column": 6
} | {
"line": 254,
"column": 28
} | {
"line": 255,
"column": 6
} | [
{
"pp": "case mpr.refine_1\nV : Type u_1\nG : SimpleGraph V\nhV : Nonempty V\nh : ∀ (v w : V), ∃! p, p.IsPath\nv w : V\n⊢ G.Reachable v w",
"ppTerm": "?mpr.refine_1",
"assigned": true,
"usedConstants": [
"SimpleGraph.Walk",
"And",
"Exists.casesOn",
"ExistsUnique",
"Simp... | [
"case mpr.refine_1\nV : Type u_1\nG : SimpleGraph V\nhV : Nonempty V\nh : ∀ (v w : V), ∃! p, p.IsPath\nv w : V\np : G.Walk v w\nh✝ : (fun p ↦ p.IsPath) p ∧ ∀ (y : G.Walk v w), (fun p ↦ p.IsPath) y → y = p\n⊢ G.Reachable v w"
] | obtain ⟨p, _⟩ := h v w | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain | Lean.Parser.Tactic.obtain |
Mathlib.Combinatorics.SimpleGraph.AdjMatrix | {
"line": 407,
"column": 4
} | {
"line": 407,
"column": 68
} | {
"line": 408,
"column": 4
} | [
{
"pp": "case succ\nα : Type u_1\nV : Type u_2\nG : SimpleGraph V\ninst✝³ : DecidableRel G.Adj\ninst✝² : Fintype V\ninst✝¹ : DecidableEq V\ninst✝ : Semiring α\nn : ℕ\nih : ∀ (u v : V), (adjMatrix α G ^ n) u v = ↑(#(G.finsetWalkLength n u v))\nu v : V\n⊢ (adjMatrix α G ^ (n + 1)) u v = ↑(#(G.finsetWalkLength (n ... | [
"case succ\nα : Type u_1\nV : Type u_2\nG : SimpleGraph V\ninst✝³ : DecidableRel G.Adj\ninst✝² : Fintype V\ninst✝¹ : DecidableEq V\ninst✝ : Semiring α\nn : ℕ\nih : ∀ (u v : V), (adjMatrix α G ^ n) u v = ↑(#(G.finsetWalkLength n u v))\nu v : V\n⊢ ∑ x ∈ G.neighborFinset u, ↑(#(G.finsetWalkLength n x v)) =\n ↑(#(un... | simp only [pow_succ', finsetWalkLength, ih, adjMatrix_mul_apply] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Combinatorics.SimpleGraph.Acyclic | {
"line": 403,
"column": 2
} | {
"line": 403,
"column": 47
} | {
"line": 405,
"column": 0
} | [
{
"pp": "V : Type u_1\nG F : SimpleGraph V\nh : Maximal (fun H ↦ H ≤ G ∧ H.IsAcyclic) F\nu v : V\nx✝ : G.Reachable u v\np : G.Walk u v\nthis✝¹ : ¬F.Reachable u v\ns : F.ConnectedComponent := Quot.mk F.Reachable u\nthis✝ : v ∉ s\nu' v' : V\nhuv : G.Adj (u', v').1 (u', v').2\nleft✝ : { fst := u', snd := v', adj :... | [] | grind [Maximal, sup_le, le_iff_adj, huv.symm] | Lean.Elab.Tactic.evalGrind | Lean.Parser.Tactic.grind |
Mathlib.Combinatorics.SimpleGraph.Acyclic | {
"line": 413,
"column": 50
} | {
"line": 413,
"column": 91
} | {
"line": 414,
"column": 4
} | [
{
"pp": "V : Type u_1\nG F : SimpleGraph V\nhle : F ≤ G\nhF : F.IsAcyclic\nh : F.Reachable = G.Reachable\nthis : ¬Maximal (fun F ↦ F ≤ G ∧ F.IsAcyclic) F\nH : SimpleGraph V\nhFH : F < H\nhHG : H ≤ G\nhH : H.IsAcyclic\ne : Sym2 V\nheH : e ∈ H.edgeSet\nheF : e ∉ F.edgeSet\n⊢ e ∈ (F ⊔ fromEdgeSet {e}).edgeSet",
... | [] | by simp [H.not_isDiag_of_mem_edgeSet heH] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Combinatorics.SimpleGraph.Acyclic | {
"line": 418,
"column": 2
} | {
"line": 418,
"column": 40
} | {
"line": 420,
"column": 0
} | [
{
"pp": "case h\nV : Type u_1\nG F : SimpleGraph V\nhle : F ≤ G\nhF : F.IsAcyclic\nh : F.Reachable = G.Reachable\nthis✝ : ¬Maximal (fun F ↦ F ≤ G ∧ F.IsAcyclic) F\nH : SimpleGraph V\nhFH : F < H\nhHG : H ≤ G\nhH : H.IsAcyclic\nx✝ y✝ : V\nheH : s(x✝, y✝) ∈ H.edgeSet\nheF : s(x✝, y✝) ∉ F.edgeSet\nh_bridge : ¬G.Re... | [] | exact h_bridge <| hHG heH |>.reachable | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Combinatorics.SimpleGraph.Connectivity.Finite | {
"line": 110,
"column": 6
} | {
"line": 111,
"column": 99
} | {
"line": 111,
"column": 99
} | [
{
"pp": "case intro\nV : Type u\nG : SimpleGraph V\ninst✝ : Finite V\nval✝ : Fintype V\n⊢ Odd G.oddComponents.ncard ↔ Odd #(univ.biUnion fun x ↦ x.supp.toFinset)",
"ppTerm": "?intro",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Eq.mpr",
"Finset.univ",
"congrArg",
"... | [
"case intro\nV : Type u\nG : SimpleGraph V\ninst✝ : Finite V\nval✝ : Fintype V\n⊢ Odd G.oddComponents.ncard ↔ Odd (∑ u, #u.supp.toFinset)"
] | Finset.card_biUnion
(fun x _ y _ hxy ↦ Set.disjoint_toFinset.mpr (pairwise_disjoint_supp_connectedComponent _ hxy)) | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Combinatorics.SimpleGraph.Diam | {
"line": 108,
"column": 2
} | {
"line": 112,
"column": 43
} | {
"line": 114,
"column": 0
} | [
{
"pp": "case mpr\nα : Type u_1\nG : SimpleGraph α\nu : α\n⊢ (∀ (v : α), u ≠ v → G.Adj u v) → G.eccent u ≤ 1",
"ppTerm": "?mpr",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"instOneENat",
"Eq.mpr",
"Classical.or_iff_not_imp_right",
"congrArg",
"SimpleGraph.Adj... | [] | · intro hall
rw [eccent_le_iff]
intro v
rw [edist_le_one_iff_adj_or_eq]
exact or_iff_not_imp_right.mpr (hall v) | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Combinatorics.SimpleGraph.Diam | {
"line": 307,
"column": 2
} | {
"line": 307,
"column": 31
} | {
"line": 308,
"column": 2
} | [
{
"pp": "α : Type u_1\n⊢ ⊥.diam = 0",
"ppTerm": "?m.7",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"instTopENat",
"congrArg",
"id",
"SimpleGraph.ediam",
"instOfNatNat",
"Bot.bot",
"SimpleGraph",
"instZeroENat",
"Nat",
"ENat",
... | [
"α : Type u_1\n⊢ ⊥.ediam = 0 ∨ ⊥.ediam = ⊤"
] | rw [diam, ENat.toNat_eq_zero] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.SimpleGraph.Diam | {
"line": 358,
"column": 2
} | {
"line": 358,
"column": 13
} | {
"line": 360,
"column": 0
} | [
{
"pp": "case h\nα : Type u_1\nG : SimpleGraph α\ninst✝¹ : Nonempty α\ninst✝ : Finite α\nw : α\nhw : G.eccent w = G.radius\nv : α\nhv : G.edist w v = G.eccent w\n⊢ G.edist w v = G.radius",
"ppTerm": "?h",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"id",
"Simpl... | [] | rw [hv, hw] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Combinatorics.SimpleGraph.Extremal.ErdosStoneSimonovits | {
"line": 68,
"column": 2
} | {
"line": 68,
"column": 30
} | {
"line": 69,
"column": 2
} | [
{
"pp": "n : ℕ\nG : SimpleGraph (Fin n)\ninst✝ : DecidableRel G.Adj\nr t t' : ℕ\nK : G.CompleteEquipartiteSubgraph r t'\nv : Fin n\nht'_pos : 0 < t'\nhv : v ∈ K.vertsᶜ\np : Finset (Fin n)\nhp : p ∈ K.parts\nhs : ∀ (x : Finset (Fin n)), x ∉ powersetCard t p ∨ ∃ x_1 ∈ x, ¬G.Adj v x_1\n⊢ ∑ x ∈ K.parts \\ {p}, #({v... | [
"case h₁\nn : ℕ\nG : SimpleGraph (Fin n)\ninst✝ : DecidableRel G.Adj\nr t t' : ℕ\nK : G.CompleteEquipartiteSubgraph r t'\nv : Fin n\nht'_pos : 0 < t'\nhv : v ∈ K.vertsᶜ\np : Finset (Fin n)\nhp : p ∈ K.parts\nhs : ∀ (x : Finset (Fin n)), x ∉ powersetCard t p ∨ ∃ x_1 ∈ x, ¬G.Adj v x_1\n⊢ ∑ x ∈ K.parts \\ {p}, #({v_1 ... | apply add_lt_add_of_le_of_lt | Lean.Elab.Tactic.evalApply | Lean.Parser.Tactic.apply |
Mathlib.Combinatorics.SimpleGraph.Finsubgraph | {
"line": 145,
"column": 2
} | {
"line": 145,
"column": 49
} | {
"line": 146,
"column": 2
} | [
{
"pp": "V : Type u\nW : Type v\nG : SimpleGraph V\nF : SimpleGraph W\nG' G'' : G.Finsubgraph\nh : G'' ≤ G'\nf : failed to pretty print expression (use 'set_option pp.rawOnError true' for raw representation)\n⊢ failed to pretty print expression (use 'set_option pp.rawOnError true' for raw representation)",
... | [
"V : Type u\nW : Type v\nG : SimpleGraph V\nF : SimpleGraph W\nG' G'' : G.Finsubgraph\nh : G'' ≤ G'\nf : failed to pretty print expression (use 'set_option pp.rawOnError true' for raw representation)\n⊢ ∀ {a b : ↑(↑G'').verts},\n (↑G'').coe.Adj a b →\n F.Adj\n (match a with\n | ⟨v, hv⟩ => f.to... | refine ⟨fun ⟨v, hv⟩ => f.toFun ⟨v, h.1 hv⟩, ?_⟩ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Combinatorics.SimpleGraph.Extremal.ErdosStoneSimonovits | {
"line": 110,
"column": 37
} | {
"line": 110,
"column": 88
} | {
"line": 111,
"column": 10
} | [
{
"pp": "n : ℕ\nG : SimpleGraph (Fin n)\ninst✝ : DecidableRel G.Adj\nr t t' : ℕ\nK : G.CompleteEquipartiteSubgraph r t'\nhr_pos : 0 < r\nht'_pos : 0 < t'\n⊢ ↑(#(K.vertsᶜ \\ filter K t)) * (↑(#K.verts) - ↑t' + ↑t) + ∑ x ∈ filter K t, ↑(#K.verts) =\n (↑n - ↑(#K.verts)) * (↑(#K.verts) - (↑t' - ↑t)) + ↑(#(filter... | [
"n : ℕ\nG : SimpleGraph (Fin n)\ninst✝ : DecidableRel G.Adj\nr t t' : ℕ\nK : G.CompleteEquipartiteSubgraph r t'\nhr_pos : 0 < r\nht'_pos : 0 < t'\n⊢ ↑(#K.vertsᶜ - #(filter K t)) * (↑(#K.verts) - ↑t' + ↑t) + ∑ x ∈ filter K t, ↑(#K.verts) =\n (↑n - ↑(#K.verts)) * (↑(#K.verts) - (↑t' - ↑t)) + ↑(#(filter K t)) * (↑t... | card_sdiff_of_subset (filter_subset_compl_verts K), | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Set.Card.Arithmetic | {
"line": 104,
"column": 4
} | {
"line": 104,
"column": 29
} | {
"line": 105,
"column": 4
} | [
{
"pp": "case mpr.inl\nα : Type u_1\nt u : Set α\nhdtu : Disjoint t u\nhctu : #↑t = #↑u\nhfin : (t ∪ u).Finite\n⊢ Even (t ∪ u).ncard",
"ppTerm": "?mpr.inl",
"assigned": true,
"usedConstants": [
"Set.instMax",
"congrArg",
"Set.finite_union",
"Set.Finite",
"Eq.mp",
... | [
"case mpr.inl\nα : Type u_1\nt u : Set α\nhdtu : Disjoint t u\nhctu : #↑t = #↑u\nhfin : t.Finite ∧ u.Finite\n⊢ Even (t ∪ u).ncard"
] | rw [finite_union] at hfin | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.