blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ccaa2266cd36f8e1cdd1bd9e680c650c289786f1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/padics/ring_homs.lean | 1fb617a8d268353955b8ca90e497e78035bbebb2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 24,156 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.zmod.basic
import number_theory.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
> THIS FILE IS SYNCHR... |
33c60a04cbec11e4e8228cd73251ccf042ceb145 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/fin_cases.lean | 578751c2214de687634d95c22d0a45d04b0f410a | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 4,304 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
Case bashing:
* on `x ∈ A`, for `A : finset α` or `A : list α`, or
* on `x : A`, with `[fintype A]`.
-/
import data.fintype.basic
import tactic.norm_num
namespace tacti... |
b2ad77e54a96fd3d10b46c08de233720c1ba15d6 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/run/app_builder.lean | f6bacde42fe8c50a6f1b3aa55ecddf5859ca9389 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 437 | lean | import algebra.ring
variables a b c : nat
variables H1 : a = b
variables H2 : b = c
set_option pp.all true
#app_builder eq.refl a
#app_builder eq.trans H1, H2
#app_builder eq.symm H1
open algebra nat
universe l
constant A : Type.{l}
constant s : comm_ring A
attribute s [instance]
variables x y : A
#app_builder eq.r... |
c19fe334bf8b5632422574b527f9d1eb61c8c2ee | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /logic.hlean | 33941b893b24dd1b70b9a8da34452abf9986f9e7 | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,292 | hlean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import types.trunc
open funext eq trunc is_trunc prod sum
--reserve prefix `¬`:40
--reserve prefix `~`:40
--reserve infixr ` ∧ `:35
--reserve infixr ` /\ `:35
--reserv... |
da6b74fdcebe05b49807f61fa7b851200b638da1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/complex/removable_singularity.lean | e1055784943f89b9c77e46fef5efda527e44873a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,330 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.fderiv_analytic
import analysis.asymptotics.specific_asymptotics
import analysis.complex.cauchy_integral
/-!
# Removable singularity theor... |
ea834af4ad2300e6f487c5b829c122c2c2ac389a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/712.lean | 388e6d7ff9858a7d33daa20427bc1a77c684eda3 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 489 | lean | reserve infix `~~~`:50
reserve notation `[` a `][` b:10 `]`
section
local infix `~~~` := eq
#print notation ~~~
local infix (name := eq2) `~~~`:50 := eq
#print notation ~~~
local infix (name := eq3) `~~~`:100 := eq
infix `~~~`:100 := eq -- FAIL
#print notation ~~~
local notation `[` a `][`:10 b:20 `]` := a = b... |
8b23a0115a0c7ba6bbf1f3840e4be9b453d031ff | 95a02f25ddbaf30f9e6fdb8043e6fd3c197ea01c | /src/process.lean | cfb5fd9ca1aca27e321f380e825acab67c470c82 | [
"MIT"
] | permissive | praalhans/lean-abs | b23aad54878c06f5a495dfff63260b72d17e9b99 | 5d23eec7234c880f5ebc0d7b831caf55119edef8 | refs/heads/master | 1,587,416,771,564 | 1,575,885,115,000 | 1,575,885,115,000 | 169,097,861 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,074 | lean | /- Copyright 2019 (c) Hans-Dieter Hiep. All rights reserved. Released under MIT license as described in the file LICENSE. -/
import history
universe u
open objects interpret
/- For class C we have a state space Σ(C) consisting of a this identity and an assignment of fields to values. -/
@[derive decidable_eq]
struc... |
8fd123674579be2b0b48af0aaffe517ff8b5af87 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/identities.lean | c1d39a966c0fb59d2e2d68ed19ab378be2803bbe | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,301 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.derivative
/-!
# Theory of univariate polynomials
The main def is `binom_expansion`.
-/
noncompu... |
8db645e6d305ac164d55b2c033c5fee8ad6bad0b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/local_cache.lean | 5ff10222b78343517edce85e6c0ca3bc6f26ce5f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,348 | lean | /-
Copyright (c) 2019 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek
-/
import tactic.norm_num
namespace tactic
namespace local_cache
namespace internal
variables {α : Type} [reflected _ α] [has_reflect α]
meta def mk_full_namespace (ns : n... |
22631f68529b077eca353958f4f3e4f8348a5941 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/791.lean | 7607e49208fc8f5797170b889fec5e3a4b0b0656 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 182 | lean | open nat
definition foo.bar : nat := 10
definition boo.bla.foo : nat := 20
open foo
open boo.bla
#reduce bar
#reduce foo
constant x.y.z : nat
open x
#check y.z
open x.y
#check z
|
0746616aca7e33fbebcfa0fd856d0a6723f6f391 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love10_denotational_semantics_demo.lean | 0294b4e64a9d7f1d77ecce6ca3c49e93f9d9992a | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,868 | lean | import .love08_operational_semantics_demo
/-! # LoVe Demo 10: Denotational Semantics
We review a third way to specify the semantics of a programming language:
denotational semantics. Denotational semantics attempt to directly specify the
meaning of programs.
If operational semantics is an idealized interpreter and ... |
3257d95acc368d02f304c568c44724c5e0e430c9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/unfold1.lean | 7784ddccdd4905e294d7279d6222004ee3880e54 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 396 | lean | open tactic
meta definition rewriteH (Hname : name) : tactic unit :=
do do h ← get_local Hname,
rewrite_target h,
try reflexivity
example (l : list nat) : list.append l [] = l :=
by do
get_local `l >>= λ H, induction H [`h, `t, `iH],
--
dunfold_target [`list.append],
trace_state,
trace "------",
ref... |
5ff8fcac4763635b753696e67fff81794aef0eee | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/alias.lean | 685ca9c6ef593b66aa1c0eb80244feebb525cee8 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 341 | lean | import logic
namespace N1
variable num : Type.{1}
variable foo : num → num → num
end
namespace N2
variable val : Type.{1}
variable foo : val → val → val
end
using N2
using N1
variables a b : num
print raw foo a b
using N2
print raw foo a b
using N1
print raw foo a b
using N1
print raw foo a b
using N2
print ... |
4976af7e0403961ef9fdd05a045bd8b012a37b82 | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/Gdt/eval_option.lean | adb8e877463b426dac22371610a31dea1167c86d | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,811 | lean | import tactic
import ...definitions
import ..internal_definitions
import .eval
variable [GuardModule]
open GuardModule
lemma Gdt.branch_option_replace_left_env { gdt₁ gdt₁' gdt₂: option Gdt } { env: Env }
(h: Gdt.eval_option gdt₁ env = Gdt.eval_option gdt₁' env):
Gdt.eval_option (Gdt.branch_option gdt₁ gdt₂) ... |
79f28606771051c40bd6e21aced34eb734c4fcce | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_geometry/presheafed_space/gluing.lean | 762d2b64a944087a3e0e0e6c4110ad4a55975512 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 26,261 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import topology.gluing
import algebraic_geometry.open_immersion
import algebraic_geometry.locally_ringed_space.has_colimits
/-!
# Gluing Structured spaces
Given a family ... |
0ea8871f48a63b29682d252a390eec288c5b2e79 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/tactic/core.lean | 938d07d7a6638d4c2c81bf46bd493c418d11bd61 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 55,922 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map data.bool
namespace expr
open tactic
attribute [derive has_re... |
a1e5afcbe4cb817f469355bb18415333be108127 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fin/succ_pred.lean | fc3be9dc186baef719851b6237481d0287ea9ea4 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,886 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fin.basic
import order.succ_pred.basic
/-!
# Successors and predecessors of `fin n`
In this file, we show that `fin n` is both a `succ_order` and a `pre... |
d06df35fb69b269c0ef3697d4770a850ca0123e0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/multilinear.lean | a45c1fcae235d2724debdc2da474edacc8b7045f | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,476 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.module
import Mathlib.linear_algebra.multilinear
import Mathlib.Post... |
b9b1f3d59f1dcc814be46ff0c1fc87ce8ff6c5d1 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Position.lean | 86a3331658435a66bc77bae535aeace70dbd45a0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,679 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Data.Format
import Lean.ToExpr
namespace Lean
structure Position where
line : Nat
column : Nat
deriving Inhabited, ... |
5c468483d46eb020cfdafe2d933aad814ad2afb5 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/metric_space/emetric_space.lean | 164827add9c33e6b6e9ce408219d2b1f0f203bf7 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 39,536 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.real.ennreal
import data.finset.intervals
import topology.uniform_space.uniform_em... |
a350f9ba5bb264a431d9c70049cf064980d35e08 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/homotopy/circle.hlean | 990806035ced6f2adceaa2fad4f2fba096cf7703 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 13,664 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the circle
-/
import .sphere
import types.int.hott
import algebra.homotopy_group .connectedness
open eq susp bool is_equiv equiv is_trunc is_conn p... |
46ebe371604157f926cf75d21556ccfde9f46235 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/reflects_isomorphisms.lean | 0070bc369af7eaea28c449f045b7454eeb29ee85 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 1,841 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.fully_faithful
/-!
# Functors which reflect isomorphisms
A functor `F` reflects isomorphisms if whenever `F.map f` is an isomorphism, `f` was too... |
9245bea1855b4364a7cb91a3828e8ea6834b4fe0 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/data/padics/padic_norm.lean | 827d7e5323f4b493f57b07c35a4f2b4a701be5a4 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 17,082 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.rat
import algebra.gcd_domain
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
/-!
# p-adic norm
This file defines ... |
f7e746dbe5fb97408bb236063644db97a8b148e6 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/pseudo_normed_group/category.lean | 52fc4b814475d5382e332d2f661cbf4d4bcfa409 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,021 | lean | import category_theory.concrete_category.bundled_hom
import topology.category.Profinite
import pseudo_normed_group.with_Tinv
universe variables u
open category_theory
open_locale nnreal
/-- The category of profinitely filtered pseudo normed groups. -/
def ProFiltPseuNormGrp : Type (u+1) :=
bundled profinitely_filte... |
055d065e86b5de8913a787a3b52761b924afef5d | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/set_theory/surreal.lean | b16eadf66316229b6837d2fafc9d83391e4842f5 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,147 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison
-/
import set_theory.pgame
/-!
# Surreal numbers
The basic theory of surreal numbers, built on top of the theory of combinatorial (pre-)games.
A prega... |
adfebadbba2a3e4a32255212c3dc75ea0da59859 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/sheaves/forget.lean | 4d25c4bb2d15581021e1134f44c3c08be366f89a | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 8,038 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.sheaves.sheaf
import category_theory.limits.preserves.shapes.products
import category_theory.limits.types
/-!
# Checking the sheaf condition on the u... |
ce7527e7b41fbaf64aa282007168111337cd792a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/pi.lean | 16385f5f098c3df084f3064ab948d53395f9d6e1 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,777 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Eric Wieser
-/
import linear_algebra.basic
import data.equiv.fin
/-!
# Pi types of modules
This file defines construct... |
e2ab513985b7e1e2236d7231ec70d15a44aeda75 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level9.lean | 29cac33fed56c9ad6c051d5c0d2c42b869085606 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 187 | lean | import world6.level8
lemma contra (P Q : Prop) : P ∧ ¬ P → Q :=
begin
intro h,
exfalso,
cases h with p np,
rw not_iff_imp_false at np,
apply np,
exact p,
end |
9847e44caa1aafb01861664b0aa0f0519c6b7389 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_500.lean | c28552499772e61435ebd46a78bf299eb71916d2 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61 | lean | example (h : 5 ≥ 3) : ∃ x, x ≥ 3 :=
by exact ⟨5, h⟩ |
4040ca53f4af9b1681314328db3fc7e0bee4621a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/rw_binders.hlean | 48052ee2a697c652f625fc0a9b837ed100db773d | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 206 | hlean | import types.eq
open eq
variables {A : Type} {a1 a2 a3 : A}
definition my_transport_eq_l (p : a1 = a2) (q : a1 = a3)
: transport (λx, x = a3) p q = p⁻¹ ⬝ q :=
begin
rewrite transport_eq_l,
end
|
9068e6d91b6f1ae63902d462fda9cbcf706b1c44 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/Tactic/Replace.lean | ed953a874ebd073f0e1c2ff9d75f26ef6aa32487 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,085 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Util
import Lean.Meta.Tactic.Revert
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Clear
import L... |
97e7d3c38b64e8b3f8a04e58e17e5f67b31e267c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/lex.lean | 94c94d83bb14979f992116fe5d089224253e5af8 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,759 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.rel_classes
/-!
# Lexicographic ordering of lists.
The lexicographic order on `list α` is defined by `L < M` iff
* `[] < (a :: L)` for any `a` and `L`,... |
28e7eeb9534f1bfff8fd3d9b2b7f4eb44c2283aa | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/polynomial/eval.lean | 370de5627d45ba173fb82382b8ae229c885c7def | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,875 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.induction
import data.polynomial.degree.definitions
import deprecated.ring
/-!
# Theory of univari... |
8c7af5501d885ac9b53a83f4db063eafa2d05cf4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/tactic/default.lean | 634b1be2a52171527d060124909807209247ece8 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 1,193 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
6997547eac960ca9be26a47b89315224f142b5a6 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/conditional_expectation.lean | d77627101bee3b0a46f3a31ce8da7c253322ce43 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 3,477 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import probability.notation
import probability.independence.basic
import measure_theory.function.conditional_expectation.basic
/-!
# Probabilistic properties of the condi... |
44ca20c5b265e46c7d7024bac917f138a728f6ad | 2272e503179a58556187901b8698b789fad7e0c4 | /src/functor.lean | 02aad92a186103e77c2213b98685a741f7730675 | [] | no_license | kckennylau/category-theory | f15e582be862379453a5341d83b8cd5ebc686729 | b24962838c7370b5257e38b7648040aec95922bb | refs/heads/master | 1,583,605,043,449 | 1,525,154,882,000 | 1,525,154,882,000 | 127,633,452 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,324 | lean | import .examples
universes u v w u₁ v₁ w₁ u₂ v₂ w₂
namespace category
namespace functor
variables {α : Type u} (C : category.{u v} α)
variables {β : Type u₁} (D : category.{u₁ v₁} β)
variables {γ : Type u₂} (E : category.{u₂ v₂} γ)
@[reducible] def obj (x : α) : functor examples.one C :=
{ F := λ _, x... |
0f0e35ca4dfabdde17f9d6700610ac86fbd58117 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_topology/simplex_category.lean | 2c724131c40fa7d85f985ef478889f9f41989dcd | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 30,143 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import tactic.linarith
import category_theory.skeletal
import data.fintype.sort
import order.category.NonemptyFinLinOrd
import category_t... |
6813f04b8845938df8eb3c41541f61b1745ddee9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/groupoid/free_groupoid.lean | b3b2c8ff308338e8a6c3a6a08f8e7766567f8194 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,893 | lean | /-
Copyright (c) 2022 Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémi Bottinelli
-/
import category_theory.category.basic
import category_theory.functor.basic
import category_theory.groupoid
import tactic.nth_rewrite
import category_theory.path_cat... |
70341e2f7dbc6f7b1b9ceb4076fe0888564ade6c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/sections.lean | a3d485989311cb32460ebfb131b706fd972e6e5b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,878 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.basic
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-!
# Sectio... |
215b04d8e2ca6845f7e1ab79ce3a0eb16290ee51 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/set/enumerate.lean | 12d4516394121d780bcba15e8c20f7c5a7c19273 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,400 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Enumerate elements of a set with a select function.
-/
import data.set.lattice
import tactic.wlog
noncomputable theory
open function set
namespace set
section enumer... |
d204ff28a59b011b35fd959649258e378dfc843a | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/group_theory/coset.lean | de5dfef656fcd9c9584aa7df069ad3c3bebba790 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 9,208 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import deprecated.subgroup
open set function
variable {α : Type*}
@[to_additive left_add_coset]
def left_coset [has_mul α] (a : α) (s : set α) : s... |
1f4f0c6222fb268760d934ba584fd90640e31c98 | e42ba0bcfa11e5be053e2ce1ce1f49f027680525 | /src/separation/heap/basic.lean | 5bc5a479f06405330506fb23494683a33cb14c99 | [] | no_license | unitb/separation-logic | 8e17c5b466f86caa143265f4c04c78eec9d3c3b8 | bdde6fc8f16fd43932aea9827d6c63cadd91c2e8 | refs/heads/master | 1,540,936,751,653 | 1,535,050,181,000 | 1,535,056,425,000 | 109,461,809 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,685 | lean | import data.bitvec
import data.dlist
import data.list.perm
import util.logic
import util.control.applicative
import util.control.monad.non_termination
import util.data.option
import util.meta.tactic
universes u v w w'
open nat list (hiding bind) function
@[reducible]
def pointer := ℕ
structure word :=
to_word :: (t... |
247a511bce0a06245f751230e6879d2a68ce1c7d | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/connected.lean | 855dc8804217c4faeb55e2f58dbd87d7032da97b | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,351 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.equalizers
import category_theor... |
cf80e4949e046091b824380c33f8b5e9ba780aed | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1616.lean | 3aa3e9e90b7cb44066355fee2b2d08fb8b9630f9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 385 | lean | inductive Cover : (x y z : List α) -> Type u
| done : Cover [] [] []
| left : Cover x y z -> Cover (t :: x) y (t :: z)
| right : Cover x y z -> Cover x (t :: y) (t :: z)
| both : Cover x y z -> Cover (t :: x) (t :: y) (t :: z)
inductive Linear : Cover x y z -> Prop
| done : Linear .done
| left : Linear ... |
a1a0fb501510bac0e1df3accfdbae92abe909a45 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/constructions/epi_mono.lean | db94b19d852fbd411b1612463bb5c7125e2528ca | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,226 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
/-!
# Relati... |
292aa0e14e1b5c0b12bc4df3e1b3dfb50f4d1591 | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Meta/DiscrTree.lean | be65fe1d6218164853b5be5cd91111ec9c940e00 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,481 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
import Lean.Meta.InferType
import Lean.Meta.WHNF
namespace Lean.Meta.DiscrTree
/-
(Imperfect) discriminat... |
25973c87fd1f4edcb6265abedff088699ca38c92 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/macroResolveName.lean | 546b3c21e50db2c0cf6942a1b20af8a29a588558 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 271 | lean | open Lean in
macro "resolveN" x:ident : term =>
return quote (← Macro.resolveNamespace? x.getId)
open Lean in #check resolveN Macro
open Lean in
macro "resolve" x:ident : term =>
return quote (← Macro.resolveGlobalName x.getId)
open Nat in #check resolve succ
|
261f58ed3d7aa87e9ff96e04da7dc19e6a26fce4 | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/inferences/empty_clause.lean | f24309d972e389aea581a7d242e802ef612f09e0 | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 434 | lean | import super.prover_state super.inferences.clausify
namespace super
meta def simplification.empty_clause : simplification_rule | c :=
if c.ty.literals ≠ [] then pure (some c) else do
c ← c.pack,
c ← c.unpack_quantified,
some <$> clause.check_result_if_debug (pure c)
meta def preprocessing.empty_clause : preprocessin... |
0f134e43cb2f5c33316f4fe5976a24310732f559 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebraic_geometry/structure_sheaf.lean | 5c39410702b8af94449d55c5174aa4ffc12d088d | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 44,462 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebraic_geometry.prime_spectrum
import algebra.category.CommRing.colimits
import algebra.category.CommRing.limits
import topology.sheaves.loc... |
fd6d738df8c714b5d49c7a515057b0aa1865c73b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/group_action/prod.lean | 007e861c241a7c29632c7d768e5c89ff81d5f161 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 4,553 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Eric Wieser
-/
import algebra.group.prod
import group_theory.group_action.defs
/-!
# Prod instances for additive and multiplicative actions
This file define... |
d044c158175520111fe798575d113a68e6cd2e59 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/concrete_category/basic.lean | 29e9eb2079c0bc89c3f21cfcaf33f6ddc0148725 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 7,885 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather, Yury Kudryashov
-/
import category_theory.types
import category_theory.functor.epi_mono
/-!
# Concrete categories
A concret... |
1dd79deee539c643f5a98d09f9b8722ebe7ed31e | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/ldeq.lean | b068c78556a3acc9c8653fb5f1c783e4ba38c01c | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,398 | lean | import .atom .ldq
variables {α β : Type}
open tactic atom_eq_type
def lift_eq_qe (β : Type) [atom_eq_type α β] (qe : list α → fm α) (as : list α) : fm α :=
let ntas := @list.filter _ (λ (a : α), ¬ atom_eq_type.trivial β a)
begin
apply dec_not_pred_of_dec_pred (trivial β),
apply atom_eq_type.dec... |
ede660b9e45d08b58f5b3758a7f511a7f783b07c | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2022/functions/sheet2.lean | 63ec07872bc96dcf59b8a09765b6ff2fb90defee | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 1,666 | lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-
# More on functions
Another question on the IUM problem sheet on functions
is "If `f : X → Y` and `g : Y → Z` and `... |
8fc2e41054d1a81b3e2c7d2d315e921b8288e65f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/group_theory/perm/cycle/concrete.lean | fc7470c598f96c140151f95920bd04b8f5cdaa0e | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 19,750 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.list.cycle
import group_theory.perm.cycle.type
import group_theory.perm.list
/-!
# Properties of cyclic permutations constructed from lists/cycles
In... |
bab497f81386db64742b1c0a7c7cbf448dd7e653 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/1728.lean | b63f8a0ba6e1c72116c2f834a9ebe9a8597a91c0 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 706 | lean | structure Bijection ( U V : Type ) :=
( morphism : U → V )
( inverse : V → U )
( witness_1 : ∀ u : U, inverse (morphism u) = u )
( witness_2 : ∀ v : V, morphism (inverse v) = v )
class Finite ( α : Type ) :=
( cardinality : nat )
( bijection : Bijection α (fin cardinality) )
lemma empty_exfalso (x : fals... |
b5e1668712e62bf404cd253195832768b78b8d63 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myfield/order.lean | 15bdaf903ccadbcf912c3447d8e86fe81698a781 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 4,309 | lean | import .basic
namespace hidden
-- Can't extend field and ordered_myring as they both extend myring >:(
class ordered_myfield (α : Type) extends myfield α, has_le α:=
-- NOTE: Theses are the ordered_myring axioms
(f_decidable_le: ∀ a b: α, decidable (a ≤ b))
(f_le_add_right (a b c : α) : a ≤ b → a + c ≤ b + c)
(f_zero... |
886c25470b9616fe4038b649f1790c398e890194 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/algebra/ordered_group.lean | fc543d1a56664b7ff9f45e4eaddfb14670d4543b | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 35,668 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Partially ordered additive groups, modeled on Isabelle's library. These classes can be refined
if necessary.
-/
import .group .order
universes u v w
hott_theory
set_optio... |
c73ea6d4d434bbe9c1b2b574ea6adb5d5fe2bad4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/shapes/wide_pullbacks.lean | 8ab4c16d33bc5a589a9fbee71bc6b03f33a13190 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,624 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.limits
import Mathlib.category_theory.thin
import Mathlib.PostPort
univ... |
4862b03cae90ba1e326bbe7a0e37812b8d005ba2 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/ring.lean | fa958351f28f347b70ae150a3cd81367c3cde57e | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 20,179 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Evaluate expressions in the language of (semi-)rings.
Based on http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.1.61.3041.pdf .
-/
import algebra.group_power tactic... |
a12c218077a0ab1e221c022740138b4f20ce3a46 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/dimension.lean | b86da3db8ab06091dd74ea2bef6b4e3ad625997b | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,724 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl, Sander Dahmen, Scott Morrison
-/
import linear_algebra.dfinsupp
import linear_algebra.std_basis
import linear_algebra.isomorphisms
import set_theory.cof... |
099b9b0413342234b3292a1cab4e1139306a6bf3 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/linear_algebra/dimension.lean | 947abd8aa37dd17ccc349a660137fdf3fd66997c | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 18,362 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
-/
import linear_algebra.basis
import set_theory.cardinal_ordinal
/-!
# Dimension of modules and vector spaces
## Main definitions
* The... |
87bad38800933022b6ede8d3a6ab59d1a6eae51f | ebb7367fa8ab324601b5abf705720fd4cc0e8598 | /algebra/free_group.hlean | c46d923929329a591acb873d0ef7ae3a0a6550a6 | [
"Apache-2.0"
] | permissive | radams78/Spectral | 3e34916d9bbd0939ee6a629e36744827ff27bfc2 | c8145341046cfa2b4960ef3cc5a1117d12c43f63 | refs/heads/master | 1,610,421,583,830 | 1,481,232,014,000 | 1,481,232,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,824 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke
Constructions with groups
-/
import algebra.group_theory hit.set_quotient types.list types.sum
open eq algebra is_trunc set_quotient relation sigma ... |
e695605f00f7340f4413a3f18e3b573765141159 | 5bf112cf7101c6c6303dc3fd0b3179c860e61e56 | /lean/main.lean | f62e5cc871103647aa8d5b032a04d08c275a79b5 | [
"Apache-2.0"
] | permissive | fredfeng/formal-encoding | 7ab645f49a553dfad2af03fcb4289e40fc679759 | 024efcf58672ac6b817caa10dfe8cd9708b07f1b | refs/heads/master | 1,597,236,551,123 | 1,568,832,149,000 | 1,568,832,149,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27 | lean | import background problems
|
b877c5544854e4febecb7847bde0660292d0030e | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/dsimp_test.lean | 220bd4b9fc5c3d64eca67777232610759f727e62 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,408 | lean | def f : nat → nat
| 0 := 10
| (n+1) := 20 + n
open list tactic
local attribute [-simp] map head
example (a b c : nat) : head (map f [1, 2, 3]) = 20 :=
begin
dsimp [map],
guard_target head [f 1, f 2, f 3] = 20,
dsimp [f],
guard_target head [20 + 0, 20 + 1, 20 + 2] = 20,
dsimp [head],
guard_target 20 ... |
6d6d5b45b5bca238eb94fb6b4254572a02bc3004 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world7/level3.lean | 196fbb40715421408d9795eb19de920f9a198cf7 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 212 | lean | lemma and_trans (P Q R : Prop) : P ∧ Q → Q ∧ R → P ∧ R :=
begin
intros pq qr,
cases pq with p q,
cases qr with q r,
split,
{
exact p,
},
{
exact r,
},
end |
150bd680a112103fd80003960f1b27308eb9f76c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/ring_invo.lean | 55ebc7410f62e8cdb38e54ce0feeb3c7bd41b96d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,755 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.ring
import Mathlib.algebra.opposites
import Mathlib.PostPort
un... |
a031a34788f5b4e53e10bc58621182cf5424155b | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/chapter_exercises/chap7_exercises.lean | 1a905320019012d3c858d2c6d6d65b9f2245f7af | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,626 | lean | import data.nat.sqrt
namespace hidden
/-
Try defining other operations on the natural numbers,
such as multiplication, the predecessor function (with pred 0 = 0),
truncated subtraction (with n - m = 0 when m is greater than or equal to n),
and exponentiation. Then try proving some of their basic properties,
build... |
97898a3a534051e6a2dec52999a054f80a8667eb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/continuous_function/locally_constant.lean | 537c6a9df06dea34bc13f572145341309d4f90fc | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 1,911 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import topology.locally_constant.algebra
import topology.continuous_function.basic
import topology.continuous_function.algebra
/-!
# The algebra morphism from locally cons... |
961c8336ec6cf3664ff7f55f0485f992241ce3b0 | b1e80085f6d9158c0b431ffc4fa9d0d53cbac8e4 | /src/index_formula.lean | d31c218b6f6a756d6d6351801e285acef684de4d | [] | no_license | dwarn/nielsen-schreier-2 | d73c20e4d2a8ae537fe4f8063272d0b72c58276a | e51a8c6511d374dc584698c7fa236a5be47e7dbe | refs/heads/master | 1,679,911,740,113 | 1,615,656,058,000 | 1,615,656,058,000 | 344,111,212 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,908 | lean | import category_theory.action
result
open_locale classical
noncomputable theory
open quotient_group is_free_group is_free_groupoid category_theory
universe u
def tree_equiv {G} [inhabited G] (T : quiver G) [is_arbor T] :
T.total ⊕ unit ≃ G :=
{ to_fun := λ x, sum.rec_on x (λ tp, tp.target) (λ _, default G),... |
cfaa34742717ee0a45dd117e088cf65910591798 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/app/ReoptVCG.lean | 111053ddfa7c3e3e9ebb5cefad53c743d5e3d1a5 | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 13,348 | lean | import Galois.Init.Json
import LeanLLVM.AST
import Main.Elf
import ReoptVCG.Annotations
import ReoptVCG.VCGBlock
import ReoptVCG.LoadLLVM
import ReoptVCG.SMT
import ReoptVCG.Types
import SMTLIB.Syntax
import X86Semantics.Common
import DecodeX86.DecodeX86
namespace ReoptVCG
open Lean (Json strLt)
open Lean.Json (parse... |
f669e9a1b756a7340c21a8ac774c41ec9d571a42 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/bases.lean | e423148a92f22fbc7a20143d7ee182ebdf84baa7 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 13,207 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Bases of topologies. Countability axioms.
-/
import topology.order data.set.countable
open set filter lattice classical
namespace filter
universe u
v... |
46bed1c527094f0b6c091d751178dd0c78d91859 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/ideal/operations.lean | a31437175957881a63f92c5cab8196fb33e60da1 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 78,107 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.operations
import ring_theory.non_zero_divisors
import data.nat.choose.sum
import ring_theory.coprime.lemmas
import data.equiv.ring
import ring_theory.id... |
26836f5cfe4d6a04c0607afd8a66d79dbf33e9b3 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/group_theory/specific_groups/alternating.lean | 16a471e661f0c0394825ddadff875875b672f0a3 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,315 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import group_theory.perm.fin
/-!
# Alternating Groups
The alternating group on a finite type `α` is the subgroup of the permutation group `perm α`
consisting of th... |
5c66486eb0a2902fa471a9c300e0952097d90293 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/thursday/afternoon/category_theory/exercise5.lean | e3bd8d7cc09ad85b7dbabe419489b61b7f07a4df | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 1,289 | lean | import category_theory.preadditive
import category_theory.limits.shapes.biproducts
/-!
We prove that biproducts (direct sums) are preserved by any preadditive functor.
This result is not in mathlib, so full marks for the exercise are only achievable if you
contribute to a pull request! :-)
-/
open category_theory
op... |
c1cf40360c9a6a58d99a7459b57de1dedd4a0e86 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Lint.lean | ed5297df6023c1524254faac4eee6d94a3f2e354 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 1,264 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
open Lean
open Lean.Elab.Tactic (Location)
namespace Mathport.Translate.Tactic
open AST3 Parser
-- # tactic.li... |
951b517c8a7e3428d5320e5368f978afd261e2e7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1763.lean | 619b4d6ed222104279bd0e243c4e170ad3664f44 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 285 | lean | axiom P : Prop → Prop
@[congr]
axiom P_congr (a b : Prop) (h : a ↔ b) : P a ↔ P b
theorem ex1 {p q : Prop} (h : p ↔ q) (h' : P q) : P p := by
simp [h]
assumption
#print ex1
theorem ex2 {p q : Prop} (h : p = q) (h' : P q) : P p := by
simp [h]
assumption
#print ex2
|
38a966b5ee333f11f334d7b52c278720022d4d1d | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/instances/ennreal.lean | d833541be1850c7356a5abb52b1f1c0e3681868d | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 53,218 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import topology.instances.nnreal
import topology.algebra.ordered.liminf_limsup
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter m... |
e65f2b4827dbb4f2380fa2304f3b3788d2b84be5 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0304.lean | a731dd6aca2621fb0019ee81ee1e7df0e55fe95d | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 103 | lean | namespace foo
protected def bar : ℕ := 1
end foo
open foo
-- #check bar -- error
#check foo.bar
|
db8bdbeb4777c62cf2c34bf4118f7ca2a68431cb | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/cubical/squareover.hlean | f9f76513bca165af21920475e66802552620f711 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 15,655 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Squareovers
-/
import .square
open eq equiv is_equiv equiv.ops
namespace eq
-- we give the argument B explicitly, because Lean would find (λa, B a) by itself, ... |
0ceef472b19084cbc23eead84d871260c2402a18 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/fib_wrec.lean | 1884bfa823c2ab9314a94edd230d8d4337805fe8 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,053 | lean | open nat
definition fib.F (n : nat) : (Π (m : nat), m < n → nat) → nat :=
nat.cases_on n
(λ (f : Π (m : nat), m < 0 → nat), 0)
(λ (n₁ : nat), nat.cases_on n₁
(λ (f : Π (m : nat), m < (succ 0) → nat), succ 0)
(λ (n₂ : nat) (f : Π (m : nat), m < (succ (succ n₂)) → nat),
have l₁ : succ n₂ < succ (succ ... |
973e939baed8e31cad821bb9713a6726a3f4087b | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/nat/totient.lean | d7a719be77415d55e0addf0f5b6bddafa5feb6e0 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,636 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.big_operators.basic
import data.nat.prime
import data.zmod.basic
/-!
# Euler's totient function
This file defines [Euler's totient function][https://en.w... |
6c1390f2d739489e31ed0afe696aefe4723701c5 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /int.lean | ddbe630bfd6315c43ef322c318e1a34b05f4142c | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,264 | lean | import data.int.basic data.list.basic data.nat.gcd .tactics .nat .equiv
namespace int
open tactic
instance inh : inhabited int := ⟨0⟩
meta def int.reflect : Π (z : int), reflected z
| (int.of_nat n) := `(int.of_nat n)
| (int.neg_succ_of_nat n) := `(int.neg_succ_of_nat n)
meta instance int.has_reflect := int.reflec... |
cd1a78fe304460314a141cc913ed720237df75c1 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/sup_inf/supProdConst.lean | c5a787a9546cda1c2a2954042354c0a8f5854c01 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 1,239 | lean | import data.real.basic
namespace xena -- hide
/-
# Chapter 3 : Sup and Inf
## Level 8
Again a classical result.
-/
-- supremum of constant × set
def const_times_set (c: ℝ) (A : set ℝ) := { x : ℝ | ∃ y ∈ A, x = c * y }
/- Lemma
If $A$ is a set of reals and $c > 0$, then
$$ \textrm{sup} (cA) = c \cdot \textrm{sup} ... |
3a55f192b203291f573e3672cb4f33af22876497 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/locally_convex/continuous_of_bounded.lean | 0bfc937e9b80f62431bf8565c3e352610e2a7268 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,833 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.locally_convex.bounded
import data.complex.is_R_or_C
/-!
# Continuity and Von Neumann boundedness
This files proves that for `E` and `F` two topologi... |
c46faa59cd02f36e441911f91e386002b4d827d4 | de3bb37f178fdd10c6dc8c5de6cf51de10c1ba17 | /prelim.lean | 4bc908e8e512c3c10745a5e6859cb816b7d3cdd5 | [] | no_license | RyanSandford/HOTT-adjoint-equivalences | e58b2be0cb2ebba260f45f46ff4668b14442df98 | 331a4e6085bc35ab19a59ef28a60f299dee4dc6d | refs/heads/master | 1,622,097,493,839 | 1,618,173,901,000 | 1,618,173,901,000 | 254,230,569 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,484 | lean | /-
Authors: Daniel Carranza, Jonathon Chang, Ryan Sandford
Under the supervision of Chris Kapulkin
Some auxiliary lemmas used in adj.lean and two_adj.lean
Last updated: 2020-07-31
-/
import hott.init hott.types.equiv
universes u v
hott_theory
namespace hott
open hott
namespace pi
variable {A : Type u}
variab... |
c18f4179415d42e1fd0aa554d6c1b73e76a4d528 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/metric_space/isometry.lean | 3051e4265d479e60fb7450d23dc874ddf3248536 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 13,652 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.basic
topology.bounded_continuous_function analysis.normed_space.basic topology.opens
/-!... |
ec353849aa9c4a57942c13b5423328e39ca04598 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ind_tac1.lean | 18220e2562fd7d5747e7ca41fdf7652a55ec0a2a | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 84 | lean | #check @heq.rec_on
attribute [recursor 6] heq.rec_on
#print [recursor] heq.rec_on
|
e17543f64727bcd2c6ca7c81b9e70052d7402a5c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/polynomial/gauss_lemma.lean | ee3651e4a3d0efbc126067a6662e2c1a938d379a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 15,508 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import field_theory.splitting_field.construction
import ring_theory.int.basic
import ring_theory.localization.integral
import ring_theory.integrally_closed
/-!
# Ga... |
cfffa2684868515afb3b25491f2c159bde32866d | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/funext.lean | dadefd712d855e1832c2aac8810eb488af56a19f | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 838 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import logic function
using function
-- Function extensionality
axiom funext : ∀ {A : Type} {B : A → Type} {f g : Π x, B x} (H : ∀ x, f x = g x), f = g
... |
dcf74732abff4c4f7f7c45053951c6239fdccaf7 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/cache.lean | 578d1948044ac147b9be1ca60742c88f785df6cd | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 4,952 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.doc_commands
/-!
# Instance cache tactics
For performance reasons, Lean does not automatically update its database
of class instances during a proof. T... |
4feced8df298bf92a7875673f9dbd4ff1242a3f8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_simp5.lean | 91821100dc70a954a046a47337d286a57ab575c1 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 180 | lean | definition f : nat → nat := sorry
definition g (a : nat) := f a
lemma gax [simp] : ∀ a, g a = 0 := sorry
attribute g [reducible]
example (a : nat) : f (a + a) = 0 :=
by simp
|
7c904c5f9c624c78a77d8f08098558d532185570 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/100-theorems-list/37_solution_of_cubic.lean | c5c80de571087b961d1580302e73fcb84f70fda5 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,934 | lean | /-
Copyright (c) 2022 Jeoff Lee. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeoff Lee
-/
import tactic.linear_combination
import ring_theory.roots_of_unity
import ring_theory.polynomial.cyclotomic.basic
/-!
# The Solution of a Cubic
This file proves Theorem 37 fr... |
33717883cba938e8ed8295f57597cbdeb0b36baf | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/measurable_space.lean | 05aac21ee62c503d22f44bc3cbcccaac953ece7b | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 882 | lean | /- Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Basic setup for measurable spaces.
-/
import category_theory.instances.Top.basic
import measure_theory.borel_space
open category_theory
universes u v
namespace categ... |
75e378bef6e97a508ca3a238871cdd670e524a9a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/struct2.lean | 2e96a71996b0cbc4010e1b5c3e62c3e1cd63a396 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,572 | lean | universe u v w
structure A (α : Type u) :=
(f : (β : Type u) → α → β → α)
set_option pp.all true
structure B (α : Type u) extends A α :=
(x : Nat)
(f := fun β a b => a)
#check B.f._default
#check { x := 10 : B Nat}
namespace New
structure A (α : Type u) where
f : (β : Type u) → α → β → α
structure B (α : Type... |
72b40a0329a6600bf7e9f24f7438ceac82fdb9e6 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Data/KVMap.lean | 283d0be6e4827f5be3035e44b68b9edddaf06b6e | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 5,812 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Option.Basic
import Init.Data.Int
import Init.Lean.Data.Name
namespace Lean
inductive DataValue
| ofString (v : String)
| ofBool ... |
868daf701cd75d524ba36a39c2426c743dc6ce32 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/ResolveName.lean | a28deef81a411a60eb3a49fe73743e27a0a36c66 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,220 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Data.OpenDecl
import Lean.Hygiene
import Lean.Modifiers
import Lean.Exception
namespace Lean
/-!
We use aliases to impleme... |
6fdcb62affe2b5868228bff4fbc422d6ab145cbc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/calculus/fderiv.lean | 320afbfbf658a8e203bdfb1cefffc81a877006e2 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 136,702 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.calculus.tangent_cone
import analysis.normed_space.bounded_linear_... |
e8761ebd394677ae22455aeae70faccf9d46424a | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/data/num.lean | d3a35dc2c8989307e9c2d7dd7fa5b332642e2472 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,046 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
-----------------------------------------------------... |
57bd4329ecbddde8c50beabe7ce0fe9027d18ff7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/structDefault.lean | 40d549ef34e1e6460f8b92d6da730e1eff6176a7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 191 | lean | structure A where
f : Nat → Nat → Nat
structure B extends A where
f (a b : Nat) := 10
structure C extends A where
f a b := 0
structure D extends A where
f a b := true -- error
|
e7065a13db15d4074bade2ee45a298d79988cbf8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/analysis/inner_product.lean | 4a0a0f06347a3652190fc6e4a21a8c0c33ce04f5 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 9,668 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Real inner product spaces.
Note: We can enter ⟨v, w⟩ as \<v, w\>. This file overwrites the notation for dependent pairs.
-/
import theories.analysis.normed_space theorie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.