Created
June 17, 2021 15:02
-
-
Save kindaro/92a7d53a4c9a4297417310dcf0a599b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From Coq Require Import Unicode.Utf8. | |
From Coq Require Import Logic.Decidable. | |
From Coq Require Import QArith. | |
From Coq Require Import Vectors.Vector. | |
Notation β := nat. | |
Notation β := Prop. | |
Notation πΉ := bool. | |
Notation β€ := Z. | |
Notation β := Q. | |
Import VectorNotations. | |
Definition vector {dimension: β} := t β dimension. | |
Example eβ := [ 7#2 ; 5#3 ]. | |
Definition Root (power: β€) (number: β) := {root: β | root^power = number}. | |
Definition speed {dimension: β} (velocity: vector) := Root 2 (@fold_left _ _ Qplus 0 dimension (map (fun x => x^2) velocity)). | |
Example eβ := speed eβ. | |
Compute eβ. | |
Example eβ_computes: β (x: β), eβ = Root 2 x. | |
Proof with eauto. unfold eβ, eβ, speed, Qplus... Defined. | |
Example eβ_computed: β. | |
pose eβ_computes. β¦ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment