Buckets:
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| namespace Problem326 | |
| structure ReactionNetwork (d : ℕ) where | |
| complexes : Finset (Fin d → ℕ) | |
| reactions : Finset ((Fin d → ℕ) × (Fin d → ℕ)) | |
| source_mem : ∀ e ∈ reactions, e.1 ∈ complexes | |
| target_mem : ∀ e ∈ reactions, e.2 ∈ complexes | |
| source_ne_target : ∀ e ∈ reactions, e.1 ≠ e.2 | |
| abbrev Reaction {d : ℕ} (N : ReactionNetwork d) := | |
| {e : (Fin d → ℕ) × (Fin d → ℕ) // e ∈ N.reactions} | |
| def HasReaction {d : ℕ} (N : ReactionNetwork d) | |
| (y z : Fin d → ℕ) : Prop := | |
| (y, z) ∈ N.reactions | |
| def WeaklyReversible {d : ℕ} (N : ReactionNetwork d) : Prop := | |
| ∀ e : Reaction N, | |
| Relation.TransGen (HasReaction N) e.val.2 e.val.1 | |
| def monomial {d : ℕ} (x : Fin d → ℝ) (y : Fin d → ℕ) : ℝ := | |
| Finset.univ.prod (fun i => x i ^ y i) | |
| def massAction {d : ℕ} (N : ReactionNetwork d) | |
| (κ : Reaction N → ℝ) (x : Fin d → ℝ) : Fin d → ℝ := | |
| fun i => Finset.univ.sum (fun e : Reaction N => | |
| κ e * monomial x e.val.1 * | |
| ((e.val.2 i : ℝ) - (e.val.1 i : ℝ))) | |
| def PositiveState {d : ℕ} (x : Fin d → ℝ) : Prop := | |
| ∀ i, 0 < x i | |
| def IsGlobalForwardSolution {d : ℕ} (N : ReactionNetwork d) | |
| (κ : Reaction N → ℝ) (x0 : Fin d → ℝ) | |
| (x : ℝ → (Fin d → ℝ)) : Prop := | |
| x 0 = x0 ∧ | |
| ∀ t : ℝ, 0 ≤ t → | |
| HasDerivAt x (massAction N κ (x t)) t | |
| def IsForwardSolutionOn {d : ℕ} (N : ReactionNetwork d) | |
| (κ : Reaction N → ℝ) (x0 : Fin d → ℝ) (T : ℝ) | |
| (x : ℝ → (Fin d → ℝ)) : Prop := | |
| x 0 = x0 ∧ | |
| ContinuousOn x (Set.Icc (0 : ℝ) T) ∧ | |
| ∀ t ∈ Set.Ioo (0 : ℝ) T, | |
| HasDerivAt x (massAction N κ (x t)) t | |
| def dot {d : ℕ} (a x : Fin d → ℝ) : ℝ := | |
| Finset.univ.sum (fun i => a i * x i) | |
| def IsFinitePolyhedron {d : ℕ} (K : Set (Fin d → ℝ)) : Prop := | |
| ∃ n : ℕ, ∃ a : Fin n → (Fin d → ℝ), ∃ b : Fin n → ℝ, | |
| K = {x | ∀ j, b j ≤ dot (a j) x} | |
| def IsForwardInvariant {d : ℕ} (N : ReactionNetwork d) | |
| (κ : Reaction N → ℝ) (K : Set (Fin d → ℝ)) : Prop := | |
| ∀ z, z ∈ K → | |
| (∃ x : ℝ → (Fin d → ℝ), IsGlobalForwardSolution N κ z x) ∧ | |
| ∀ (T : ℝ) (x : ℝ → (Fin d → ℝ)), 0 ≤ T → | |
| IsForwardSolutionOn N κ z T x → | |
| (∀ t ∈ Set.Icc (0 : ℝ) T, x t ∈ K) ∧ | |
| ∃ xg : ℝ → (Fin d → ℝ), | |
| IsGlobalForwardSolution N κ z xg ∧ | |
| Set.EqOn xg x (Set.Icc (0 : ℝ) T) | |
| end Problem326 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 2.54 kB
- Xet hash:
- 12a4273d41706fbf2e02b22bedd2b880e9d4c0b601d0780648fea2c79c680724
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.