Skip to content

Instantly share code, notes, and snippets.

@fluiddynamics
Created October 5, 2016 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fluiddynamics/44bbc88cb2a9a5ca802e63c943e8979d to your computer and use it in GitHub Desktop.
Save fluiddynamics/44bbc88cb2a9a5ca802e63c943e8979d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Inductive word :=
| start : word
| X : word -> word
| Y : word -> word
| Z : word -> word.
Inductive path : word -> Prop :=
| s : path (X start)
| a1 : forall w:word, path (X w) -> path (Y (X w))
| a2 : forall w:word, path (X w) -> path (Z (X w))
| b : forall w:word, path (Y w) -> path (Z (Y w))
| c : forall w:word, path (Z w) -> path (X (Z w)).
Print path_ind.
Theorem xyz : path (Z (Y (X start))).
Proof.
repeat constructor. Qed.
Theorem xzx : path (X (Z (X start))).
Proof.
repeat constructor. Qed.
Print xzx.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment