Skip to content

Commit

Permalink
chore: Test stats workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoobysmith committed Nov 11, 2024
1 parent bff1468 commit ad5c329
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
pull_request:

name: Create and Commit File on Pull Request

jobs:
create-and-commit:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3

# Step 2: Create a file
- name: Create a New File
run: echo "This is a new file created by the GitHub Actions workflow." > newfile.txt

# Step 3: Configure Git
- name: Set up Git user
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
# Step 4: Stage and commit the file
- name: Commit and Push Changes
run: |
git add newfile.txt
git commit -m "Automated commit: added newfile.txt"
git push origin HEAD:${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions HepLean/AnomalyCancellation/MSSMNu/Permutations.lean
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ open BigOperators
@[simp]
def PermGroup := Fin 6 → Equiv.Perm (Fin 3)

/-- The type `PermGroup` has a group instances derived from the group instance of it's target. -/
@[simp]
instance : Group PermGroup := Pi.group

Expand Down
1 change: 1 addition & 0 deletions HepLean/AnomalyCancellation/PureU1/BasisLinear.lean
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ noncomputable
def asBasis : Basis (Fin n) ℚ ((PureU1 n.succ).LinSols) where
repr := coordinateMap

/-- The module over `ℚ` defined by linear solutions to the pure `U(1)` ACCs is finite. -/
instance : Module.Finite ℚ ((PureU1 n.succ).LinSols) :=
Module.Finite.of_basis asBasis

Expand Down
1 change: 1 addition & 0 deletions HepLean/AnomalyCancellation/PureU1/Permutations.lean
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace PureU1
@[simp]
def PermGroup (n : ℕ) := Equiv.Perm (Fin n)

/-- The type `PermGroup n` inherits the instance of a group from `Equiv.Perm`. -/
instance {n : ℕ} : Group (PermGroup n) := Equiv.Perm.permGroup

section Charges
Expand Down
2 changes: 2 additions & 0 deletions HepLean/AnomalyCancellation/SM/Permutations.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def PermGroup (n : ℕ) := ∀ (_ : Fin 5), Equiv.Perm (Fin n)

variable {n : ℕ}

/-- The type `PermGroup n` inherits the instance of a group from it's
target space `Equiv.Perm`. -/
@[simp]
instance : Group (PermGroup n) := Pi.group

Expand Down
1 change: 1 addition & 0 deletions HepLean/FlavorPhysics/CKMMatrix/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ scoped[CKMMatrix] notation (name := ts_element) "[" V "]ts" => V.1 2 1
/-- The `tb`th element of the CKM matrix. -/
scoped[CKMMatrix] notation (name := tb_element) "[" V "]tb" => V.1 2 2

/-- The setoid of CKM matrices defined by phase shifts of fermions. -/
instance CKMMatrixSetoid : Setoid CKMMatrix := ⟨PhaseShiftRelation, phaseShiftRelation_equiv⟩

/-- The matrix obtained from `V` by shifting the phases of the fermions. -/
Expand Down
1 change: 1 addition & 0 deletions HepLean/Lorentz/ComplexTensor/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ instance {n : ℕ} {c : Fin n → complexLorentzTensor.C} :
instance {n : ℕ} {c : Fin n → complexLorentzTensor.C} :
Fintype (OverColor.mk c).left := Fin.fintype n

/-- The equality of two maps in `OverColor C` from objects based on `Fin _` is decidable. -/
instance {n m : ℕ} {c : Fin n → complexLorentzTensor.C}
{c1 : Fin m → complexLorentzTensor.C} (σ σ' : OverColor.mk c ⟶ OverColor.mk c1) :
Decidable (σ = σ') :=
Expand Down

0 comments on commit ad5c329

Please sign in to comment.