Download lean/OAI/Combinatorics/MatchingCount/Sampling/FiniteSampler3.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.21 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/MatchingCount/Sampling/FiniteSampler3.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Combinatorics/MatchingCount/Sampling/FiniteSampler3.lean
-
curl -L -o FiniteSampler3.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Combinatorics/MatchingCount/Sampling/FiniteSampler3.lean
3.21 kB
| import Mathlib | |
| import OAI.Combinatorics.MatchingCount.Sampling.ChosenChord | |
| namespace OAI | |
| namespace MatchingFPRAS.Transport.CellDemands | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} {G : SimpleGraph L} | |
| noncomputable local instance finiteSampler3WeightedCellBagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| variable {hbags : ∀ v, ∀ a ∈ bags v, ∀ b ∈ bags v, a = b ∨ G.Adj a b} | |
| variable {hG : G.IsAcyclic} | |
| variable (height : L → ℝ) (hheight : ∀ l, 0 < height l) | |
| variable (hstep : ∀ a b, G.Adj a b → height a ≤ 2 * height b) | |
| variable (D : ℝ) (hD : 1 ≤ D) (w : BagEdge bags → ℝ) | |
| variable (hw : ∀ e, height e.color / D ≤ w e ∧ w e ≤ 3 * height e.color) | |
| variable (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) | |
| include hheight hstep hD hw hlohi | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} {G : SimpleGraph L} | |
| noncomputable local instance finiteSampler3AcyclicCellBagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| variable {hbags : ∀ v, ∀ a ∈ bags v, ∀ b ∈ bags v, a = b ∨ G.Adj a b} | |
| variable {hG : G.IsAcyclic} | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} {G : SimpleGraph L} | |
| noncomputable local instance finiteSampler3DemandCellBagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| variable {hbags : ∀ v, ∀ a ∈ bags v, ∀ b ∈ bags v, a = b ∨ G.Adj a b} | |
| variable {hG : G.IsAcyclic} | |
| end MatchingFPRAS.Transport.CellDemands | |
| namespace MatchingFPRAS.Transport | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} {G : SimpleGraph L} | |
| noncomputable local instance finiteSampler3TransportBagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| variable (hbags : ∀ v, ∀ a ∈ bags v, ∀ b ∈ bags v, a = b ∨ G.Adj a b) | |
| variable (hG : G.IsAcyclic) | |
| end MatchingFPRAS.Transport | |
| namespace MatchingFPRAS.Transport.CellDemands | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} {G : SimpleGraph L} | |
| noncomputable local instance finiteSampler3BoundedCellBagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| variable {hbags : ∀ v, ∀ a ∈ bags v, ∀ b ∈ bags v, a = b ∨ G.Adj a b} | |
| variable {hG : G.IsAcyclic} | |
| variable (height : L → ℝ) (hheight : ∀ l, 0 < height l) | |
| variable (hstep : ∀ a b, G.Adj a b → height a ≤ 2 * height b) | |
| variable (D : ℝ) (hD : 1 ≤ D) (w : BagEdge bags → ℝ) | |
| variable (hw : ∀ e, height e.color / D ≤ w e ∧ w e ≤ 3 * height e.color) | |
| variable (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) | |
| include hheight hstep hD hw hlo hlohi hbags hG | |
| end MatchingFPRAS.Transport.CellDemands | |
| namespace MatchingFPRAS.Transport | |
| open Finset | |
| variable {V L : Type*} [Fintype V] [DecidableEq V] [Fintype L] [DecidableEq L] | |
| variable {bags : V → Finset L} | |
| noncomputable local instance finiteSampler3BagEdgeFintype : Fintype (BagEdge bags) := Fintype.ofFinite _ | |
| end MatchingFPRAS.Transport | |
| end OAI | |