Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit c596622

Browse files
committed
feat(field_theory/intermediate_field): Inhabited instance (#18956)
If `S : intermediate_field K L`, then `S →ₐ[K] L` is nonempty. Co-authored-by: Thomas Browning <tb65536@users.noreply.github.com>
1 parent a9545e8 commit c596622

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/field_theory/intermediate_field.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ S.to_subalgebra.range_val
352352
@[simp] lemma field_range_val : S.val.field_range = S :=
353353
set_like.ext' subtype.range_val
354354

355+
instance alg_hom.inhabited : inhabited (S →ₐ[K] L) := ⟨S.val⟩
356+
355357
lemma aeval_coe {R : Type*} [comm_ring R] [algebra R K] [algebra R L]
356358
[is_scalar_tower R K L] (x : S) (P : R[X]) : aeval (x : L) P = aeval x P :=
357359
begin

0 commit comments

Comments
 (0)