Skip to content

Commit f711ce2

Browse files
authored
feat(strings): update charges defns in SU(5) x U(1) (#601)
* feat: Update chargeProfile * refactor: Remove charge profile * feat: Change R-parity * feat: ofFinset_of_mem_irreducibleOfFinset * feat: Split up charges file * chore: Rename IsPresent -> AllowsTerm * refactor: AllowsTerm file * feat: MinimallyAllowsTerm * refactor: Style lint * refactor: style lint * feat: Delete all files * refactor: LInt
1 parent 22504b1 commit f711ce2

31 files changed

+1500
-2253
lines changed

PhysLean.lean

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ import PhysLean.Relativity.Tensors.TensorSpecies.Basic
257257
import PhysLean.Relativity.Tensors.UnitTensor
258258
import PhysLean.StatisticalMechanics.Basic
259259
import PhysLean.StringTheory.Basic
260+
import PhysLean.StringTheory.FTheory.SU5U1.Charges.AllowsTerm
260261
import PhysLean.StringTheory.FTheory.SU5U1.Charges.Basic
262+
import PhysLean.StringTheory.FTheory.SU5U1.Charges.MinimallyAllowsTerm.Basic
263+
import PhysLean.StringTheory.FTheory.SU5U1.Charges.MinimallyAllowsTerm.OfFinset
264+
import PhysLean.StringTheory.FTheory.SU5U1.Charges.OfFieldLabel
265+
import PhysLean.StringTheory.FTheory.SU5U1.Charges.OfPotentialTerm
261266
import PhysLean.StringTheory.FTheory.SU5U1.Charges.OfRationalSection
262267
import PhysLean.StringTheory.FTheory.SU5U1.Charges.PhenoConstrained.Basic
263268
import PhysLean.StringTheory.FTheory.SU5U1.Charges.PhenoConstrained.Completeness
@@ -278,10 +283,6 @@ import PhysLean.StringTheory.FTheory.SU5U1.Fluxes.NoExotics.Completeness
278283
import PhysLean.StringTheory.FTheory.SU5U1.Fluxes.NoExotics.Elems
279284
import PhysLean.StringTheory.FTheory.SU5U1.Fluxes.NoExotics.ToList
280285
import PhysLean.StringTheory.FTheory.SU5U1.Potential.Basic
281-
import PhysLean.StringTheory.FTheory.SU5U1.Potential.ChargeProfile.Basic
282-
import PhysLean.StringTheory.FTheory.SU5U1.Potential.ChargeProfile.Irreducible.Basic
283-
import PhysLean.StringTheory.FTheory.SU5U1.Potential.ChargeProfile.Irreducible.Completeness
284-
import PhysLean.StringTheory.FTheory.SU5U1.Potential.ChargeProfile.Irreducible.Elems
285286
import PhysLean.StringTheory.FTheory.SU5U1.Quanta.AnomalyCancellation
286287
import PhysLean.StringTheory.FTheory.SU5U1.Quanta.Basic
287288
import PhysLean.StringTheory.FTheory.SU5U1.Quanta.FromParts

PhysLean/Mathematics/DataStructures/FourTree/Basic.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,23 +208,23 @@ def Trunk.mem (T : Trunk α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Prop
208208
| .trunk xo branches => xo = x.1 ∧ ∃ branch ∈ branches, branch.mem x.2
209209

210210
instance [DecidableEq α1] [DecidableEq α2] [DecidableEq α3] [DecidableEq α4]
211-
(T : Trunk α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Decidable (T.mem x) :=
211+
(T : Trunk α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Decidable (T.mem x) :=
212212
match T with
213213
| .trunk _ branches =>
214214
haveI : Decidable (∃ branch ∈ branches, branch.mem x.2) := Multiset.decidableExistsMultiset
215215
instDecidableAnd
216216

217217
/-- An element of `a : α1 × α2 × α3 × α4` is a member of `FourTree α1 α2 α3 α4` if
218218
`a` is a member of one of the `Trunk`. -/
219-
def mem (T : FourTree α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Prop :=
219+
def mem (T : FourTree α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Prop :=
220220
match T with
221221
| .root trunks => ∃ trunk ∈ trunks, trunk.mem x
222222

223223
instance [DecidableEq α1] [DecidableEq α2] [DecidableEq α3] [DecidableEq α4]
224-
(T : FourTree α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Decidable (T.mem x) :=
224+
(T : FourTree α1 α2 α3 α4) (x : α1 × α2 × α3 × α4) : Decidable (T.mem x) :=
225225
Multiset.decidableExistsMultiset
226226

227-
instance : Membership ( α1 × α2 × α3 × α4) (FourTree α1 α2 α3 α4)where
227+
instance : Membership (α1 × α2 × α3 × α4) (FourTree α1 α2 α3 α4) where
228228
mem := mem
229229

230230
instance [DecidableEq α1] [DecidableEq α2] [DecidableEq α3] [DecidableEq α4]

PhysLean/Mathematics/DataStructures/FourTree/UniqueMap.lean

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def Leaf.uniqueMap4 : Leaf α4 → Leaf α4
3636

3737
/-- Given a map `f : α4 → α4` the map from `Twig α3 α4 → Twig α3 α4` mapping the underlying
3838
leafs and deleting any that appear in the original Twig. -/
39-
def Twig.uniqueMap4 (T : Twig α3 α4) : Twig α3 α4 :=
39+
def Twig.uniqueMap4 (T : Twig α3 α4) : Twig α3 α4 :=
4040
match T with
4141
| .twig xs leafs =>
4242
let leafFinst := leafs.map (fun l => match l with
@@ -66,7 +66,7 @@ def Trunk.uniqueMap4 (T : Trunk α1 α2 α3 α4) : Trunk α1 α2 α3 α4 :=
6666
/-- Given a map `f : α4 → α4` the map from `FourTree α1 α2 α3 α4 → FourTree α1 α2 α3 α4`
6767
mapping the underlying leafs and deleting any that appear in the original twig of that
6868
leaf. -/
69-
def uniqueMap4 (T : FourTree α1 α2 α3 α4) : FourTree α1 α2 α3 α4 :=
69+
def uniqueMap4 (T : FourTree α1 α2 α3 α4) : FourTree α1 α2 α3 α4 :=
7070
match T with
7171
| .root trunks =>
7272
.root (trunks.map fun ts => (ts.uniqueMap4 f))
@@ -163,7 +163,6 @@ lemma exists_of_mem_uniqueMap4 {T : FourTree α1 α2 α3 α4}
163163

164164
end uniqueMap4
165165

166-
167166
/-!
168167
169168
## uniqueMap3
@@ -174,14 +173,12 @@ section uniqueMap3
174173

175174
variable1 α2 α3 α4 : Type} [DecidableEq α2] [DecidableEq α3] [DecidableEq α4] (f : α3 → α3)
176175

177-
178176
/-- Given a map `f : α3 → α3` the map from `Twig α3 α4 → Twig α3 α4` mapping the underlying
179177
first value of the twig. -/
180178
def Twig.uniqueMap3 (T : Twig α3 α4) : Twig α3 α4 :=
181179
match T with
182180
| .twig xs leafs => .twig (f xs) leafs
183181

184-
185182
/-- Given a map `f : α3 → α3` the map from `Branch α2 α3 α4 → Branch α2 α3 α4` mapping the
186183
underlying first value of the twig, and deleting any new leafs that appeared
187184
in the old branch. -/
@@ -210,7 +207,7 @@ def uniqueMap3 (T : FourTree α1 α2 α3 α4) : FourTree α1 α2 α3 α4:=
210207
.root (trunks.map fun ts => (ts.uniqueMap3 f))
211208

212209
lemma map_mem_uniqueMap3 {T : FourTree α1 α2 α3 α4}
213-
(x : α1 × α2 × α3 × α4) (hx : x ∈ T) (f : α3 → α3):
210+
(x : α1 × α2 × α3 × α4) (hx : x ∈ T) (f : α3 → α3) :
214211
(x.1, x.2.1, f x.2.2.1, x.2.2.2) ∈ T.uniqueMap3 f ∨
215212
(x.1, x.2.1, f x.2.2.1, x.2.2.2) ∈ T := by
216213
by_cases hnotMem : (x.1, x.2.1, f x.2.2.1, x.2.2.2) ∈ T
@@ -296,7 +293,6 @@ lemma exists_of_mem_uniqueMap3 {T : FourTree α1 α2 α3 α4}
296293
apply mem_of_parts trunkT branchT twigT leafI
297294
all_goals simp_all
298295

299-
300296
end uniqueMap3
301297

302298
end FourTree

0 commit comments

Comments
 (0)