\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsfonts,amsthm,amsmath,amssymb}
\usepackage[colorlinks, linkcolor=black,citecolor=black,urlcolor = black, bookmarks=true]{hyperref}
\usepackage[nameinlink, noabbrev, capitalize]{cleveref}

\newtheorem{thm}{Theorem}[section]
\newtheorem{claim}[thm]{Claim}
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{define}[thm]{Definition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{obs}[thm]{Observation}
\newtheorem{remark}[thm]{Remark}
\newtheorem{example}[thm]{Example}
\newtheorem{construction}[thm]{Construction}
\newtheorem{conjecture}[thm]{Conjecture}
\newtheorem{question}{Question}
\newtheorem{fact}[thm]{Fact}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{open}[thm]{Open problem}
\newtheorem{target}[thm]{Target Goal}
\newtheorem{direction}[thm]{Research direction}

 
\newcounter{lecnum}
\newcommand{\lecture}[4]{
   \pagestyle{myheadings}
   \thispagestyle{plain}
   \newpage
   \setcounter{lecnum}{#1}
   \setcounter{page}{1}
   \noindent
   \begin{center}
   \framebox{
      \vbox{\vspace{2mm}
    \hbox to 6.28in { {\bf CS 6810: Theory of Computing
                        \hfill Fall 2023} }
       \vspace{4mm}
       \hbox to 6.28in { {\Large \hfill Lecture #1: #2  \hfill} }
       \vspace{2mm}
       \hbox to 6.28in { {\it Lecturer: #3 \hfill Scribe: #4} }
      \vspace{2mm}}
   }
   \end{center}
   \markboth{Lecture #1: #2}{Lecture #1: #2}

}


 
\begin{document}
\lecture{1}{Aug 26, 2021}{Eshan Chattopadhyay}{ name}
\section{Introduction}
\begin{thm}
The Halting Problem is undecidable.
\end{thm}
\begin{cor}
There exists undecidable problems.
\end{cor}

\end{document}
