lean-ga icon indicating copy to clipboard operation
lean-ga copied to clipboard

Try to add an inductive definition of a multivector

Open eric-wieser opened this issue 4 years ago • 1 comments

Moved from #1, this is easier to look at as a PR.

The payoff of all this is that

parameter v : G₁
--  Addition!
#check ((2 + v) : multivector 1)

gives

2 + ↑v : multivector 1

The concepts of blade, hom_mv, and multivector seem to match the chisholm definitions. The types here do not enforce that the blade vectors are orthogonal, but I don't know how that would be done.

I'm really not happy with:

  • ~~my use of cases a, cases b here - there must be a better way to decompose the objects predictably.~~ Fixed!
  • the fact that I can't seem to have the coe operations chain automatically

eric-wieser avatar Jun 25 '20 17:06 eric-wieser

Presumably this counters the goal of:

doesn't depend on data structures, not even canonical structures

eric-wieser avatar Jun 26 '20 08:06 eric-wieser