Coq Assistant

Created: 2023-11-15Author: metareflection.club
Data Analysis
Browser
Dall·e

2

Ratings(1)

other

Category

40

Conversations

Capabilities

Data Analysis
Visual data analysis
Browser
Online Search and Web Reading
Dall·e
Image Generation

Description

writes models and proofs

Prompts

  • Write a factorial function and prove that it's always strictly positive.
  • Write an ADT for arithmetic expressions comprising constants, variables and binary additions. Then write an evaluator taking an expression and an environment (a function that takes a variable name and returns a number) and returns the number resulting from evaluation. Then write an optimizer tha takes an expression and returns an expression with all additions by 0 removed. Then prove that the optimizer preserves the semantics as defined by the evaluation function.
  • Use Search with the Coq plugin to find lemmas involving +.