Zulip Chat Archive

Stream: new members

Topic: How to use ring_hom for fields


view this post on Zulip Keyao Peng (Jun 26 2020 at 10:04):

when I try to define the category of field,

structure fields : Type (u+1) :=
(k : Type u)
(fStruc : field k)
instance fields_has_hom : has_hom fields :=
{ hom:= λ a b, ring_hom a.k b.k a.fStruc b.fStruc }

There would be an error, it seems like a field instance can't be regarded as semiring?
But this structure has no Error,

structure fieldsOver (L : Type u) [𝕃 :field L] : Type (u+1):=
(k : Type u)
(𝕜 : field k)
(L2k : L →+* k )

why?

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:05):

Use #backticks like this

```
code here
```

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:05):

Can you explain in text what you are trying to do?

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:06):

Build the category of fields and overfields?

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:06):

What do you want to use them for?

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:06):

The error is that ou are passing the structures to ring_hom, but it only takes a.k and b.k as explicit arguments.

view this post on Zulip Keyao Peng (Jun 26 2020 at 10:07):

I am trying to prove some theorems for Galois theory

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:07):

However, you have to explicitly tell lean to regard a.k as a field with

instance (a : fields) : [field a.k] := a.fStruc

view this post on Zulip Johan Commelin (Jun 26 2020 at 10:08):

Keyao Peng said:

I am trying to prove some theorems for Galois theory

I doubt whether these categories will make your life easier.

view this post on Zulip Keyao Peng (Jun 26 2020 at 10:12):

Johan Commelin said:

However, you have to explicitly tell lean to regard a.k as a field with

instance (a : fields) : [field a.k] := a.fStruc

Thanks, this works.

view this post on Zulip Kenny Lau (Jun 26 2020 at 10:19):

We have algebra for field extensions.


Last updated: May 10 2021 at 00:31 UTC