Skip to content

Naming in Anomaly Cancellation for QED #1046

@jstoobysmith

Description

@jstoobysmith

In ./Odd/BasisLinear and ./Even/BasisLinear, there is a poor choice of variable names splitting the two planes.

An example in the odd case is:

/-- The first part of the basis as charge assignments. -/
def basisAsCharges (j : Fin n) : (PureU1 (2 * n + 1)).Charges :=
fun i =>
if i = oddFst j then
1
else
if i = oddSnd j then
- 1
else
0

compared to:

/-- The second part of the basis as charge assignments. -/
def basis!AsCharges (j : Fin n) : (PureU1 (2 * n + 1)).Charges :=
fun i =>
if i = oddShiftFst j then
1
else
if i = oddShiftSnd j then
- 1
else
0

There should be clearer descriptive naming around these planes. They should also be split into different file systems. The naming is tricky, but I think we should avoid something non-descriptive like plane1 etc.

Metadata

Metadata

Labels

help-wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions