锚定在两边的桥梁:CS导论中的形式演绎和离散数学中的代码证明
A Bridge Anchored on Both Sides: Formal Deduction in Introductory CS, and Code Proofs in Discrete Math
摘要:
标准本科计算机科学课程中的编程和数学部分之间存在明显的脱节,导致学生对两者之间的关系产生误解。我们建议在课程的早期-特别是在CS 1和离散数学入门课程中-通过使用关于程序的形式推理作为它们之间的桥梁来连接这些科目。本文报道了哈弗福德和格林内尔学院的经验,在建设CS 1和离散数学之间的这座桥梁的端点。Haverford的长期的“3-2-1”课程结合介绍性编程概念引入代码推理,Grinnell的离散数学引入代码推理作为逻辑和形式演绎的动机。这两门课程都以基于程序设计语言社区的符号代码执行技术的风格呈现代码推理,但针对每门课程的具体情况进行了调整。这些课程主要依赖于传统的纸笔证明创作手段。这是不满意的学生谁收到反馈,直到他们的工作评分和教师谁必须承担解释学生的证明和提供有用的反馈的负担。为此,我们还描述了奥卡,在发展中的本科教育证明助手,我们正在开发,以解决这些问题,在我们的课程的当前状态。最后,在我们的课程教学中,我们发现了一些关于代码推理在弥合编程和数学之间的差距方面的有效性的教育研究问题,以及像\orca这样的工具支持这种教学法的能力。我们提出这些研究问题,作为下一步正式化我们的初步经验,在我们的课程,希望最终推广我们的方法,更广泛地采用。
英文摘要:
There is a sharp disconnect between the programming and mathematical portions of the standard undergraduate computer science curriculum, leading to student misunderstanding about how the two are related. We propose connecting the subjects early in the curriculum---specifically, in CS1 and the introductory discrete mathematics course---by using formal reasoning about programs as a bridge between them. This article reports on Haverford and Grinnell College's experience in constructing the end points of this bridge between CS1 and discrete mathematics. Haverford's long-standing "3-2-1" curriculum introduces code reasoning in conjunction with introductory programming concepts, and Grinnell's discrete mathematics introduces code reasoning as a motivation for logic and formal deduction. Both courses present code reasoning in a style based on symbolic code execution techniques from the programming language community, but tuned to address the particulars of each course. These courses rely primarily on traditional means of proof authoring with pen-and-paper. This is unsatisfactory for students who receive no feedback until grading on their work and instructors who must shoulder the burden of interpreting students' proofs and giving useful feedback. To this end, we also describe the current state of Orca, an in-development proof assistant for undergraduate education that we are developing to address these issues in our courses. Finally, in teaching our courses, we have discovered a number of educational research questions about the effectiveness of code reasoning in bridging the gap between programming and mathematics, and the ability of tools like \orca to support this pedagogy. We pose these research questions as next steps to formalize our initial experiences in our courses with the hope of eventually generalizing our approaches for wider adoption.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。