-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(LinearAlgebra/CliffordAlgebra): construction from a basis #10660
base: master
Are you sure you want to change the base?
Conversation
sorry | ||
|
||
lemma single_mul_single_helper (i : ι) : | ||
(mul_helper (Model.Index.single i) (Model.Index.single i)).2 = 0 := by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
(mul_helper (Model.Index.single i) (Model.Index.single i)).2 = 0 := by | |
(mul_helper (Model.Index.single i) (Model.Index.single i)).2 = 0 := by |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
I suspect I will need some of these for #10660
Index.reverseRecOn nil concat (.concat l i h) = (concat l i h <| Index.reverseRecOn nil concat l) := by | ||
simp [Index.reverseRecOn, Index.concat] | ||
rw [List.reverseRecOn] | ||
simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
simp | |
simp? |
|
||
open List in | ||
def Index.mulOfLt (i : ι) (l : Model.Index ι) (h : ∀ j ∈ l.1, i < j) : | ||
(Finsupp.supported _ R {i' | i'.1.erase i <+ l}).comap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
(Finsupp.supported _ R {i' | i'.1.erase i <+ l}).comap | |
(Finsupp.supported _ R {i' | i'.1.erase i <+ l}).comap |
rw [LinearMap.map_mul_iff] | ||
ext xi yi | ||
dsimp [LinearMap.toSpanSingleton] | ||
simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
simp | |
simp? |
toFun f := liftToFun B f.val f.property | ||
invFun F := ⟨F ∘ₗ ofFreeVS B, by | ||
intro m | ||
simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
simp | |
simp? |
I suspect I will need some of these for #10660
…to eric-wieser/clifford.basis
| cons x xs => | ||
simp only [List.cons_append] | ||
congr | ||
dsimp only [←List.cons_append] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
dsimp only [←List.cons_append] | |
dsimp only [← List.cons_append] |
|
||
/-- (xX)Y = x(XY)-/ | ||
lemma Index.cons_mul (l₁ l₂ : Model.Index ι) (a : ι) (h) : | ||
(l₁.cons a h).mul B l₂ = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
(l₁.cons a h).mul B l₂ = | |
(l₁.cons a h).mul B l₂ = |
| nil => simp | ||
| cons is i h ih => | ||
rw [Index.cons_mul] | ||
simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
simp | |
simp? |
|
||
/-- (Xx)Y = X(xY)-/ | ||
lemma Index.concat_mul (l₁ l₂ : Model.Index ι) (a : ι) (h) : | ||
(l₁.concat a h).mul B l₂ = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
(l₁.concat a h).mul B l₂ = | |
(l₁.concat a h).mul B l₂ = |
(l₁.concat a h).mul B l₂ = | ||
(Model.ofFinsupp.symm (Index.singleMul B a l₂ : Model ι B)).sum fun ind val => val • l₁.mul B ind := by | ||
rw [mul] | ||
simp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
simp | |
simp? |
lemma Index.single_mul_single_same (i : ι) : | ||
Model.Index.mul B (.single i) (.single i) = B i i • (1 : Model ι B) := by | ||
rw [Model.Index.mul, single_eq_cons, recOn_cons, recOn_nil, ofFinsupp_symm_single, | ||
Finsupp.sum_single_index, one_smul, ←single_eq_cons, singleMul_single_same] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
Finsupp.sum_single_index, one_smul, ←single_eq_cons, singleMul_single_same] | |
Finsupp.sum_single_index, one_smul, ← single_eq_cons, singleMul_single_same] |
erw [Model.Index.singleMul, Index.recOn] | ||
rw [ltByCases, dif_pos hij, dif_neg hij.not_lt] | ||
dsimp | ||
rw [←Model.Index.singleMul] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint-style] reported by reviewdog 🐶
rw [←Model.Index.singleMul] | |
rw [← Model.Index.singleMul] |
I suspect I will need some of these for #10660
I suspect I will need some of these for #10660
I suspect I will need some of these for #10660
I suspect I will need some of these for #10660
This is adapted from https://github.com/eric-wieser/lftcm2023-clifford_algebra, which only worked for the special case of
Q = 0
.