cfahlgren1/math / lean /OAI /Combinatorics /Chromatic /GradedAlgebra /MutationOrientedCompatibility.lean
cfahlgren1's picture
download
raw
5.65 kB
import Mathlib
import OAI.Combinatorics.Chromatic.Walls.MutatedPathCompletion
import OAI.Combinatorics.Chromatic.Walls.FiniteFiberInfinity
namespace OAI
section
namespace ElementaryPositivity.QuantumTorus
open PowerSeries WallUnits
noncomputable section
variable {R M : Type*} [CommRing R] [AddCommGroup M] (v : Rˣ) (Ω : M →+ M →+ ℤ)
local instance : Ring (Torus v Ω) := Torus.instRing v Ω
local instance : AddCommMonoid (Torus v Ω) := (Torus.instRing v Ω).toAddCommMonoid
local instance : AddGroup (Torus v Ω) := (Torus.instRing v Ω).toAddGroup
lemma inverse_support_addSubmonoid (P : AddSubmonoid M) (f : PowerSeries (Torus v Ω))
(hf : ∀n m,coeff n f m≠0 → m∈P) :
∀n m,coeff n (invOfUnit f 1) m≠0 → m∈P := by
classical
intro n
induction n using Nat.strong_induction_on with
| h n ih=>
intro m hm
by_cases hn : n=0
· subst n
rw [coeff_invOfUnit,ite_eq_left rfl] at hm
have hm0 : m=0:=by
by_contra hh
apply hm
change Finsupp.single 0 (1:R) m=0
exact Finsupp.single_eq_of_ne hh
exact hm0 ▸ P.zero_mem
· rw [coeff_invOfUnit,ite_eq_right hn] at hm
simp only [inv_one,Units.val_one] at hm
rw [torus_neg_one_mul] at hm
change -(∑ab∈Finset.HasAntidiagonal.antidiagonal n,
if ab.2<n then coeff ab.1 f*coeff ab.2 (invOfUnit f 1) else 0) m≠0 at hm
have HH:=neg_ne_zero.mp hm
rw [nonp_torus_eval_sum] at HH
obtain ⟨ab,hab,hz⟩:=Finset.exists_ne_zero_of_sum_ne_zero HH
have hb : ab.2<n:=by by_contra hh; simp [hh] at hz
rw [ite_eq_left hb] at hz
obtain ⟨a,b,ha,hb',he⟩:=torus_product_nonzero v Ω _ _ m hz
exact he ▸ P.add_mem (hf ab.1 a ha) (ih ab.2 hb b hb')
end
end ElementaryPositivity.QuantumTorus
namespace ElementaryPositivity.RationalFiber
open QuantumTorus PowerSeries WallUnits FiniteRayGeometry
noncomputable section
variable {M I : Type*} [AddCommGroup M] [Fintype I] [DecidableEq I]
variable (Ω : M →+ M →+ ℤ) (hΩ : ∀m,Ω m m=0)
variable (C : (I → ℤ) →+ M) (coord : M →+ (I → ℤ))
variable (hcoord : ∀d,coord (C d)=d) (pc : I) (pos : Bool)
local instance : Ring (Torus LaurentRay.vUnit Ω) := Torus.instRing LaurentRay.vUnit Ω
local instance : AddCommMonoid (Torus LaurentRay.vUnit Ω) := (Torus.instRing LaurentRay.vUnit Ω).toAddCommMonoid
local instance : AddGroup (Torus LaurentRay.vUnit Ω) := (Torus.instRing LaurentRay.vUnit Ω).toAddGroup
theorem mutation_rational_oriented_compatibility (b : Bool) (f : CompletedPositive LaurentRay.vUnit Ω C)
(hf : ∀n m,coeff n f.val m≠0 → m∈fiberCone coord pc (mutationPairing Ω C pc) (sideSign pos)) :
mutationSideAction LaurentRay.vUnit (complementOmega (pureDegree coord pc) Ω)
(complementAlpha (pureDegree coord pc) (simpleRoot C pc) Ω) pos
(rationalRegrade LaurentRay.vUnit Ω hΩ (pureDegree coord pc) (simpleRoot C pc)
(pureDegree_simple_self C coord hcoord pc) (nonpDegree coord pc) (mutationSize Ω C pc+1)
(orientPowerSeries b f.val))=
rationalRegrade LaurentRay.vUnit Ω hΩ (pureDegree coord pc) (simpleRoot C pc)
(pureDegree_simple_self C coord hcoord pc)
(nonpDegree (mutatedCoordinates Ω C coord pc) pc) (mutationSize Ω C pc+1)
(mutationCompletion Ω hΩ C coord pc pos LaurentRay.vUnit (orientPowerSeries b f.val)) := by
let g : CompletedPositive LaurentRay.vUnit Ω C:=⟨orientPowerSeries b f.val,
orientPowerSeries_constant b f.val f.property.1,orientPowerSeries_graded Ω C b f.val f.property.2⟩
have hg : ∀n m,coeff n g.val m≠0 → m∈fiberCone coord pc (mutationPairing Ω C pc) (sideSign pos):=by
cases b
· exact inverse_support_addSubmonoid LaurentRay.vUnit Ω _ f.val hf
· exact hf
exact mutation_rational_compatibility Ω hΩ C coord hcoord pc pos g hg
variable {E : Type*} [AddCommGroup E] [Module ℝ E]
variable (e : M →+ E) (he : Function.Injective e)
variable (S : E →ₗ[ℝ] E →ₗ[ℝ] ℝ) (hS : ∀x,S x x=0)
variable (hcomp : ∀a b,S (e a) (e b)=(Ω a b:ℝ))
variable (L : Module.Dual ℝ E) (hdeg : ∀n m,HasRootDegree C n m → L (e m)=(n:ℝ))
variable (v k : Module.Dual ℝ E)
variable (H : ∀N,GenericOffset (realRootsThrough e C N) 0 v k)
include hS hcomp in
theorem mutatedLineFactor_rational_nocut (a : ℝ) (ha : ∃N,a∈lineEvents (realRootsThrough e C N) v k)
(hs : cutSide pos ((k+a • v).toAddMonoidHom.comp e) (simpleRoot C pc)) :
mutationSideAction LaurentRay.vUnit (complementOmega (pureDegree coord pc) Ω)
(complementAlpha (pureDegree coord pc) (simpleRoot C pc) Ω) pos
(rationalRegrade LaurentRay.vUnit Ω hΩ (pureDegree coord pc) (simpleRoot C pc)
(pureDegree_simple_self C coord hcoord pc) (nonpDegree coord pc) (mutationSize Ω C pc+1)
(noncutOldLineFactor Ω C e he L hdeg v k H a))=
rationalRegrade LaurentRay.vUnit Ω hΩ (pureDegree coord pc) (simpleRoot C pc)
(pureDegree_simple_self C coord hcoord pc)
(nonpDegree (mutatedCoordinates Ω C coord pc) pc) (mutationSize Ω C pc+1)
(mutatedLineFactor Ω hΩ C coord pc e he L hdeg v k H a) := by
classical
rw [mutatedLineFactor_nocut Ω hΩ C coord pc e he L hdeg v k H pos a hs]
unfold noncutOldLineFactor
rw [dite_eq_left ha]
let data:=lineRayData C e he L hdeg v k H a ha
exact mutation_rational_oriented_compatibility Ω hΩ C coord hcoord pc pos _ _
(simple_fiber_bound Ω C coord hcoord pc e he S hS hcomp L hdeg
data.root data.degree data.degree_pos data.root_degree (k+a • v) data.generic pos hs)
end
end ElementaryPositivity.RationalFiber
end
end OAI

Xet Storage Details

Size:
5.65 kB
·
Xet hash:
e4375da75a680d2a5312ba2894a0ecc46376902540636608b6500400c31ca67d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.