You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ty.rs
    path of file: ./repos/prusti-dev/prusti-viper/src/encoder/high/lower
    
    the code of the file until where you have to start completion: use super::{super::types::interface::HighTypeEncoderInterfacePrivate, IntoPolymorphic};
use vir_crate::{
    common::identifier::WithIdentifier,
    high as vir_high, polymorphic as vir_poly,
    polymorphic::Float::{F32, F64},
};

impl IntoPolymorphic<vir_poly::Type> for vir_high::Type {
    fn lower(&self, encoder: &impl HighTypeEncoderInterfacePrivate) -> vir_poly::Type {
        encoder.get_interned_lowered_type(self, || match self {
            vir_high::Type::MBool => vir_poly::Type::Bool,
            vir_high::Type::MInt => vir_poly::Type::Int,
            vir_high::Type::MFloat32 => vir_poly::Type::Float(F32),
            vir_high::Type::MFloat64 => vir_poly::Type::Float(F64),
            vir_high::Type::MPerm => {
                unreachable!("Permissions are used only in the unsafe core proof")
            }
            vir_high::Type::Bool => vir_poly::Type::typed_ref("bool"),
            vir_high::Type::Int(int) => vir_poly::Type::typed_ref(int.to_string().to_lowercase()),
            vir_high::Type::Sequence(ty) => vir_poly::Type::Seq(vir_poly::SeqType {
                typ: Box::new(ty.element_type.lower(encoder)),
            }),
            vir_high::Type::Map(ty) => vir_poly::Type::Map(vir_poly::MapType {
                key_type: Box::new(ty.key_type.lower(encoder)),
                val_type: Box::new(ty.val_type.lower(encoder)),
            }),
            vir_high::Type::Float(float) => {
                vir_poly::Type::typed_ref(float.to_string().to_lowercase())
            }
            vir_high::Type::TypeVar(ty) => vir_poly::Type::TypeVar(ty.lower(encoder)),
            vir_high::Type::Tuple(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Struct(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Enum(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Union(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Array(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Slice(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Reference(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Pointer(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::FnPointer => vir_poly::Type::typed_ref("FnPtr"),
            vir_high::Type::Never => vir_poly::Type::typed_ref("Never"),
            vir_high::Type::Str => vir_poly::Type:
    
    fn lower(&self, encoder: &impl HighTypeEncoderInterfacePrivate) -> vir_poly::Type {
        encoder.get_interned_lowered_type(self, || match self {
            vir_high::Type::MBool => vir_poly::Type::Bool,
            vir_high::Type::MInt => vir_poly::Type::Int,
            vir_high::Type::MFloat32 => vir_poly::Type::Float(F32),
            vir_high::Type::MFloat64 => vir_poly::Type::Float(F64),
            vir_high::Type::MPerm => {
                unreachable!("Permissions are used only in the unsafe core proof")
            }
            vir_high::Type::Bool => vir_poly::Type::typed_ref("bool"),
            vir_high::Type::Int(int) => vir_poly::Type::typed_ref(int.to_string().to_lowercase()),
            vir_high::Type::Sequence(ty) => vir_poly::Type::Seq(vir_poly::SeqType {
                typ: Box::new(ty.element_type.lower(encoder)),
            }),
            vir_high::Type::Map(ty) => vir_poly::Type::Map(vir_poly::MapType {
                key_type: Box::new(ty.key_type.lower(encoder)),
                val_type: Box::new(ty.val_type.lower(encoder)),
            }),
            vir_high::Type::Float(float) => {
                vir_poly::Type::typed_ref(float.to_string().to_lowercase())
            }
            vir_high::Type::TypeVar(ty) => vir_poly::Type::TypeVar(ty.lower(encoder)),
            vir_high::Type::Tuple(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Struct(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Enum(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Union(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Array(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Slice(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Reference(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Pointer(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::FnPointer => vir_poly::Type::typed_ref("FnPtr"),
            vir_high::Type::Never => vir_poly::Type::typed_ref("Never"),
            vir_high::Type::Str => vir_poly::Type::typed_ref("Str"),
            vir_high::Type::Closure(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::FunctionDef(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Projection(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Unsupported(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Trusted(ty) => vir_poly::Type::TypedRef(ty.lower(encoder)),
            vir_high::Type::Lifetime => unreachable!("Lifetimes ignored"),
        })
    }