ssreflect

Removing tcast for tuples

自作多情 提交于 2021-01-29 09:16:15
问题 I'm in a bind with a goal equality like this (the details don't matter, I think): tcast tc0 [tuple of take i (s_bs bs) ++ drop i.+1 (s_bs bs) ++ [:: [ffun⇒ 0]]] = ... How do I get rid of the tcast and tuple to go back to simple seq (I tried the val_inj trick, but this didn't seem to remove the type cast)? Thanks in advance. Bye, Pierre 回答1: Giving a precise answer is a bit difficult, since you did not provide any reproducible testcase. But you could try rewriting your goal using the following

How to use Coq arithmetic solver tactics with SSReflect arithmetic statements

左心房为你撑大大i 提交于 2021-01-28 03:11:21
问题 Coq has some convenient tactics for automatically proving arithmetic lemmas, for instance lia : From Coq Require Import ssreflect ssrfun ssrbool. From mathcomp Require Import ssrnat. Set Implicit Arguments. Unset Strict Implicit. Unset Printing Implicit Defensive. Require Import Psatz. Lemma obv : forall (x y z: nat), (x < y)%coq_nat -> (y < z)%coq_nat -> (z < 3)%coq_nat -> (x < 3)%coq_nat. Proof. move => x y z xlty yltz zlt3. lia. Qed. The tactics do not directly support SSReflect-style

How to install SSReflect and MathComp in Linux?

天大地大妈咪最大 提交于 2019-11-29 04:14:17
I have successfully installed Coq 8.6 and CoqIDE in Linux (Ubuntu 17.04). However, I don't know to proceed in order to add SSReflect and MathComp to this installation. All the references that I have checked seemed to be very confusing to me. Does anyone have a straight and simple recipe to that? I do have opam installed. I'm on Ubuntu 16.04. Let's take a step back and begin by installing OPAM: $ sudo apt update && sudo apt install opam $ opam --version 1.2.2 $ opam init # agree to modify your dot-files $ eval `opam config env` $ ocamlc -version 4.02.3 Next, you may want to switch from Ubuntu's

How to install SSReflect and MathComp in Linux?

拥有回忆 提交于 2019-11-27 18:14:19
问题 I have successfully installed Coq 8.6 and CoqIDE in Linux (Ubuntu 17.04). However, I don't know to proceed in order to add SSReflect and MathComp to this installation. All the references that I have checked seemed to be very confusing to me. Does anyone have a straight and simple recipe to that? I do have opam installed. 回答1: I'm on Ubuntu 16.04. Let's take a step back and begin by installing OPAM: $ sudo apt update && sudo apt install opam $ opam --version 1.2.2 $ opam init # agree to modify