This file contains hidden or 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
| sdfasdf |
This file contains hidden or 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
| theory Leftpad | |
| imports Main | |
| begin | |
| definition leftPad :: "'a ⇒ nat ⇒ 'a list ⇒ 'a list" | |
| where "leftPad padChar targetLength s ≡ replicate (targetLength - length s) padChar @ s" | |
| definition isPadded :: "'a ⇒ 'a list ⇒ 'a list ⇒ bool" | |
| where "isPadded padChar unpadded padded ≡ ∃ n. set (take n padded) ⊆ { padChar } ∧ drop n padded = unpadded" |
This file contains hidden or 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
| (* Isabelle model of example of dependent specs from https://www.hillelwayne.com/post/spec-composition/ *) | |
| theory Blink | |
| imports "./TLA-Utils" | |
| begin | |
| definition Blink :: "bool stfun ⇒ action" | |
| where "Blink v ≡ ACT ($v ⟶ ¬v$ ∧ ¬$v ⟶ v$)" | |
| definition TurnOn :: "bool stfun ⇒ action" |
This file contains hidden or 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
| theory EWD840 | |
| imports "HOL-TLA.TLA" | |
| begin | |
| section Utilities | |
| text ‹A handful of general lemmas that were useful along the way.› | |
| lemma temp_impI: | |
| assumes "sigma ⊨ P ⟹ sigma ⊨ Q" |
This file contains hidden or 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
| theory Fulcrum | |
| imports Main | |
| begin | |
| (* https://twitter.com/Hillelogram/status/987432184217731073: | |
| Fulcrum. Given a sequence of integers, returns the index i that minimizes |sum(seq[..i]) - sum(seq[i..])|. Does this in O(n) time and O(n) memory. https://rise4fun.com/Dafny/S1WMn *) | |
| (* The following merely asserts the time and space bounds. *) | |
| (* Tail-recursive-modulo-cons calculation of running total - O(n) time and space *) |
This file contains hidden or 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
| #!/usr/bin/python | |
| import sys | |
| import tarfile | |
| import hashlib | |
| for filename in sys.argv[1:]: | |
| print filename | |
| with tarfile.open(filename, 'r') as tar: | |
| for tarinfo in tar: |
This file contains hidden or 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
| # see https://discuss.elastic.co/t/failed-to-create-valid-geo-shape/175975 | |
| # ======================================== | |
| # Request: | |
| PUT /index | |
| { | |
| "mappings": { | |
| "doc": { | |
| "properties": { | |
| "parcel": { |
This file contains hidden or 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
| ; | |
| ; twinklies.asm | |
| ; | |
| .include "./m328Pdef.inc" | |
| .dseg | |
| coltable: | |
| .byte 64 |
This file contains hidden or 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
| theory MinimumIndex | |
| imports Main | |
| begin | |
| (* A theory about functions that return the index of a minimum element in a list *) | |
| (* Correctness properties: any valid implementation instantiates this locale: *) | |
| locale minimumIndex = | |
| fixes minimumIndex :: "int list ⇒ nat" |
This file contains hidden or 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
| { | |
| "0": [ | |
| { | |
| "primary": false, | |
| "translog": { | |
| "operations": 1489983, | |
| "size_in_bytes": 1722388686, | |
| "uncommitted_operations": 577877, | |
| "uncommitted_size_in_bytes": 648646336 | |
| }, |
NewerOlder