chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
690
lean_file_chunk
7071430d81a16be0ad493c600b39cd7f0cc804309e7eb7075bbe8a3252e9db34
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Internal.Char public import Std.Internal.Http.Internal.ChunkedBuffer public import Std.Internal.Http.Internal.LowerCas...
3,987
lean_file_chunk
a3313dc4ae4500f727cf3fd392dec8c3525df87f32a78e16ff142aa36358fbdd
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Dany Fabian, Henrik Böving -/ module prelude public import Std.Internal.Parsec.Basic public import Init.Data.String.Slice public import Init.Data.String.Termination public sect...
6,626
lean_file_chunk
c1134e9c056c7e78b5c50dd329c4fd0e966cd8a7e9fca515cecc9f40d7fdcd36
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Dany Fabian, Henrik Böving -/ module prelude public import Init.NotationExtra public import Init.Data.ToString.Macro import Init.Data.Array.Basic public section namespace Std ...
8,155
lean_file_chunk
96380161a4c9417656a9177de84e225503cc0451a0a7ed9182c2fd5025775789
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Internal.Parsec.Basic public import Init.Data.String.Basic public import Std.Data.ByteSlice import Init.Omega public section namespa...
3,448
lean_file_chunk
633249b498dafa0b3de0bb40b10a70d4d25acf9021b3e395a498fab104b86c4b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Grind public import Init.Data.String public import Std.Internal.Http.Internal.Char public section /-! # Internal String Helpers Shared...
7,748
lean_file_chunk
3198e9adc1aca9a2b5e724e8b0154298b0206a87c52c6632c051d23a9db3cae7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Grind public import Init.Data.Int.OfNat public import Std.Data.HashMap public section /-! # IndexMultiMap This module defines a ...
1,966
lean_file_chunk
eea723af235a39cfd817cf3b3af9ccd1ccc1c703e4142f0b969a1eb18e036cd2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Grind import Init.Data.Int.OfNat import Init.Data.UInt.Lemmas public import Init.Data.String @[expose] public section /-! # LowerCase T...
853
lean_file_chunk
2829744f92f8bb6e9fed77856825742f2334edbb9f9629cc760016782e890261
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Internal.ChunkedBuffer public import Std.Internal.Http.Data.Version public section /-! # Encode Serializes types to...
3,109
lean_file_chunk
70e3d5a028933bf9dcc235d88a5696bd74eff7468145f06e768f5f1cfb0b069b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Data.ToString import Init.Data.Array.Lemmas public import Init.Data.String public import Init.Data.ByteArray public section /-! # Chunke...
8,283
lean_file_chunk
1b59d5eb8ee417c4cc411263269015d37cfb4d10045444ade81d20f7917f8f57
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Char public import Init.Data.String public import Init.Data.Int public import Init.Grind @[expose] public section /-! # HTTP...
2,615
lean_file_chunk
5ca1a822699f5f0f12149b4c18919b94da6aac75fa51b5dab63108ff113eba73
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Dynamic public import Init.Data.String public import Std.Data.TreeMap open Lean public section /-! # Extensions This module pro...
7,447
lean_file_chunk
9f8377ddcec32fcaabcd625a175e7134852f63e1ca8a49f442bc213a41d3f6e1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Headers.Basic public import Std.Internal.Http.Data.Headers.Name public import Std.Internal.Http.Data.Headers.Valu...
701
lean_file_chunk
334c82b3b2e731b79adddabe5a13a1503cbe49501524dfa5f482f77480ebe165
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Body.Basic public import Std.Internal.Http.Data.Body.Length public import Std.Internal.Http.Data.Body.Any public ...
6,072
lean_file_chunk
492450f281bed4e380281d34f47e63c8873f715acf8adece0d98754cc985ea9b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Extensions public import Std.Internal.Http.Data.Status public import Std.Internal.Http.Data.Version public import...
9,120
lean_file_chunk
392ffd4d0de3b630ecfee26c4272108bbf4038e09e5efb5e278e1bddab2c6f89
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.ToString public import Std.Internal.Http.Internal public section /-! # Method This module provides the `Method` type that r...
15,958
lean_file_chunk
99794a198bdbd781645b0aca98c4c63214a89531ed034a9ada086e099ff11d90
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Internal public section /-! # Status This module defines the `Status` type, a representation of HTTP status codes. ...
7,209
lean_file_chunk
033a51283338f03ac99e86bc3437273f5140d2332626319f26009ac09f8e802b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Extensions public import Std.Internal.Http.Data.Method public import Std.Internal.Http.Data.Version public import...
1,816
lean_file_chunk
2d10ab791458bbb4e9bfd3db2a6ad565c15695996c07b1ff87bb69c14f023280
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Data.ToString public import Init.Data.String public section /-! # Version This module defines `Version`, the set of HTTP protocol versi...
2,638
lean_file_chunk
5a9bdc9288baf11ff4c1be37fa708435bd2efa9a040578ae2c2cdf3bd9226fe9
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.URI.Basic public import Std.Internal.Http.Data.URI.Parser public section /-! # URI This module defines the `UR...
8,646
lean_file_chunk
0beb17278e98e28849bf2a7e41d52685d150855a79dff09458110f9437d5b84d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Internal public import Std.Internal.Http.Data.Headers public meta import Std.Internal.Http.Internal.String public sec...
6,941
lean_file_chunk
85a7dc4683920cda89547b4536cc98071b446ca57414178add4fe285300bd0ff
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Sync public import Std.Internal.Http.Data.Request public import Std.Internal.Http.Data.Response public import Std.Internal.Http.Data...
1,041
lean_file_chunk
60ca892b28d2a3c0bcc3475d15915cf84f6d4615fd187cf1b291629e564f6e16
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Repr public section /-! # Body.Length This module defines the `Length` type, that represents the Content-Length or Transfer...
1,815
lean_file_chunk
6e481853e2c47b2aba28179f8be8ca1fb7a8e56710f70f01039624abbd98ca37
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Body.Basic public section /-! # Body.Any A type-erased body backed by closures. Implements `Http.Body` and can...
2,298
lean_file_chunk
d4c3c7dc74fab406d5a27eea328c1180fd30e881b065e2517cf5220f32c9a149
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Async public import Std.Internal.Async.ContextAsync public import Std.Internal.Http.Data.Chunk public import Std.Internal.H...
2,341
lean_file_chunk
77d091fc807b0f1b3fc3eb5e44c7d2dbb147661aa8de6e0f839d03d03f24efa2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Request public import Std.Internal.Http.Data.Response public import Std.Internal.Http.Data.Body.Any public secti...
17,695
lean_file_chunk
99b6b3eeec1d24ca79a657a748994775165bfca6819fdadc15232d2b1884d099
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Sync public import Std.Internal.Async public import Std.Internal.Http.Data.Request public import Std.Internal.Http.Data.Response pub...
5,544
lean_file_chunk
2295ae571e1b76ae4d3a295d231bbb07130ac78bbe455c0458d28a075b5b9833
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Internal.Http.Data.Headers.Name public import Std.Internal.Http.Data.Headers.Value public import Std.Internal.Parsec.Basic public s...
2,508
lean_file_chunk
1a716c64530bbc0007579118be87760d558b478e9cbb2e07d63c8db89c3fe069
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.ToString public import Std.Internal.Http.Internal public section /-! # Header Values This module defines the `Value` type, ...
4,136
lean_file_chunk
06ac683804a0554a2a3c459122296ef9d81f64d145772fc2d4808badc38743f2
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.ToString public import Std.Internal.Http.Internal public section /-! # Header Names This module defines the `Name` type, wh...
14,061
lean_file_chunk
6c1b877a6cb29c6f03acc6f03f84e463f7f30fba3b3df68e9ecedb6791ff8ffb
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.While public import Init.Data.String public import Std.Internal.Parsec public import Std.Internal.Parsec.ByteArray public import Std.Inter...
23,995
lean_file_chunk
8c9641d525b017ad1f748a7b836e2ab2abfeb20ce6300f484d608040b8a1cacc
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Data.ToString public import Std.Net public import Std.Internal.Http.Internal public import Std.Internal.Http.Data.URI.Encoding public sec...
2,500
lean_file_chunk
5a840af3523fbedbeed3fc5ed15cf09b3090db7572784b678226c0cf742419ba
lean_source_file
lean_toolchain_source_file_chunks
/-- Partially normalizes a URI by removing dot-segments from the path (`.` and `..`) according to RFC 3986 Section 5.2.4. This does not apply the full normalization set from RFC 3986 Section 6 — for example, case normalization, percent-encoding normalization, and default-port normalization are not performed. -/ def no...
23,944
lean_file_chunk
4deb640bdf71fc6a4aed244907b452eefd8809953ac1a35fc4e5af97b4a404ce
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude import Init.Grind import Init.While import Init.Data.SInt.Lemmas import Init.Data.UInt.Lemmas import Init.Data.UInt.Bitwise import Init.Data.Array.Lem...
194
lean_file_chunk
5a6e2177fc9779222f9826ccf0982b6dd6c55b6408dd4484a0fa1b58d33e8ac2
lean_source_file
lean_toolchain_source_file_chunks
Decodes an encoded query parameter back to a UTF-8 string. -/ def decode (param : EncodedQueryParam) : Option String := EncodedQueryString.decode param end EncodedQueryParam end Std.Http.URI
2,028
lean_file_chunk
0932426ad78f9f3d35e3d2bfc5ba38147d479c66f64eeb9c389dd88f1741daff
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Nat public section /-! # URI Parser Configuration This module defines `URI.Config`, which controls per-component size limit...
7,254
lean_file_chunk
a77e14422c53294c7cca74ba67b87faedb972f67d51fb8328277779d0e697b46
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.System.IO public import Std.Time.Duration public section namespace Std namespace Time open Internal set_option linter.all true ...
18,576
lean_file_chunk
49052aa2a5650e8b54f5ad658115d9cf5c93fddecf564982c33cef28a708393e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.DateTime.Timestamp public section namespace Std namespace Time open Internal set_option linter.all true /-- Represents a da...
12,301
lean_file_chunk
7ba84686112a4de26c883377cc42c2f91afb2b7e0e4ee3e0bd66be2f6a475f36
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Basic import all Std.Time.Date.Unit.Month import all Std.Time.Date.Unit.Year public section namespace Std namespace Time...
13,704
lean_file_chunk
3940b4f922b180d2b58248692274af541e5609c13039ba07824ffaa70b50f7a3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Basic public import Std.Time.Date.ValidDate public section namespace Std namespace Time namespace Nanosecond names...
3,928
lean_file_chunk
bb98ad31a0040a40ee8605eb8f477b3256cd7f05118be5be21906e7ea84ace86
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Month import all Std.Time.Date.Unit.Month import Init.Data.Bool public section namespace Std namespace Time open In...
14,841
lean_file_chunk
daf0cfbfb1bddcb0cce76c9cbf811dda024f570317426b185879ce02b89d35a0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Int.DivMod.Lemmas public import Init.Data.Order.Ord public import Init.Data.Int.Repr public import Init.Omega import Init.Ext ...
3,588
lean_file_chunk
45cb741b824bc585a8c871e798a7b1adf696bfa49d1a60b3c81669edc2fbb047
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Order.Ord public import Init.Data.Rat.Basic @[expose] public section namespace Std namespace Time namespace Internal open Le...
2,193
lean_file_chunk
7c214866918215179022960972870cf915b1cf4ab60cc700b0f18f9a25daf22f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Basic public section namespace Std namespace Time open Internal set_option linter.all true /-- `HourMarker` represents...
208
lean_file_chunk
b01beb285b9c65b9caa749b8db1adb61902ccf843adebcc4094b47b4863d9b9a
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Basic
8,941
lean_file_chunk
74f69fafb54df6de19af4a61a5a69baded4994c197ba74a40ad5ddc2e7c51ba1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Basic public section namespace Std namespace Time open Internal set_option linter.all true /-- Represents a specific p...
23,976
lean_file_chunk
a40bc599ba6f77dc82a241df348704ce315e79a2747c74d2ecc818d82878f65f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned import Init.Data.String.TakeDrop import Init.Data.String.Search public section /-! This module defines the `Formatter` ...
23,012
lean_file_chunk
f0d28ea02aa2c2d1a80e38a1bfc06027207d4c4facdbab766e78d3e0abc470b4
lean_source_file
lean_toolchain_source_file_chunks
| .hourMinuteColon => toIsoString data true false true | .hourMinuteSecond => toIsoString data true true false | .hourMinuteSecondColon => toIsoString data true true true | .x format => match format with | .hour => toIsoString data (data.second.toMinutes.val % 60 ≠ 0) false false | ....
5,157
lean_file_chunk
749f44f236492830b3a4548bc627749d603f66ee714c2e85f7be26c1e2286fd1
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Format.Basic public meta import Std.Time.Format.Basic public section namespace Std namespace Time open Lean Parser Command St...
1,587
lean_file_chunk
69351e0a31ffe9accf2888387efcb9a3196df972369a95766e6579f51bb787b5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned.Offset public section namespace Std namespace Time set_option linter.all true /-- A TimeZone structure that stores th...
2,167
lean_file_chunk
45323756fc497e0a00f5645abba70ba1eb11c6d6b757deacf7e1e5c8ee7b3773
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time public section namespace Std namespace Time namespace TimeZone open Internal set_option linter.all true /-- Represents...
1,239
lean_file_chunk
97019af1f393e88d5dd4c8d4fe9d1182693902c3533adb9860e19136f4735ba7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned.ZonedDateTime public import Std.Time.Zoned.Database.Basic public import Std.Time.Zoned.Database.TZdb public import Std.Ti...
18,858
lean_file_chunk
cef658fc4d9376a6587ca3df6092f7f05353aa80c88466c0116283a7eadc479e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned.DateTime public import Std.Time.Zoned.ZoneRules import all Std.Time.DateTime.PlainDateTime public section namespace Std...
15,343
lean_file_chunk
6ff66e6df21933b524b9f23f44101bcd6216d7f37e516a78d8894764cfa3030b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.DateTime public import Std.Time.Zoned.TimeZone import all Std.Time.Date.Unit.Month import all Std.Time.Date.Unit.Year import al...
5,879
lean_file_chunk
685417051066142e0a4c8ef907af37c4beb5fddca6dc372c36ff166095c77ffe
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.DateTime public import Std.Time.Zoned.TimeZone public section namespace Std namespace Time namespace TimeZone open Internal ...
6,212
lean_file_chunk
b480d0a2944016b4899dfe7d8c3036467bda2ac7a3bfed0d31d5abf0ec814f0b
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time public section namespace Std namespace Time namespace Day open Lean Internal set_option linter.all true /-- `Ordinal` ...
5,236
lean_file_chunk
8a80b0b23032af48606556d58c6f19be81b7c8e24d874c778f21154df7a96cd8
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Day public section namespace Std namespace Time namespace Week open Internal set_option linter.all true /-- `Ordi...
963
lean_file_chunk
a2a167fb370958f0d8f721004d05d26a89485a9512d2d36500522c9c59dbd977
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Year public import Std.Time.Date.Unit.Weekday public import Std.Time.Date.Unit.Week public section /-! This module ...
8,570
lean_file_chunk
5169d6b5f5a118ca0083799846374c0930c708fd9666960c4b76b22f77f884cf
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Day import Init.Data.Fin.Lemmas public section namespace Std namespace Time namespace Month open Internal set_opti...
3,404
lean_file_chunk
f0b2e87a53e3e556833c59623776667528bc74be1414a5b3326f84a1a97e930f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Day public section namespace Std namespace Time open Internal set_option linter.all true /-- Defines the enumerat...
3,032
lean_file_chunk
0571a53a84aed41e1a272bf9574926a43b3783c25de5790f4ecf4243b0893b13
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Date.Unit.Month public section namespace Std namespace Time namespace Year open Internal set_option linter.all true /-- Def...
4,231
lean_file_chunk
ed1caa926a99a5a452185500823cd7f713083736b3fb7aa9371523de9854c5c0
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Internal public section namespace Std namespace Time namespace Nanosecond open Internal set_option linter.all true /-- `Ord...
2,679
lean_file_chunk
54f61b4e662d195e57c80a913f1ade03567fad82a936f894551a5cc75dfa8b23
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Second public section namespace Std namespace Time namespace Minute open Internal set_option linter.all true /-- ...
7,739
lean_file_chunk
3aaa72cb47d7281038a18bd1f5fa8be8018b1bc04e16f04350932e7ebed2f468
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Hour public import Std.Time.Time.Unit.Millisecond public section /-! This module defines various units used for mea...
2,654
lean_file_chunk
cceb7e457ab452b0a3d5356a473c36a84308b9fa41009f4993b2156a0212a1f4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Nanosecond public section namespace Std namespace Time namespace Millisecond open Internal set_option linter.all t...
3,343
lean_file_chunk
b5e318c572a3b1d9c3bd1239cb1bba95d71b7618f4bfe320fea3ff354a0a006d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Nanosecond @[expose] public section namespace Std namespace Time namespace Second open Internal set_option linter....
3,213
lean_file_chunk
25b442ec359ed74fcaa2b2c588bff3ca678b10de5920d10aca972b7c9ea6575a
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Time.Unit.Minute public section namespace Std namespace Time namespace Hour open Internal set_option linter.all true /-- `O...
2,368
lean_file_chunk
3d1a75d92e9f3816ca0be6ce602169a83ee3cbcd75e59e71e8320dcc64178e77
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.SInt.Basic public import Std.Time.Zoned.Database.Basic import Init.While public section namespace Std namespace Time namespa...
7,976
lean_file_chunk
a5874954f3c1d7937720b7d5803b8735793ce59494d5c370504be1a08b72b6e4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Init.Data.Range.Polymorphic.Iterators public import Std.Internal.Parsec import Init.Data.Int.Repr public section -- Based on: https://...
3,090
lean_file_chunk
a5f4878e29f9f10ced3f8e7c6452c0a2fcecea5a818d80291454c83eee6310d7
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned.Database.Basic import Init.Data.String.TakeDrop public section namespace Std namespace Time namespace Database set_opt...
3,424
lean_file_chunk
dd1f8ebe62269b5ca42851620d46a36f773b42bac8632df86e9943db1263450d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sofia Rodrigues -/ module prelude public import Std.Time.Zoned.ZoneRules public import Std.Time.Zoned.Database.TzIf public section namespace Std namespace Time set_option linter.all...
303
lean_file_chunk
35fec9d3e4602bc04875c298abdf3e5e4813378f4dbb4b9468545d99bf92443e
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.RefVecOperator.Map public import Std.Sat.AIG.RefVecOperator.Zip public import Std.Sat.AIG.RefVecOperator.Fold
22,058
lean_file_chunk
6bfb62d2fd500fa512e5bc097d7d7508259efee0fddf9683c414086ffbf6e7e4
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.CNF public import Std.Sat.AIG.Lemmas import Init.ByCases import Init.Omega /-! This module contains an implementation of a verifi...
11,807
lean_file_chunk
620b8cea0fbd58f5bd77fcbd5c5738df099ff2fcd92e5a18ed68895a8febca31
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.Relabel import Init.ByCases import Init.Omega @[expose] public section namespace Std namespace Sat variable {α : Type} [De...
10,039
lean_file_chunk
aef545690f1c1d2218358ad76637e7528a1edf6ae410d4eec0bbf1903a6564b5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.LawfulOperator import Init.Omega @[expose] public section /-! This module provides a basic theory around the naive AIG node ...
7,029
lean_file_chunk
29648bd0bec6adeb147befccd3b7a71043134c9a540e4da0470b61507ea73b0d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.CachedGates import Init.Omega @[expose] public section /-! This module contains the theory of the cached gate creation funct...
5,440
lean_file_chunk
71eca593200a91510cfee52c67fe7c091bad90eed226f53cd3ccfd569279f4ea
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.CachedGatesLemmas public import Init.Data.Vector.Lemmas import Init.ByCases import Init.Omega @[expose] public section names...
5,260
lean_file_chunk
c6ff5ab8669a219f148c6d2a16654d96facf15d9e714a23a1f4ff99648c15b1f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.Basic import Init.Omega @[expose] public section /-! The lawful operator framework provides free theorems around the typecla...
18,512
lean_file_chunk
2a69d83265d626c6cac7414bddf0ed533cb840834c27cc83ce079724f41460ad
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Data.HashSet public import Init.Data.Vector.Basic public import Init.Data.Hashable public import Init.Data.String.Defs public import I...
6,484
lean_file_chunk
a82ff69428000577fe4568318dd34b8bd447b84903c216cecbc500137d0fe498
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.Lemmas import Init.ByCases import Init.Omega @[expose] public section namespace Std namespace Sat namespace AIG namespace ...
9,690
lean_file_chunk
7da671b1f55f35556c3d51eb2ae76f53ad69062bb031202490160e9db71d4720
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.LawfulVecOperator import Init.Omega @[expose] public section /-! Besides introducing a way to construct an if statement in a...
2,761
lean_file_chunk
2a16a2918b594facba5b846d34407836bc0db19558278674aa01538cd650dcdd
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.RefVec import Init.Omega @[expose] public section namespace Std namespace Sat namespace AIG variable {α : Type} [Hashable ...
4,547
lean_file_chunk
cc36c4d7d0c451166b1fc7fc5c24bb58e3ed2994fef8908ec00c97f231c07a3f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.Lemmas import Init.Omega @[expose] public section /-! This module contains functions to construct AIG nodes while making use...
6,679
lean_file_chunk
4abe3bd9d38f0dd726346dce933e60da7237de49a8c6c8a6d9259867b8e7f866
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.Cached import Init.Data.Nat.Order import Init.Data.Order.Lemmas @[expose] public section /-! This module contains the theory...
2,929
lean_file_chunk
1541605840a6481e708485afd96258930aa1234dd6ec9ab345e54f0a38cb580d
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.CachedLemmas @[expose] public section /-! This module contains functions to construct basic logic gates while making use of ...
5,746
lean_file_chunk
7acce117b218c4fa5cc92aba40bcba0eeaf7a8a1669f76f001957e379ef9a4f3
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Init.Data.Nat.Order public import Std.Sat.CNF.Relabel import Init.Data.Option.Lemmas import Init.Omega import Init.Data.List.Impl import In...
7,076
lean_file_chunk
e7ce596c29d76117f744b88d9eb5e5cdc0d2e181134af7e3a42faa2ee899d372
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Std.Sat.CNF.Literal public import Init.Data.Prod -- shake: keep (proof instance elab'd in public scope, fix?) public import Init.Data.Arra...
4,212
lean_file_chunk
fd4fbd4ad4a8326ca6e774aadb9c4f801e7e854e158f1ef8356cbb5ffcf2b88c
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kim Morrison -/ module prelude public import Std.Sat.CNF.Basic @[expose] public section namespace Std namespace Sat namespace CNF namespace Clause /-- Change the literal type in a...
1,504
lean_file_chunk
c7c1f6ba48aa936d70790bd65837e60650db134eb8e35257f91f0ea909473539
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.CNF.RelabelFin public section namespace Std namespace Sat namespace CNF private structure DimacsState where numClauses : Nat...
618
lean_file_chunk
c23b9548a2bdfc83ba0ebb99c645fef13b8100358404602d23eb895fdaebe321
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Josh Clune -/ module prelude public import Init.Data.Hashable public import Init.Data.ToString @[expose] public section namespace Std namespace Sat /-- CNF literals iden...
10,030
lean_file_chunk
119a84fcff4e8a9d98957043eafd0af8c1f61eecbc6cb47f3bd4f0afa2f4d6a5
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.LawfulVecOperator import Init.Omega @[expose] public section namespace Std namespace Sat namespace AIG namespace RefVec va...
7,544
lean_file_chunk
5643ef7c8b814d8c61ba03f0914e3e8bb002636755c85b1ed5c9a89abfc90137
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.LawfulVecOperator import Init.Omega @[expose] public section namespace Std namespace Sat namespace AIG namespace RefVec va...
5,290
lean_file_chunk
1a77e89c09534e318c61e927e68f7faa74ba149631d5231e03952139b71a3125
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2024 Lean FRO, LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ module prelude public import Std.Sat.AIG.LawfulVecOperator import Init.Omega @[expose] public section namespace Std namespace Sat namespace AIG namespace RefVec va...
23,956
lean_file_chunk
dd20f0145550288ca7208c488b854cf0233280ff614de7ddecdf5dc75d0e1e7f
lean_source_file
lean_toolchain_source_file_chunks
/- Copyright (c) 2025 Robin Arnez. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robin Arnez -/ module prelude public import Std.Data.ExtDHashMap.Basic import all Std.Data.ExtDHashMap.Basic import all Std.Data.DHashMap.Basic import all Std.Data.DHashMap.Raw import al...
23,929
lean_file_chunk
e330b2d748c33534d058331de4f5189c1c888732c286d25a82ef7b0af2d1adb1
lean_source_file
lean_toolchain_source_file_chunks
theorem getKey?_empty [EquivBEq α] [LawfulHashable α] {a : α} : (∅ : ExtDHashMap α β).getKey? a = none := DHashMap.getKey?_empty @[grind =] theorem getKey?_insert [EquivBEq α] [LawfulHashable α] {a k : α} {v : β k} : (m.insert k v).getKey? a = if k == a then some k else m.getKey? a := m.inductionOn fun _ => DH...
23,960
lean_file_chunk
e18027e994d84a1d14a37660d713d267ce534ed582f33d6f6a2baa25a0e86ef1
lean_source_file
lean_toolchain_source_file_chunks
(m.insertMany l).getD k' fallback = cast (by congr; apply LawfulBEq.eq_of_beq k_beq) v := by refine m.inductionOn (fun _ k_beq distinct mem => ?_) k_beq distinct mem simp only [insertMany_list_mk] exact DHashMap.getD_insertMany_list_of_mem k_beq distinct mem theorem getKey?_insertMany_list_of_contains_eq_false [...
23,993
lean_file_chunk
e87fe4207731130fa89e55692154872053c33e7e0eb487ffbd61e76714208fd2
lean_source_file
lean_toolchain_source_file_chunks
refine m.inductionOn (fun _ mem _ => ?_) mem h simp only [insertManyIfNewUnit_list_mk] exact DHashMap.Const.getKey_insertManyIfNewUnit_list_of_mem mem theorem getKey!_insertManyIfNewUnit_list_of_not_mem_of_contains_eq_false [EquivBEq α] [LawfulHashable α] [Inhabited α] {l : List α} {k : α} (not_mem : ¬ k ∈...
23,987
lean_file_chunk
4306c4cc19cc16feb563183b69fa3d139e0c9cee521f474331223a451d0fb2f1
lean_source_file
lean_toolchain_source_file_chunks
theorem contains_union [EquivBEq α] [LawfulHashable α] {k : α} : (m₁ ∪ m₂).contains k = (m₁.contains k || m₂.contains k) := m₁.inductionOn₂ m₂ fun _ _ => DHashMap.contains_union /- mem -/ theorem mem_union_of_left [EquivBEq α] [LawfulHashable α] {k : α} : k ∈ m₁ → k ∈ m₁ ∪ m₂ := m₁.inductionOn₂ m₂ fun ...
23,940
lean_file_chunk
1b294f6a11b342f3a1be3043879e21355a7f0063b361e593ac08fbf6a1e53d8a
lean_source_file
lean_toolchain_source_file_chunks
(m₁ \ m₂).get? k = if k ∈ m₂ then none else m₁.get? k := m₁.inductionOn₂ m₂ fun _ _ => DHashMap.get?_diff theorem get?_diff_of_not_mem_right [LawfulBEq α] {k : α} (not_mem : k ∉ m₂) : (m₁ \ m₂).get? k = m₁.get? k := by revert not_mem exact m₁.inductionOn₂ m₂ fun _ _ h => DHashMap.get?_diff_of_not_mem_rig...
23,960
lean_file_chunk
207d161811e0e0b6af6d7584f2bb03b4daf2737d673def91dc5cb761f6cdb9eb
lean_source_file
lean_toolchain_source_file_chunks
{f : Option β → Option β} : Const.get! (Const.alter m k f) k' = if k == k' then f (Const.get? m k) |>.get! else Const.get! m k' := m.inductionOn fun _ => DHashMap.Const.get!_alter @[simp] theorem get!_alter_self [EquivBEq α] [LawfulHashable α] {k : α} [Inhabited β] {f : Option β → Opt...
17,913
lean_file_chunk
c0851e896b428ab0b0fe0b677bfc6ed66cab5eed80078e90043eee268db362e7
lean_source_file
lean_toolchain_source_file_chunks
theorem getKey!_filterMap [EquivBEq α] [LawfulHashable α] [Inhabited α] {f : α → β → Option γ} {k : α} : (m.filterMap f).getKey! k = ((m.getKey? k).pfilter (fun x h' => (f x (Const.get m x (mem_of_getKey?_eq_some h'))).isSome)).get! := m.inductionOn fun _ => DHashMap.Const.getKey!_filterMap @[grind...